mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Auth code 2200 to 2201
This commit is contained in:
parent
946659083d
commit
33565a7f76
3 changed files with 6 additions and 6 deletions
|
@ -39,7 +39,7 @@ class Epp::EppDomain < Domain
|
|||
}
|
||||
]
|
||||
],
|
||||
'2200' => [
|
||||
'2201' => [
|
||||
[:auth_info, :wrong_pw]
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue