mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Fix date formats in EPP #2644
This commit is contained in:
parent
c47f80280c
commit
bd18cc0a85
11 changed files with 44 additions and 44 deletions
|
@ -51,19 +51,19 @@ describe 'EPP Contact', epp: true do
|
|||
response = epp_plain_request(@epp_xml.create, :xml)
|
||||
response[:results][0][:msg].should ==
|
||||
'Required parameter missing: create > create > postalInfo > name [name]'
|
||||
response[:results][1][:msg].should ==
|
||||
response[:results][1][:msg].should ==
|
||||
'Required parameter missing: create > create > postalInfo > addr > street [street]'
|
||||
response[:results][2][:msg].should ==
|
||||
response[:results][2][:msg].should ==
|
||||
'Required parameter missing: create > create > postalInfo > addr > city [city]'
|
||||
response[:results][3][:msg].should ==
|
||||
response[:results][3][:msg].should ==
|
||||
'Required parameter missing: create > create > postalInfo > addr > pc [pc]'
|
||||
response[:results][4][:msg].should ==
|
||||
response[:results][4][:msg].should ==
|
||||
'Required parameter missing: create > create > postalInfo > addr > cc [cc]'
|
||||
response[:results][5][:msg].should ==
|
||||
response[:results][5][:msg].should ==
|
||||
'Required parameter missing: create > create > voice [voice]'
|
||||
response[:results][6][:msg].should ==
|
||||
response[:results][6][:msg].should ==
|
||||
'Required parameter missing: create > create > email [email]'
|
||||
response[:results][7][:msg].should ==
|
||||
response[:results][7][:msg].should ==
|
||||
'Required parameter missing: extension > extdata > ident [ident]'
|
||||
|
||||
response[:results][0][:result_code].should == '2003'
|
||||
|
@ -299,7 +299,7 @@ describe 'EPP Contact', epp: true do
|
|||
response = update_request({ id: { value: 'FIRST0:SH8013' } })
|
||||
|
||||
response[:msg].should == 'Command completed successfully'
|
||||
|
||||
|
||||
@contact.reload
|
||||
@contact.name.should == 'John Doe Edited'
|
||||
@contact.email.should == 'edited@example.example'
|
||||
|
@ -629,12 +629,12 @@ describe 'EPP Contact', epp: true do
|
|||
id: { value: 'FIRST0:SH8013' },
|
||||
authInfo: { pw: { value: 'password' } },
|
||||
rem: {
|
||||
postalInfo: { org: { value: 'not important' } }
|
||||
postalInfo: { org: { value: 'not important' } }
|
||||
}
|
||||
})
|
||||
|
||||
response = epp_plain_request(xml, :xml)
|
||||
response[:results][0][:msg].should ==
|
||||
response[:results][0][:msg].should ==
|
||||
'Parameter value policy error. Org must be blank: postalInfo > org [org]'
|
||||
response[:results][0][:result_code].should == '2306'
|
||||
end
|
||||
|
@ -644,7 +644,7 @@ describe 'EPP Contact', epp: true do
|
|||
id: { value: 'FIRST0:SH8013' },
|
||||
authInfo: { pw: { value: 'password' } },
|
||||
rem: {
|
||||
postalInfo: {
|
||||
postalInfo: {
|
||||
name: { value: 'not important' }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,8 +88,8 @@ describe 'EPP Domain', epp: true do
|
|||
cre_data = response[:parsed].css('creData')
|
||||
|
||||
cre_data.css('name').text.should == dn
|
||||
cre_data.css('crDate').text.should == d.created_at.to_time.utc.to_s
|
||||
cre_data.css('exDate').text.should == d.valid_to.to_time.utc.to_s
|
||||
cre_data.css('crDate').text.should == d.created_at.to_time.utc.iso8601
|
||||
cre_data.css('exDate').text.should == d.valid_to.to_time.utc.iso8601
|
||||
|
||||
response[:clTRID].should == 'ABC-12345'
|
||||
|
||||
|
@ -733,10 +733,10 @@ describe 'EPP Domain', epp: true do
|
|||
trn_data.css('name').text.should == domain.name
|
||||
trn_data.css('trStatus').text.should == 'serverApproved'
|
||||
trn_data.css('reID').text.should == 'REGDOMAIN2'
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
||||
trn_data.css('acID').text.should == 'REGDOMAIN1'
|
||||
trn_data.css('acDate').text.should == dtl.transferred_at.to_time.utc.to_s
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s
|
||||
trn_data.css('acDate').text.should == dtl.transferred_at.to_time.utc.iso8601
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
||||
|
||||
domain.registrar.should == @registrar2
|
||||
|
||||
|
@ -777,10 +777,10 @@ describe 'EPP Domain', epp: true do
|
|||
trn_data.css('name').text.should == domain.name
|
||||
trn_data.css('trStatus').text.should == 'pending'
|
||||
trn_data.css('reID').text.should == 'REGDOMAIN1'
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s
|
||||
trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.to_s
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
||||
trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.iso8601
|
||||
trn_data.css('acID').text.should == 'REGDOMAIN2'
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
||||
|
||||
domain.registrar.should == @registrar2
|
||||
|
||||
|
@ -792,10 +792,10 @@ describe 'EPP Domain', epp: true do
|
|||
trn_data.css('name').text.should == domain.name
|
||||
trn_data.css('trStatus').text.should == 'pending'
|
||||
trn_data.css('reID').text.should == 'REGDOMAIN1'
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s
|
||||
trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.to_s
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
||||
trn_data.css('acDate').text.should == dtl.wait_until.to_time.utc.iso8601
|
||||
trn_data.css('acID').text.should == 'REGDOMAIN2'
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
||||
|
||||
domain.registrar.should == @registrar2
|
||||
|
||||
|
@ -1199,9 +1199,9 @@ describe 'EPP Domain', epp: true do
|
|||
trn_data.css('name').text.should == domain.name
|
||||
trn_data.css('trStatus').text.should == 'clientApproved'
|
||||
trn_data.css('reID').text.should == 'REGDOMAIN2'
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.to_s
|
||||
trn_data.css('reDate').text.should == dtl.transfer_requested_at.to_time.utc.iso8601
|
||||
trn_data.css('acID').text.should == 'REGDOMAIN1'
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s
|
||||
trn_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
||||
end
|
||||
|
||||
it 'rejects a domain transfer' do
|
||||
|
@ -1870,7 +1870,7 @@ describe 'EPP Domain', epp: true do
|
|||
|
||||
ex_date = response[:parsed].css('renData exDate').text
|
||||
name = response[:parsed].css('renData name').text
|
||||
ex_date.should == "#{(exp_date + 1.year)} 00:00:00 UTC"
|
||||
ex_date.should == "#{(exp_date + 1.year)}T00:00:00Z"
|
||||
name.should == domain.name
|
||||
end
|
||||
|
||||
|
@ -1957,8 +1957,8 @@ describe 'EPP Domain', epp: true do
|
|||
ns1.css('hostName').last.text.should == 'ns1.example.com'
|
||||
ns1.css('hostAddr').first.text.should == '192.168.1.1'
|
||||
ns1.css('hostAddr').last.text.should == '1080:0:0:0:8:800:200C:417A'
|
||||
inf_data.css('crDate').text.should == domain.created_at.to_time.utc.to_s
|
||||
inf_data.css('exDate').text.should == domain.valid_to.to_time.utc.to_s
|
||||
inf_data.css('crDate').text.should == domain.created_at.to_time.utc.iso8601
|
||||
inf_data.css('exDate').text.should == domain.valid_to.to_time.utc.iso8601
|
||||
inf_data.css('pw').text.should == domain.auth_info
|
||||
|
||||
ds_data_1 = response[:parsed].css('dsData')[0]
|
||||
|
@ -1987,7 +1987,7 @@ describe 'EPP Domain', epp: true do
|
|||
response = epp_plain_request(domain_info_xml(name: { value: domain.name }), :xml)
|
||||
inf_data = response[:parsed].css('resData infData')
|
||||
|
||||
inf_data.css('upDate').text.should == domain.updated_at.to_time.utc.to_s
|
||||
inf_data.css('upDate').text.should == domain.updated_at.to_time.utc.iso8601
|
||||
end
|
||||
|
||||
it 'returns domain info with different nameservers' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue