mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 14:14:49 +02:00
move on functionality for separate service object and updated tests
This commit is contained in:
parent
9b07b5ff0f
commit
ae269c6772
10 changed files with 106 additions and 94 deletions
|
@ -15,7 +15,7 @@ class RegistrantApiVerificationsTest < ApplicationIntegrationTest
|
|||
@domain.update!(statuses: [DomainStatus::PENDING_UPDATE],
|
||||
registrant_verification_asked_at: Time.zone.now - 1.day,
|
||||
registrant_verification_token: @token)
|
||||
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
def test_fetches_registrant_change_request
|
||||
|
|
|
@ -10,6 +10,7 @@ class EppDomainUpdateBaseTest < EppTestCase
|
|||
@original_registrant_change_verification =
|
||||
Setting.request_confirmation_on_registrant_change_enabled
|
||||
ActionMailer::Base.deliveries.clear
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
teardown do
|
||||
|
|
|
@ -12,6 +12,7 @@ class EppDomainUpdateRemDnsTest < EppTestCase
|
|||
@original_registrant_change_verification =
|
||||
Setting.request_confirmation_on_registrant_change_enabled
|
||||
ActionMailer::Base.deliveries.clear
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
teardown do
|
||||
|
|
|
@ -8,6 +8,7 @@ class ReppV1DomainsContactsTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
def test_shows_existing_domain_contacts
|
||||
|
|
|
@ -8,6 +8,7 @@ class ReppV1DomainsDnssecTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
def test_shows_dnssec_keys_associated_with_domain
|
||||
|
|
|
@ -8,6 +8,7 @@ class ReppV1DomainsNameserversTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
def test_can_add_new_nameserver
|
||||
|
|
|
@ -8,6 +8,7 @@ class ReppV1DomainsUpdateTest < ActionDispatch::IntegrationTest
|
|||
token = "Basic #{token}"
|
||||
|
||||
@auth_headers = { 'Authorization' => token }
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
def test_updates_transfer_code_for_domain
|
||||
|
|
|
@ -14,6 +14,7 @@ class DomainUpdateConfirmJobTest < ActiveSupport::TestCase
|
|||
new_registrant_name: @new_registrant.name,
|
||||
new_registrant_email: @new_registrant.email,
|
||||
current_user_id: @user.id })
|
||||
Spy.on_instance_method(ValidateDnssec, :validate_dnssec).and_return(true)
|
||||
end
|
||||
|
||||
def teardown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue