Class: Bullion::RSpec::ChallengeClients::DNS
- Inherits:
-
ChallengeClients::DNS
- Object
- ChallengeClient
- ChallengeClients::DNS
- Bullion::RSpec::ChallengeClients::DNS
- Defined in:
- lib/bullion/rspec/challenge_clients/dns.rb
Overview
A test DNS challenge client resolver for RSpec
Defined Under Namespace
Classes: FakeDNSRecord
Constant Summary
Constants inherited from ChallengeClient
ChallengeClient::ChallengeClientMetric
Instance Attribute Summary
Attributes inherited from ChallengeClient
Instance Method Summary collapse
Methods inherited from ChallengeClients::DNS
acme_type, #digest_value, #dns_name, #dns_value, #perform, #type
Methods inherited from ChallengeClient
#attempt, #identifier, #initialize
Constructor Details
This class inherits a constructor from Bullion::ChallengeClient
Instance Method Details
#records_for(name, _nameserver = nil) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/bullion/rspec/challenge_clients/dns.rb', line 10 def records_for(name, _nameserver = nil) return [] unless name == "_acme-challenge.#{identifier}" [ FakeDNSRecord.new( digest_value("#{challenge.token}.#{challenge.thumbprint}") ) ] end |