Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use driver for formatter tests #4082

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

daipom
Copy link
Contributor

@daipom daipom commented Mar 7, 2023

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 <[email protected]>
@daipom daipom requested a review from ashie March 7, 2023 01:41
@daipom
Copy link
Contributor Author

daipom commented Mar 7, 2023

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

@abetomo
Copy link
Contributor

abetomo commented Mar 7, 2023

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

Copy link
Contributor

@abetomo abetomo left a comment

Choose a reason for hiding this comment

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

Thanks!

@daipom
Copy link
Contributor Author

daipom commented Mar 7, 2023

@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
Copy link
Member

ashie commented Mar 7, 2023

Thanks!

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

daipom commented Mar 7, 2023

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