We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d80d16a commit 9d77765Copy full SHA for 9d77765
1 file changed
spec/defines/datadog_agent__integration_spec.rb
@@ -15,6 +15,11 @@
15
}}
16
it { should compile }
17
it { should contain_file('/etc/dd-agent/conf.d/test.yaml').with_content(/init_config: /) }
18
- it { should contain_file('/etc/dd-agent/conf.d/test.yaml').with_content(/---\ninit_config: \ninstances:\n- one: two\n/) }
+ gem_spec = Gem.loaded_specs['puppet']
19
+ if gem_spec.version >= Gem::Version.new('4.0.0')
20
+ it { should contain_file('/etc/dd-agent/conf.d/test.yaml').with_content(/---\ninit_config: \ninstances:\n- one: two\n/) }
21
+ else
22
+ it { should contain_file('/etc/dd-agent/conf.d/test.yaml').with_content(/--- \n init_config: \n instances: \n - one: two/) }
23
+ end
24
it { should contain_file('/etc/dd-agent/conf.d/test.yaml').that_notifies("Service[datadog-agent]") }
25
end
0 commit comments