From 97c3277ed9668683f8dedc3492a74446f2ab26b0 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 11 Aug 2015 10:35:42 +0300 Subject: [PATCH] Add force delete test to domain #2845 --- spec/epp/domain_spec.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index 26fc2b7b3..3062bbeb6 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -1855,6 +1855,31 @@ describe 'EPP Domain', epp: true do d.pending_update?.should == true 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 xml = domain_update_xml({ name: { value: domain.name },