File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 104104# String. Default: empty
105105# $use_dogstatsd
106106# Enables the dogstatsd server
107- # Boolean. Default: false
107+ # Boolean. Default: true
108108# $dogstatsd_port
109109# Specifies the port to be used by dogstatsd. Must have use_dogstatsd set
110110# String. Default: empty
216216 $pup_port = ' ' ,
217217 $pup_interface = ' ' ,
218218 $pup_url = ' ' ,
219- $use_dogstatsd = false ,
219+ $use_dogstatsd = true ,
220220 $dogstatsd_target = ' ' ,
221221 $dogstatsd_interval = ' ' ,
222222 $dogstatsd_normalize = true ,
Original file line number Diff line number Diff line change 122122 'content' => /^# bind_host: localhost\n / ,
123123 ) }
124124 it { should contain_file ( '/etc/dd-agent/datadog.conf' ) . with (
125- 'content' => /^use_dogstatsd: no \n / ,
125+ 'content' => /^use_dogstatsd: yes \n / ,
126126 ) }
127127 it { should contain_file ( '/etc/dd-agent/datadog.conf' ) . with (
128128 'content' => /^dogstatsd_port: 8125\n / ,
341341 ) }
342342 end
343343
344- context 'with use_dogstatsd set to yes ' do
345- let ( :params ) { { :use_dogstatsd => true } }
344+ context 'with use_dogstatsd set to no ' do
345+ let ( :params ) { { :use_dogstatsd => false } }
346346 it { should contain_file ( '/etc/dd-agent/datadog.conf' ) . with (
347- 'content' => /^use_dogstatsd: yes \n / ,
347+ 'content' => /^use_dogstatsd: no \n / ,
348348 ) }
349349 end
350350 context 'with dogstatsd_port set to 8126' do
You can’t perform that action at this time.
0 commit comments