Class: Bullion::RSpec::ChallengeClients::HTTP

Inherits:
ChallengeClients::HTTP show all
Defined in:
lib/bullion/rspec/challenge_clients/http.rb

Overview

A test HTTP challenge client resolver for RSpec

Constant Summary

Constants inherited from ChallengeClient

ChallengeClient::ChallengeClientMetric

Instance Attribute Summary

Attributes inherited from ChallengeClient

#challenge

Instance Method Summary collapse

Methods inherited from ChallengeClients::HTTP

acme_type, #challenge_url, #perform, #type

Methods inherited from ChallengeClient

#attempt, #identifier, #initialize

Constructor Details

This class inherits a constructor from Bullion::ChallengeClient

Instance Method Details

#retrieve_body(url) ⇒ Object



8
9
10
11
12
# File 'lib/bullion/rspec/challenge_clients/http.rb', line 8

def retrieve_body(url)
  return "" unless url == "http://#{identifier}/.well-known/acme-challenge/#{challenge.token}"

  "#{challenge.token}.#{challenge.thumbprint}"
end