Skip to content

Commit 30950f0

Browse files
committed
Address failing tests
1 parent 4a2e03c commit 30950f0

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

spec/classes/datadog_agent_integrations_cassandra_spec.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,18 @@
4646
it { should contain_file(conf_file).with_content(%r{user: baz}) }
4747
end
4848

49-
context 'with tags parameter array' do
49+
context 'with tags parameter hash' do
5050
let(:params) {{
5151
password: 'foobar',
52-
tags: %w{ foo bar baz },
52+
tags: {
53+
'foo'=> 'bar',
54+
'baz'=> 'ama',
55+
}
5356
}}
54-
it { should contain_file(conf_file).with_content(/tags:[^-]+- foo\s+- bar\s+- baz\s*?[^-]/m) }
57+
it { should contain_file(conf_file).with_content(/tags:\s+foo: bar\s+baz: ama\s*?[^-]/m) }
5558
end
5659

57-
context 'tags not array' do
60+
context 'tags not hash' do
5861
let(:params) {{
5962
password: 'foobar',
6063
tags: 'aoeu',

0 commit comments

Comments
 (0)