mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +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
|
it 'should not return action pending when changes are invalid' do
|
||||||
existing_pw = domain.auth_info
|
existing_pw = domain.auth_info
|
||||||
|
|
||||||
|
hostnames = domain.nameservers.pluck(:hostname)
|
||||||
|
|
||||||
xml_params = {
|
xml_params = {
|
||||||
name: { value: domain.name },
|
name: { value: domain.name },
|
||||||
chg: [
|
rem: [
|
||||||
registrant: { value: 'FIXED:CITIZEN_1234' }
|
|
||||||
],
|
|
||||||
rem:
|
|
||||||
domain.nameservers.map do |ns|
|
|
||||||
{
|
{
|
||||||
ns: [
|
ns:
|
||||||
|
hostnames.map do |x|
|
||||||
{
|
{
|
||||||
hostAttr: [
|
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, {}, {
|
response = epp_plain_request(domain_update_xml(xml_params, {}, {
|
||||||
_anonymus: [
|
_anonymus: [
|
||||||
legalDocument: {
|
legalDocument: {
|
||||||
value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==',
|
value: 'dGVzdCBmYWlsCg==',
|
||||||
attrs: { type: 'pdf' }
|
attrs: { type: 'pdf' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1472,7 +1474,7 @@ describe 'EPP Domain', epp: true do
|
||||||
response = epp_plain_request(domain_update_xml(xml_params, {}, {
|
response = epp_plain_request(domain_update_xml(xml_params, {}, {
|
||||||
_anonymus: [
|
_anonymus: [
|
||||||
legalDocument: {
|
legalDocument: {
|
||||||
value: 'JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0Zp==',
|
value: 'dGVzdCBmYWlsCg==',
|
||||||
attrs: { type: 'pdf' }
|
attrs: { type: 'pdf' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue