Skip to content

Commit 028ade7

Browse files
author
JJ Asghar
committed
fixed tests
1 parent 6a37e32 commit 028ade7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spec/default_spec.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@
110110
node.set['rabbitmq']['ssl'] = true
111111
node.set['rabbitmq']['ssl_ciphers'] = ['ecdhe_ecdsa,aes_128_cbc,sha256', 'ecdhe_ecdsa,aes_256_cbc,sha']
112112
expect(chef_run).to render_file('/etc/rabbitmq/rabbitmq.config').with_content(
113-
'{ciphers,[{ecdhe_ecdsa,aes_128_cbc,sha256},{ecdhe_ecdsa,aes_256_cbc,sha}]}')
113+
"{ciphers,['ecdhe_ecdsa,aes_128_cbc,sha256','ecdhe_ecdsa,aes_256_cbc,sha']}")
114114
end
115115

116116
it 'allows web console ssl ciphers' do
117117
node.set['rabbitmq']['web_console_ssl'] = true
118118
node.set['rabbitmq']['ssl_ciphers'] = ['ecdhe_ecdsa,aes_128_cbc,sha256', 'ecdhe_ecdsa,aes_256_cbc,sha']
119119
expect(chef_run).to render_file('/etc/rabbitmq/rabbitmq.config').with_content(
120-
'{ciphers,[{ecdhe_ecdsa,aes_128_cbc,sha256},{ecdhe_ecdsa,aes_256_cbc,sha}]}')
120+
"{ciphers,['ecdhe_ecdsa,aes_128_cbc,sha256','ecdhe_ecdsa,aes_256_cbc,sha']}")
121121
end
122122

123123
it 'should set additional rabbitmq config' do
@@ -152,14 +152,17 @@
152152

153153
include_context 'rabbitmq-stubs'
154154

155+
# ~FC005 -- we should ignore this during compile time
155156
it 'should autostart via the exit 101' do
156157
expect(chef_run).to run_execute('disable auto-start 1/2')
157158
end
158159

160+
# ~FC005 -- we should ignore this during compile time
159161
it 'should disable the autostart 2/2' do
160162
expect(chef_run).to run_execute('disable auto-start 2/2')
161163
end
162164

165+
# ~FC005 -- we should ignore this during compile time
163166
it 'should install the logrotate package' do
164167
expect(chef_run).to install_package('logrotate')
165168
end

0 commit comments

Comments
 (0)