Set normal statuses for reserved domains #2746

This commit is contained in:
Martin Lensment 2015-07-09 12:21:34 +03:00
parent 3454faa959
commit 873070cb96
2 changed files with 26 additions and 24 deletions

View file

@ -242,7 +242,7 @@ describe 'EPP Domain', epp: true do
response[:result_code].should == '1000'
d = Domain.last
d.statuses.should match_array(['reserved'])
d.statuses.should match_array(['ok'])
d.auth_info.should_not == 'abc' # should generate entirely new auth info after domain create
end
@ -1490,32 +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
# TODO: Remove this test if EIS decides not to create reserved status #2565
# 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' } }
]
}
# 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 = 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'
# 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
# d = Domain.last
# d.statuses.should match_array(['reserved'])
# end
it 'updates a domain' do
existing_pw = domain.auth_info