mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
Improve DomainCreate wrapper for EPP
This commit is contained in:
parent
ccef1053d9
commit
ad2ccdba7d
7 changed files with 53 additions and 124 deletions
|
@ -28,6 +28,7 @@ class ReppV1DomainsTransferInfoTest < ActionDispatch::IntegrationTest
|
|||
def test_respects_domain_authorization_code
|
||||
headers = @auth_headers
|
||||
headers['Auth-Code'] = 'jhfgifhdg'
|
||||
@domain.update!(registrar: registrars(:goodnames))
|
||||
|
||||
get "/repp/v1/domains/#{@domain.name}/transfer_info", headers: headers
|
||||
json = JSON.parse(response.body, symbolize_names: true)
|
||||
|
|
|
@ -77,7 +77,7 @@ class ReppV1RetainedDomainsTest < ActionDispatch::IntegrationTest
|
|||
status: 'disputed',
|
||||
punycode_name: 'reserved.test' }]
|
||||
|
||||
assert_equal response_json[:domains], expected_objects
|
||||
assert_equal response_json[:domains].to_set, expected_objects.to_set
|
||||
end
|
||||
|
||||
def test_etags_cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue