mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Set dnssec keys to empty array when generating zone whois
This commit is contained in:
parent
1c8f04c099
commit
a20c4020ef
2 changed files with 7 additions and 2 deletions
|
@ -31,12 +31,14 @@ module Concerns
|
|||
data
|
||||
end
|
||||
|
||||
# Take note - since this concern only used to zone whois queries, dnssec keys are set to
|
||||
# empty array
|
||||
def domain_vars
|
||||
{ disclaimer: Setting.registry_whois_disclaimer, name: origin,
|
||||
registered: created_at.try(:to_s, :iso8601), status: ['ok (paid and in zone)'],
|
||||
changed: updated_at.try(:to_s, :iso8601), email: Setting.registry_email,
|
||||
admin_contacts: [contact_vars], tech_contacts: [contact_vars],
|
||||
nameservers: nameserver_vars }
|
||||
nameservers: nameserver_vars, dnssec_keys: [], dnssec_changed: nil }
|
||||
end
|
||||
|
||||
def registrar_vars
|
||||
|
|
|
@ -12,7 +12,10 @@ class RegenerateSubzoneWhoisesJobTest < ActiveSupport::TestCase
|
|||
assert_nil Whois::Record.find_by(name: dns_zones(:one).origin)
|
||||
|
||||
RegenerateSubzoneWhoisesJob.run
|
||||
assert Whois::Record.find_by(name: subzone.origin)
|
||||
record = Whois::Record.find_by(name: subzone.origin)
|
||||
assert record
|
||||
assert record.json['dnssec_keys'].is_a?(Array)
|
||||
|
||||
assert_nil Whois::Record.find_by(name: dns_zones(:one).origin)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue