mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
Remove email verification legacy code
This commit is contained in:
parent
47a93b200a
commit
f8612d687f
17 changed files with 36 additions and 538 deletions
|
@ -717,52 +717,6 @@ class EppDomainUpdateBaseTest < EppTestCase
|
|||
assert_no_emails
|
||||
end
|
||||
|
||||
# COMMENT OU REASON: FOR EXPIRED DOMAIN SHOULD NOT SET FD
|
||||
# def test_makes_update_if_was_forcedelete
|
||||
# contact = @domain.contacts.first
|
||||
# contact.update_attribute(:email, '`@outlook.test')
|
||||
# contact.verify_email
|
||||
# assert contact.email_verification_failed?
|
||||
# @domain.reload
|
||||
#
|
||||
# assert @domain.force_delete_scheduled?
|
||||
#
|
||||
# @domain.update_attribute(:statuses_before_force_delete, nil)
|
||||
#
|
||||
# Setting.request_confirmation_on_registrant_change_enabled = true
|
||||
# new_registrant = contacts(:william).becomes(Registrant)
|
||||
# assert_not_equal new_registrant, @domain.registrant
|
||||
#
|
||||
# request_xml = <<-XML
|
||||
# <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
# <epp xmlns="#{Xsd::Schema.filename(for_prefix: 'epp-ee', for_version: '1.0')}">
|
||||
# <command>
|
||||
# <update>
|
||||
# <domain:update xmlns:domain="#{Xsd::Schema.filename(for_prefix: 'domain-ee', for_version: '1.2')}">
|
||||
# <domain:name>#{@domain.name}</domain:name>
|
||||
# <domain:chg>
|
||||
# <domain:registrant verified="yes">#{new_registrant.code}</domain:registrant>
|
||||
# </domain:chg>
|
||||
# </domain:update>
|
||||
# </update>
|
||||
# <extension>
|
||||
# <eis:extdata xmlns:eis="#{Xsd::Schema.filename(for_prefix: 'eis', for_version: '1.0')}">
|
||||
# <eis:legalDocument type="pdf">#{'test' * 2000}</eis:legalDocument>
|
||||
# </eis:extdata>
|
||||
# </extension>
|
||||
# </command>
|
||||
# </epp>
|
||||
# XML
|
||||
#
|
||||
# post epp_update_path, params: { frame: request_xml },
|
||||
# headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
# @domain.reload
|
||||
#
|
||||
# response_xml = Nokogiri::XML(response.body)
|
||||
# assert_correct_against_schema response_xml
|
||||
# assert_epp_response :completed_successfully
|
||||
# end
|
||||
|
||||
def test_clears_force_delete_when_registrar_changed
|
||||
Setting.request_confirmation_on_registrant_change_enabled = true
|
||||
new_registrant = contacts(:william).becomes(Registrant)
|
||||
|
|
|
@ -28,33 +28,4 @@ class DomainExpireMailerTest < ActionMailer::TestCase
|
|||
assert_equal I18n.t("domain_expire_mailer.expired_soft.subject", domain_name: domain.name),
|
||||
email.subject
|
||||
end
|
||||
|
||||
# COMMENT OU REASON: FOR EXPIRED DOMAIN SHOULD NOT SET FD
|
||||
# def test_delivers_domain_expiration_soft_email_if_auto_fd
|
||||
# domain = domains(:shop)
|
||||
# email_address = domain.registrar.email
|
||||
# assert_not domain.force_delete_scheduled?
|
||||
# travel_to Time.zone.parse('2010-07-05')
|
||||
# email = '`@internet.ee'
|
||||
#
|
||||
# Truemail.configure.default_validation_type = :regex
|
||||
#
|
||||
# contact = domain.admin_contacts.first
|
||||
# contact.update_attribute(:email, email)
|
||||
# contact.verify_email
|
||||
#
|
||||
# assert contact.email_verification_failed?
|
||||
#
|
||||
# domain.reload
|
||||
#
|
||||
# assert_no domain.force_delete_scheduled?
|
||||
#
|
||||
# email = DomainExpireMailer.expired_soft(domain: domain,
|
||||
# registrar: domain.registrar,
|
||||
# email: email_address).deliver_now
|
||||
#
|
||||
# assert_emails 1
|
||||
# assert_equal I18n.t("domain_expire_mailer.expired_soft.subject", domain_name: domain.name),
|
||||
# email.subject
|
||||
# end
|
||||
end
|
||||
|
|
|
@ -137,9 +137,8 @@ class BouncedMailAddressTest < ActiveSupport::TestCase
|
|||
bounced_mail = BouncedMailAddress.last
|
||||
registrant = domains(:shop).registrant
|
||||
registrant.verify_email(check_level: 'smtp')
|
||||
|
||||
|
||||
assert_equal registrant.email, bounced_mail.email
|
||||
assert registrant.email_verification_failed?
|
||||
end
|
||||
|
||||
def sns_bounce_payload
|
||||
|
|
|
@ -398,8 +398,6 @@ class ForceDeleteTest < ActionMailer::TestCase
|
|||
contact.verify_email
|
||||
end
|
||||
|
||||
assert contact.email_verification_failed?
|
||||
|
||||
@domain.reload
|
||||
|
||||
assert @domain.force_delete_scheduled?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue