Fix contact create in registrar #2752

This commit is contained in:
Martin Lensment 2015-07-24 13:13:27 +03:00
parent 4c52e3b0b4
commit e463fe4d70
3 changed files with 29 additions and 28 deletions

View file

@ -87,8 +87,8 @@ describe 'EPP Poll', epp: true do
})
response = epp_plain_request(xml, validate_input: false)
response[:msg].should == 'Parameter value range error: op'
response[:result_code].should == '2004'
response[:msg].should == "Element '{urn:ietf:params:xml:ns:epp-1.0}poll', attribute 'op': [facet 'enumeration'] The value 'bla' is not an element of the set {'ack', 'req'}."
response[:result_code].should == '2001'
end
it 'dequeues multiple messages' do

View file

@ -142,8 +142,8 @@ describe 'EPP Session', epp: true do
newPW: { value: '' }
), validate_input: false)
response[:msg].should == 'Password is missing [password]'
response[:result_code].should == '2306'
response[:msg].should == "Element '{urn:ietf:params:xml:ns:epp-1.0}newPW': [facet 'minLength'] The value has a length of '0'; this underruns the allowed minimum length of '6'."
response[:result_code].should == '2001'
@api_user.reload
@api_user.password.should == 'ghyt9e4fu'