Auth code 2200 to 2201

This commit is contained in:
Martin Lensment 2014-10-20 18:00:44 +03:00
parent 946659083d
commit 33565a7f76
3 changed files with 6 additions and 6 deletions

View file

@ -39,7 +39,7 @@ class Epp::EppDomain < Domain
}
]
],
'2200' => [
'2201' => [
[:auth_info, :wrong_pw]
]
}

View file

@ -102,7 +102,7 @@ en:
out_of_range: 'Period must add up to 1, 2 or 3 years'
not_a_number: 'Period is not a number'
auth_info:
wrong_pw: 'Authentication error'
wrong_pw: 'Authorization error'
domain_statuses:
invalid: 'Statuses are invalid'
not_found: 'Status was not found'

View file

@ -141,8 +141,8 @@ describe 'EPP Domain', epp: true do
it 'does not transfer with invalid pw' do
response = epp_request(domain_transfer_xml(pw: 'test'), :xml)
expect(response[:result_code]).to eq('2200')
expect(response[:msg]).to eq('Authentication error')
expect(response[:result_code]).to eq('2201')
expect(response[:msg]).to eq('Authorization error')
end
it 'ignores transfer when owner registrar requests transfer' do
@ -165,8 +165,8 @@ describe 'EPP Domain', epp: true do
xml = domain_transfer_xml(pw: pw)
epp_request(xml, :xml, :elkdata) # transfer domain
response = epp_request(xml, :xml, :elkdata) # attempt second transfer
expect(response[:result_code]).to eq('2200')
expect(response[:msg]).to eq('Authentication error')
expect(response[:result_code]).to eq('2201')
expect(response[:msg]).to eq('Authorization error')
end
end