From eb0772e5e988f15567fe65a25de49f36dbaf9b59 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 2 Jun 2015 15:10:15 +0300 Subject: [PATCH] Domain test fixes #2660 --- spec/epp/domain_spec.rb | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index 2bb129338..647f88f1d 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -1415,29 +1415,31 @@ describe 'EPP Domain', epp: true do it 'should not return action pending when changes are invalid' do existing_pw = domain.auth_info + hostnames = domain.nameservers.pluck(:hostname) + xml_params = { name: { value: domain.name }, - chg: [ - registrant: { value: 'FIXED:CITIZEN_1234' } - ], - rem: - domain.nameservers.map do |ns| - { - ns: [ + rem: [ + { + ns: + hostnames.map do |x| { hostAttr: [ - { hostName: { value: ns.hostname } } + { hostName: { value: x } } ] } - ] - } - end + end + } + ], + chg: [ + registrant: { value: 'FIXED:CITIZEN_1234' } + ] } response = epp_plain_request(domain_update_xml(xml_params, {}, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ] @@ -1472,7 +1474,7 @@ describe 'EPP Domain', epp: true do response = epp_plain_request(domain_update_xml(xml_params, {}, { _anonymus: [ legalDocument: { - value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==', + value: 'dGVzdCBmYWlsCg==', attrs: { type: 'pdf' } } ]