spec/integration/riak/security_spec.rb in riak-client-2.2.0.pre1 vs spec/integration/riak/security_spec.rb in riak-client-2.2.0

- old
+ new

@@ -15,11 +15,11 @@ it 'refuses to connect with authentication configured' do with_auth_config = config.dup with_auth_config[:authentication] = { user: 'user', password: 'password' } secure_client = Riak::Client.new with_auth_config - + expect{ secure_client.ping }.to raise_error(Riak::TlsError) end end describe 'with security enabled on Riak', yes_security: true do @@ -57,17 +57,17 @@ end it "refuses to connect if the server cert is revoked" do revoked_auth_config = config.dup revoked_auth_config[:authentication] = revoked_auth_config[:authentication].dup - + revoked_auth_config[:authentication][:crl_file] = - File.expand_path(File.join('..', - '..', + File.expand_path(File.join('..', '..', - 'support', - 'certs', + '..', + 'support', + 'certs', 'server.crl'), __FILE__) revoked_auth_config[:authentication][:crl] = true revoked_auth_client = Riak::Client.new revoked_auth_config @@ -79,10 +79,10 @@ end describe 'with client certificate security enabled on Riak', yes_security: true do it 'connects normally with authentication configured' do client_cert_config = config.dup - client_cert_config[:authentication] = + client_cert_config[:authentication] = client_cert_config[:authentication].dup client_cert_config[:authentication][:client_ca] = client_cert_config[:authentication]['ca_file'] client_cert_config[:authentication][:cert] = 'spec/support/certs/client.crt'