mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 20:27:30 +02:00
Test puny domain for transfer info
This commit is contained in:
parent
887283fd72
commit
97abe3fb9e
1 changed files with 13 additions and 0 deletions
|
@ -37,4 +37,17 @@ class ReppV1DomainsTransferInfoTest < ActionDispatch::IntegrationTest
|
||||||
assert_equal 'Authorization error', json[:message]
|
assert_equal 'Authorization error', json[:message]
|
||||||
assert_empty json[:data]
|
assert_empty json[:data]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_processes_puny_domains
|
||||||
|
@domain.update(name_puny: 'xn--prototp-s2aa.ee')
|
||||||
|
|
||||||
|
headers = @auth_headers
|
||||||
|
headers['Auth-Code'] = @domain.transfer_code
|
||||||
|
|
||||||
|
get "/repp/v1/domains/xn--prototp-s2aa.ee/transfer_info", headers: headers
|
||||||
|
json = JSON.parse(response.body, symbolize_names: true)
|
||||||
|
|
||||||
|
assert_response :ok
|
||||||
|
assert_equal 1000, json[:code]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue