mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Add transfer prohibit to admin #2922
This commit is contained in:
parent
7064a4b9bc
commit
1d19bc9863
3 changed files with 33 additions and 14 deletions
|
@ -1767,6 +1767,23 @@ describe 'EPP Domain', epp: true do
|
|||
end
|
||||
end
|
||||
|
||||
it 'should not transfer when in prohibited status' do
|
||||
domain.statuses = [DomainStatus::SERVER_TRANSFER_PROHIBITED]
|
||||
domain.save
|
||||
|
||||
pw = domain.auth_info
|
||||
xml = domain_transfer_xml({
|
||||
name: { value: domain.name },
|
||||
authInfo: { pw: { value: pw } }
|
||||
})
|
||||
|
||||
login_as :registrar2 do
|
||||
response = epp_plain_request(xml)
|
||||
response[:msg].should == 'Object status prohibits operation'
|
||||
response[:result_code].should == '2304'
|
||||
end
|
||||
end
|
||||
|
||||
### UPDATE ###
|
||||
it 'should update right away without update pending status' do
|
||||
existing_pw = domain.auth_info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue