mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Refactor + new test #2565
This commit is contained in:
parent
664d49c37a
commit
3454faa959
2 changed files with 31 additions and 4 deletions
|
@ -1490,6 +1490,33 @@ describe 'EPP Domain', epp: true do
|
|||
d.pending_update?.should == false
|
||||
end
|
||||
|
||||
it 'should keep reserved status after reserved domain update' do
|
||||
domain.statuses = ['reserved']
|
||||
domain.save
|
||||
|
||||
xml_params = {
|
||||
name: { value: domain.name },
|
||||
chg: [
|
||||
registrant: { value: 'FIXED:CITIZEN_1234', attrs: { verified: 'yes' } }
|
||||
]
|
||||
}
|
||||
|
||||
response = epp_plain_request(domain_update_xml(xml_params, {}, {
|
||||
_anonymus: [
|
||||
legalDocument: {
|
||||
value: 'dGVzdCBmYWlsCg==',
|
||||
attrs: { type: 'pdf' }
|
||||
}
|
||||
]
|
||||
}))
|
||||
|
||||
response[:results][0][:msg].should == 'Command completed successfully'
|
||||
response[:results][0][:result_code].should == '1000'
|
||||
|
||||
d = Domain.last
|
||||
d.statuses.should match_array(['reserved'])
|
||||
end
|
||||
|
||||
it 'updates a domain' do
|
||||
existing_pw = domain.auth_info
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue