mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
remove nameserver validation from update and create interactions, refactored tests, job and move validator to services scoup
This commit is contained in:
parent
d81e7fa978
commit
287c4ea5d6
13 changed files with 76 additions and 129 deletions
|
@ -8,10 +8,8 @@ class EppDomainUpdateBaseTest < EppTestCase
|
|||
@domain = domains(:shop)
|
||||
@contact = contacts(:john)
|
||||
@original_registrant_change_verification =
|
||||
Setting.request_confirmation_on_registrant_change_enabled
|
||||
Setting.request_confirmation_on_registrant_change_enabled
|
||||
ActionMailer::Base.deliveries.clear
|
||||
|
||||
Spy.on_instance_method(Actions::DomainUpdate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
teardown do
|
||||
|
|
|
@ -10,10 +10,8 @@ class EppDomainUpdateRemDnsTest < EppTestCase
|
|||
@dnskey = dnskeys(:one)
|
||||
@dnskey.update(domain: @domain)
|
||||
@original_registrant_change_verification =
|
||||
Setting.request_confirmation_on_registrant_change_enabled
|
||||
Setting.request_confirmation_on_registrant_change_enabled
|
||||
ActionMailer::Base.deliveries.clear
|
||||
|
||||
Spy.on_instance_method(Actions::DomainUpdate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
teardown do
|
||||
|
|
|
@ -8,7 +8,6 @@ class ReppV1DomainsContactsTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(Actions::DomainUpdate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
def test_shows_existing_domain_contacts
|
||||
|
|
|
@ -8,7 +8,6 @@ class ReppV1DomainsCreateTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(Actions::DomainCreate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
def test_creates_new_domain_successfully
|
||||
|
|
|
@ -8,7 +8,6 @@ class ReppV1DomainsDnssecTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(Actions::DomainUpdate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
def test_shows_dnssec_keys_associated_with_domain
|
||||
|
|
|
@ -8,8 +8,6 @@ class ReppV1DomainsNameserversTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
|
||||
Spy.on_instance_method(Actions::DomainUpdate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
def test_can_add_new_nameserver
|
||||
|
|
|
@ -8,7 +8,6 @@ class ReppV1DomainsUpdateTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(Actions::DomainUpdate, :check_for_valid_nameserver).and_return(true)
|
||||
end
|
||||
|
||||
def test_updates_transfer_code_for_domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue