Add transfer prohibit to admin #2922

This commit is contained in:
Martin Lensment 2015-09-10 11:45:36 +03:00
parent 7064a4b9bc
commit 1d19bc9863
3 changed files with 33 additions and 14 deletions

View file

@ -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