mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Add API/Registrant/Domains route
This commit is contained in:
parent
311aa503b3
commit
0ab9f6333f
4 changed files with 53 additions and 1 deletions
12
test/fixtures/domains.yml
vendored
12
test/fixtures/domains.yml
vendored
|
@ -42,10 +42,20 @@ metro:
|
|||
period_unit: m
|
||||
uuid: ef97cb80-333b-4893-b9df-163f2b452798
|
||||
|
||||
hospital:
|
||||
name: hospital.test
|
||||
registrar: goodnames
|
||||
registrant: william
|
||||
transfer_code: 23118v2
|
||||
valid_to: 2010-07-05
|
||||
period: 1
|
||||
period_unit: m
|
||||
uuid: 5edda1a5-3548-41ee-8b65-6d60daf85a37
|
||||
|
||||
invalid:
|
||||
name: invalid.test
|
||||
transfer_code: 1438d6
|
||||
valid_to: <%= Time.zone.parse('2010-07-05').utc.to_s(:db) %>
|
||||
registrar: bestnames
|
||||
registrant: invalid
|
||||
uuid: 3c430ead-bb17-4b5b-aaa1-caa7dde7e138
|
||||
uuid: 3c430ead-bb17-4b5b-aaa1-caa7dde7e138
|
||||
|
|
17
test/system/api/registrant/registrant_api_domains_test.rb
Normal file
17
test/system/api/registrant/registrant_api_domains_test.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrantApiDomainsTest < ApplicationSystemTestCase
|
||||
def setup
|
||||
super
|
||||
|
||||
@registrant = contacts(:william)
|
||||
end
|
||||
|
||||
def teardown
|
||||
super
|
||||
end
|
||||
|
||||
|
||||
def test_can_get_domain_details_by_uuid
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue