mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
New builder for domain update test
This commit is contained in:
parent
a7e1ee1866
commit
177425d769
3 changed files with 55 additions and 61 deletions
|
@ -162,31 +162,7 @@ module Epp
|
|||
|
||||
def domain_update_xml(xml_params = {})
|
||||
defaults = {
|
||||
name: { value: 'example.ee' },
|
||||
add: [
|
||||
{ ns:
|
||||
[
|
||||
hostObj: { value: 'ns1.example.com' },
|
||||
hostObj: { value: 'ns2.example.com' }
|
||||
]
|
||||
},
|
||||
{ contact: { attrs: { type: 'tech' }, value: 'mak21' } },
|
||||
{ status: { attrs: { s: 'clientUpdateProhibited' }, value: '' } },
|
||||
{ status: { attrs: { s: 'clientHold', lang: 'en' }, value: 'Payment overdue.' } }
|
||||
],
|
||||
rem: [
|
||||
ns: [
|
||||
hostObj: { value: 'ns1.example.com' }
|
||||
],
|
||||
contact: { attrs: { type: 'tech' }, value: 'sh8013' },
|
||||
status: { attrs: { s: 'clientUpdateProhibited' }, value: '' }
|
||||
],
|
||||
chg: [
|
||||
registrant: { value: 'mak21' },
|
||||
authInfo: [
|
||||
pw: { value: '2BARfoo' }
|
||||
]
|
||||
]
|
||||
name: { value: 'example.ee' }
|
||||
}
|
||||
|
||||
xml_params = defaults.deep_merge(xml_params)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue