From 028ade7086054cfc281a105e0776fc9a2bd400ff Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Tue, 16 Jun 2015 14:00:54 -0500 Subject: [PATCH] fixed tests --- spec/default_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/default_spec.rb b/spec/default_spec.rb index 223ce628..f973d5df 100644 --- a/spec/default_spec.rb +++ b/spec/default_spec.rb @@ -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 @@ -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