File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 should contain_collectd__plugin ( 'java' ) . with ( {
1111 :ensure => 'present' ,
1212 } )
13-
14- should contain_collectd__plugin ( 'java' ) . without_content ( /JVMArg/ )
1513 end
1614 end
1715
3230 :jvmarg => %w{ foo bar baz }
3331 } }
3432
35- it 'will have multiple JVMArg bits ' do
33+ it 'will have multiple jvmarg parameters ' do
3634 should contain_collectd__plugin ( 'java' ) . with_content ( /JVMArg "foo"[\s \n ]+JVMArg "bar"[\s \n ]+JVMArg "baz"/ )
3735 end
3836 end
4240 :jvmarg => 'bat'
4341 } }
4442
45- it 'will have a JVMArg bit ' do
43+ it 'will have a JVMArg parameter ' do
4644 should contain_collectd__plugin ( 'java' ) . with_content ( /JVMArg "bat"/ )
4745 end
4846
49- it 'will only have one JVMArg bit ' do
47+ it 'will only have one JVMArg parameter ' do
5048 should contain_collectd__plugin ( 'java' ) . without_content ( /(.*JVMArg.*){2,}/ )
5149 end
5250 end
5957 it 'will not have a <Plugin java> stanza' do
6058 should contain_collectd__plugin ( 'java' ) . without_content ( /<Plugin java>/ )
6159 end
60+ it 'will not have any jvmarg parameters' do
61+ should contain_collectd__plugin ( 'java' ) . without_content ( /JVMArg/ )
62+ end
6263 end
6364end
You can’t perform that action at this time.
0 commit comments