|
123 | 123 | 'content' => /^# bind_host: localhost\n/, |
124 | 124 | )} |
125 | 125 | it { should contain_concat__fragment('datadog footer').with( |
126 | | - 'content' => /^use_dogstatsd: no\n/, |
| 126 | + 'content' => /^use_dogstatsd: yes\n/, |
127 | 127 | )} |
128 | 128 | it { should contain_concat__fragment('datadog footer').with( |
129 | 129 | 'content' => /^dogstatsd_port: 8125\n/, |
|
182 | 182 | end |
183 | 183 |
|
184 | 184 | context 'for service_discovery' do |
185 | | - it { should contain_file('/etc/dd-agent/datadog.conf').without( |
| 185 | + it { should contain_concat__fragment('datadog footer').without( |
186 | 186 | 'content' => /^service_discovery_backend:\n/, |
187 | 187 | )} |
188 | | - it { should contain_file('/etc/dd-agent/datadog.conf').without( |
| 188 | + it { should contain_concat__fragment('datadog footer').without( |
189 | 189 | 'content' => /^sd_config_backend:\n/, |
190 | 190 | )} |
191 | | - it { should contain_file('/etc/dd-agent/datadog.conf').without( |
| 191 | + it { should contain_concat__fragment('datadog footer').without( |
192 | 192 | 'content' => /^sd_backend_host:\n/, |
193 | 193 | )} |
194 | | - it { should contain_file('/etc/dd-agent/datadog.conf').without( |
| 194 | + it { should contain_concat__fragment('datadog footer').without( |
195 | 195 | 'content' => /^sd_backend_port:\n/, |
196 | 196 | )} |
197 | | - it { should contain_file('/etc/dd-agent/datadog.conf').without( |
| 197 | + it { should contain_concat__fragment('datadog footer').without( |
198 | 198 | 'content' => /^sd_template_dir:\n/, |
199 | 199 | )} |
200 | | - it { should contain_file('/etc/dd-agent/datadog.conf').without( |
| 200 | + it { should contain_concat__fragment('datadog footer').without( |
201 | 201 | 'content' => /^consul_token:\n/, |
202 | 202 | )} |
203 | | - it { should contain_file('/etc/dd-agent/datadog.conf').with( |
204 | | - 'content' => /^# sd_jmx_enable: no\n/, |
| 203 | + it { should contain_concat__fragment('datadog footer').without( |
| 204 | + 'content' => /^# sd_jmx_enable:\n/, |
205 | 205 | )} |
206 | 206 | end |
207 | 207 |
|
|
536 | 536 | :sd_backend_port => '8080', |
537 | 537 | :sd_jmx_enable => true, |
538 | 538 | }} |
539 | | - it { should contain_file('/etc/dd-agent/datadog.conf').with( |
| 539 | + it { should contain_concat__fragment('datadog footer').with( |
540 | 540 | 'content' => /^service_discovery_backend: docker\n/, |
541 | 541 | )} |
542 | | - it { should contain_file('/etc/dd-agent/datadog.conf').with( |
| 542 | + it { should contain_concat__fragment('datadog footer').with( |
543 | 543 | 'content' => /^sd_config_backend: etcd\n/, |
544 | 544 | )} |
545 | | - it { should contain_file('/etc/dd-agent/datadog.conf').with( |
| 545 | + it { should contain_concat__fragment('datadog footer').with( |
546 | 546 | 'content' => /^sd_backend_host: localhost\n/, |
547 | 547 | )} |
548 | | - it { should contain_file('/etc/dd-agent/datadog.conf').with( |
| 548 | + it { should contain_concat__fragment('datadog footer').with( |
549 | 549 | 'content' => /^sd_backend_port: 8080\n/, |
550 | 550 | )} |
551 | | - it { should contain_file('/etc/dd-agent/datadog.conf').with( |
| 551 | + it { should contain_concat__fragment('datadog footer').with( |
552 | 552 | 'content' => /^sd_jmx_enable: true\n/, |
553 | 553 | )} |
554 | 554 | end |
|
0 commit comments