Skip to content

Use driver for formatter tests - #4082

Merged
ashie merged 1 commit into
fluent:masterfrom
daipom:use-driver-for-formatter-tests
Mar 7, 2023
Merged

Use driver for formatter tests#4082
ashie merged 1 commit into
fluent:masterfrom
daipom:use-driver-for-formatter-tests

Conversation

@daipom

@daipom daipom commented Mar 7, 2023

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
None. This is the following fix to

What this PR does / why we need it:

In this PR, some tests passing Hash directly to Fluent::Plugin::Base::configure() are fixed so that passing Fluent::Config::Element.

However, a part of those tests should use the test-driver, and then we can passing Hash to the driver safely.

Docs Changes:
None.

Release Note:
None.

In c0125d8, some tests passing
`Hash` directly to `Fluent::Plugin::Base::configure()` are fixed
so that passing `Fluent::Config::Element`.

However, a part of those tests should use the test-driver, and
then we can passing `Hash` to the driver safely.

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
@daipom
daipom requested a review from ashie March 7, 2023 01:41
@daipom

daipom commented Mar 7, 2023

Copy link
Copy Markdown
Contributor Author

@abetomo Could you please check this if there are any problems with the direction of this fix?

@abetomo

abetomo commented Mar 7, 2023

Copy link
Copy Markdown
Contributor

I should have used Fluent::Test::FormatterTestDriver.
I was not aware of the existence of Fluent::Test::FormatterTestDriver.

@abetomo abetomo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@daipom

daipom commented Mar 7, 2023

Copy link
Copy Markdown
Contributor Author

@abetomo Thanks for your review!

I should have used Fluent::Test::FormatterTestDriver. I was not aware of the existence of Fluent::Test::FormatterTestDriver.

It's no problem!

FYI: The document of TestDriver is https://docs.fluentd.org/plugin-development/plugin-test-code

@ashie ashie added this to the v1.16.0 milestone Mar 7, 2023
@ashie
ashie merged commit 248160f into fluent:master Mar 7, 2023
@ashie

ashie commented Mar 7, 2023

Copy link
Copy Markdown
Member

Thanks!

@daipom
daipom deleted the use-driver-for-formatter-tests branch March 7, 2023 04:03
@daipom

daipom commented Mar 7, 2023

Copy link
Copy Markdown
Contributor Author

Thanks for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants