Skip to content

Commit

Permalink
test: follow specific uid/gid migration on debian
Browse files Browse the repository at this point in the history
Signed-off-by: Kentaro Hayashi <[email protected]>
  • Loading branch information
kenhys committed Jun 5, 2023
1 parent cc5f71a commit 331e459
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions serverspec/linux/td-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,24 @@
it { should be_installed }
end

describe user("td-agent") do
it { should exist }
it { should belong_to_group "td-agent" }
end
if os[:family] == 'redhat'
describe user("fluentd") do
it { should exist }
it { should belong_to_group "fluentd" }
end

describe group("fluentd") do
it { should exist }
end
else
describe user("_fluentd") do
it { should exist }
it { should belong_to_group "_fluentd" }
end

describe group("td-agent") do
it { should exist }
describe group("_fluentd") do
it { should exist }
end
end

describe "gem files" do
Expand Down

0 comments on commit 331e459

Please sign in to comment.