mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Domain test fixes #2660
This commit is contained in:
parent
265568dcf3
commit
eb0772e5e9
1 changed files with 15 additions and 13 deletions
|
@ -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' }
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue