Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ Asghar committed Jun 16, 2015
1 parent 6a37e32 commit 028ade7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@
node.set['rabbitmq']['ssl'] = true
node.set['rabbitmq']['ssl_ciphers'] = ['ecdhe_ecdsa,aes_128_cbc,sha256', 'ecdhe_ecdsa,aes_256_cbc,sha']
expect(chef_run).to render_file('/etc/rabbitmq/rabbitmq.config').with_content(
'{ciphers,[{ecdhe_ecdsa,aes_128_cbc,sha256},{ecdhe_ecdsa,aes_256_cbc,sha}]}')
"{ciphers,['ecdhe_ecdsa,aes_128_cbc,sha256','ecdhe_ecdsa,aes_256_cbc,sha']}")
end

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

it 'should set additional rabbitmq config' do
Expand Down Expand Up @@ -152,14 +152,17 @@

include_context 'rabbitmq-stubs'

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

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

# ~FC005 -- we should ignore this during compile time
it 'should install the logrotate package' do
expect(chef_run).to install_package('logrotate')
end
Expand Down

0 comments on commit 028ade7

Please sign in to comment.