From eedd9e6df4778cb94976a1bf8991f1c445d77606 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Thu, 10 Sep 2026 10:32:21 +0900 Subject: [PATCH] Bring the Test Driver lists in line with the code The page lists which Test Drivers Fluentd provides in three places, and each one is missing something. lib/fluent/test/driver/ has a driver for multi_output and one for storage which the opening list does not name, the Base Owner API list leaves out input, and the Base owned API section has no list at all. The new How to Write Storage Plugin page sends readers here for Fluent::Test::Driver::Storage, so the gaps are visible from another page. Buffer and service discovery plugins have no driver, so they stay off the lists. Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: Shizuo Fujita --- plugin-development/plugin-test-code.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin-development/plugin-test-code.md b/plugin-development/plugin-test-code.md index 336a14b8..5465bfb5 100644 --- a/plugin-development/plugin-test-code.md +++ b/plugin-development/plugin-test-code.md @@ -18,7 +18,7 @@ Test::Unit::TestCase.include(Fluent::Test::Helpers) Test::Unit::TestCase.extend(Fluent::Test::Helpers) ``` -Note that Fluentd provides useful Test Drivers for `input`, `output`, `filter`, `parser` and `formatter`. +Note that Fluentd provides useful Test Drivers for `input`, `output`, `multi_output`, `filter`, `parser`, `formatter` and `storage`. The recommended fluentd plugin project structure is: @@ -233,6 +233,7 @@ Returns the plugin instance managed by this Test Driver. ## Test Driver Base Owner API +* `input` * `filter` * `output` * `multi_output` @@ -314,6 +315,10 @@ Returns error events filtered by the given tag. ## Test Driver Base owned API +* `parser` +* `formatter` +* `storage` + ### `configure(conf, syntax: :v1)` Configures plugin instance managed by this Test Driver.