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

Fix for rotate_age where Fluentd passes as Symbol #4311

Merged
merged 5 commits into from
Oct 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_system_config.rb
Signed-off-by: mrudrego <maheshmr.gowda@gmail.com>
  • Loading branch information
mrudrego committed Oct 5, 2023
commit 70cf9bb86ff5ea277f660eec02327ac26bba2144
4 changes: 2 additions & 2 deletions test/config/test_system_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def parse_text(text)
data('daily' => "daily",
'weekly' => 'weekly',
'monthly' => 'monthly')
test "symbols for rotate_age" do |age|
test "strings for rotate_age" do |age|
conf = parse_text(<<-EOS)
<system>
<log>
Expand All @@ -160,7 +160,7 @@ def parse_text(text)
</system>
EOS
sc = Fluent::SystemConfig.new(conf)
assert_equal(age.to_sym, sc.log.rotate_age)
assert_equal(age.to_s, sc.log.rotate_age)
mrudrego marked this conversation as resolved.
Show resolved Hide resolved
end

test "numeric number for rotate age" do
Expand Down