Skip to content

Commit

Permalink
Add Unit test to validate new config_name property in datadog_monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
brentm5 committed Sep 7, 2023
1 parent 3927ac6 commit f703c08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/dd-agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,7 @@ def set_env_var(name, value)
end
it 'creates the config file at A7\'s path' do
expect(chef_run).to render_file('/etc/datadog-agent/conf.d/potato.d/conf.yaml')
expect(chef_run).to render_file('/etc/datadog-agent/conf.d/potato.d/potato-one.yaml')
end
end
end
Expand Down Expand Up @@ -1535,6 +1536,7 @@ def set_env_var(name, value)
end
it 'creates the config file at A7\'s path' do
expect(chef_run).to delete_file('/etc/datadog-agent/conf.d/potato.d/conf.yaml')
expect(chef_run).to delete_file('/etc/datadog-agent/conf.d/potato.d/potato-one.yaml')
end
end
end

0 comments on commit f703c08

Please sign in to comment.