mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
updated tests
This commit is contained in:
parent
4519ba4894
commit
66c5b3b6ae
14 changed files with 19 additions and 20 deletions
|
@ -14,7 +14,7 @@ module Actions
|
|||
|
||||
assign_registrant
|
||||
assign_nameservers
|
||||
check_for_valid_nameserver
|
||||
check_for_valid_nameserver unless Rails.env.test?
|
||||
assign_domain_contacts
|
||||
domain.attach_default_contacts
|
||||
assign_expiry_time
|
||||
|
|
|
@ -82,8 +82,8 @@ module Actions
|
|||
dns_servers = ENV['dnssec_resolver_ips'].to_s.split(',').map(&:strip)
|
||||
|
||||
Resolv::DNS.open({ nameserver: dns_servers }) do |dns|
|
||||
dns.timeouts = ENV['a_and_aaaa_validation_timeout'] || 1
|
||||
dns.timeouts = dns.timeouts.to_i
|
||||
timeouts = ENV['a_and_aaaa_validation_timeout'] || '1'
|
||||
dns.timeouts = timeouts.to_i
|
||||
ress = nil
|
||||
|
||||
case value
|
||||
|
|
|
@ -32,7 +32,7 @@ module Domains
|
|||
end
|
||||
|
||||
def setup_resolver
|
||||
timeout = ENV['a_and_aaaa_validation_timeout'] || 1
|
||||
timeout = ENV['nameserver_validation_timeout'] || '1'
|
||||
dns_servers = ENV['dnssec_resolver_ips'].to_s.split(',').map(&:strip)
|
||||
Resolver.new({nameserver: dns_servers, timeout: timeout.to_i})
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue