From 265568dcf30f84f573f8345a24eb7bc6b4705c73 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 2 Jun 2015 13:25:49 +0300 Subject: [PATCH] Do not validate invalid request #2660 --- db/schema.rb | 2 +- spec/epp/contact_spec.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 587ef3991..3f0236f3d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -957,7 +957,7 @@ ActiveRecord::Schema.define(version: 20150525075550) do t.text "crt" t.string "type" t.string "registrant_ident" - t.string "encrypted_password", default: "" + t.string "encrypted_password", default: "", null: false t.datetime "remember_created_at" t.integer "failed_attempts", default: 0, null: false t.datetime "locked_at" diff --git a/spec/epp/contact_spec.rb b/spec/epp/contact_spec.rb index 68dfffdd4..ebe0d646d 100644 --- a/spec/epp/contact_spec.rb +++ b/spec/epp/contact_spec.rb @@ -28,7 +28,7 @@ describe 'EPP Contact', epp: true do context 'with valid user' do context 'create command' do - def create_request(overwrites = {}, extension = {}) + def create_request(overwrites = {}, extension = {}, options = {}) extension = @extension if extension.blank? defaults = { @@ -48,7 +48,7 @@ describe 'EPP Contact', epp: true do email: { value: 'test@example.example' } } create_xml = @epp_xml.create(defaults.deep_merge(overwrites), extension) - epp_plain_request(create_xml, :xml) + epp_plain_request(create_xml, options) end it 'fails if request xml is missing' do @@ -177,8 +177,8 @@ describe 'EPP Contact', epp: true do attrs: { type: 'birthday', cc: 'WRONG' } } } - response = create_request({}, extension) - response[:msg].should == + response = create_request({}, extension, validate_input: false) + response[:msg].should == 'Ident country code is not valid, should be in ISO_3166-1 alpha 2 format [ident]' response[:result_code].should == '2005' end