Skip to content

Commit

Permalink
comment out notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
olegphenomenon committed Feb 9, 2022
1 parent f460c86 commit fb8fe15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 49 deletions.
4 changes: 2 additions & 2 deletions app/jobs/nameserver_record_validation_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ def failed_log(text:, nameserver:, domain:)
end

def inform_to_tech_contact(domain:, nameserver:, text: nil)
ContactNotification.notify_tech_contact(domain: domain, nameserver: nameserver, reason: 'nameserver')
# ContactNotification.notify_tech_contact(domain: domain, nameserver: nameserver, reason: 'nameserver')
end

def inform_to_registrar(nameserver:, text: nil)
text = "Host record #{nameserver.hostname} of a domain #{nameserver.domain} is invalid.
Please fix or contact the registrant. Problem with nameserver #{nameserver} - #{nameserver.failed_validation_reason}"
logger.info text
ContactNotification.notify_registrar(domain: nameserver.domain, text: text)
# ContactNotification.notify_registrar(domain: nameserver.domain, text: text)
end

def logger
Expand Down
4 changes: 2 additions & 2 deletions app/jobs/validate_dnssec_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def notify_contacts(domain)

text = "DNSKEY record of a domain #{domain.name} is invalid. Please fix or contact the registrant."
logger.info text
ContactNotification.notify_registrar(domain: domain, text: text)
ContactNotification.notify_tech_contact(domain: domain, reason: 'dnssec')
# ContactNotification.notify_registrar(domain: domain, text: text)
# ContactNotification.notify_tech_contact(domain: domain, reason: 'dnssec')
end

def validate(hostname:, domain:, type: 'DNSKEY', klass: 'IN')
Expand Down
45 changes: 0 additions & 45 deletions test/system/registrar_area/contact_test.rb

This file was deleted.

0 comments on commit fb8fe15

Please sign in to comment.