mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Add force delete test to domain #2845
This commit is contained in:
parent
c5ba1b0dd3
commit
97c3277ed9
1 changed files with 25 additions and 0 deletions
|
@ -1855,6 +1855,31 @@ describe 'EPP Domain', epp: true do
|
||||||
d.pending_update?.should == true
|
d.pending_update?.should == true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'should not allow any update when status force delete' do
|
||||||
|
domain.set_force_delete
|
||||||
|
|
||||||
|
existing_pw = domain.auth_info
|
||||||
|
|
||||||
|
xml_params = {
|
||||||
|
name: { value: domain.name },
|
||||||
|
chg: [
|
||||||
|
registrant: { value: 'FIXED:CITIZEN_1234' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
response = epp_plain_request(domain_update_xml(xml_params, {}, {
|
||||||
|
_anonymus: [
|
||||||
|
legalDocument: {
|
||||||
|
value: 'dGVzdCBmYWlsCg==',
|
||||||
|
attrs: { type: 'pdf' }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}))
|
||||||
|
|
||||||
|
response[:results][0][:msg].should == 'Object status prohibits operation'
|
||||||
|
response[:results][0][:result_code].should == '2304'
|
||||||
|
end
|
||||||
|
|
||||||
it 'updates domain and adds objects' do
|
it 'updates domain and adds objects' do
|
||||||
xml = domain_update_xml({
|
xml = domain_update_xml({
|
||||||
name: { value: domain.name },
|
name: { value: domain.name },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue