remove nameserver validation from update and create interactions, refactored tests, job and move validator to services scoup

This commit is contained in:
olegphenomenon 2022-01-06 14:25:12 +02:00
parent d81e7fa978
commit 287c4ea5d6
13 changed files with 76 additions and 129 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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