Sha256: c8d6e14b4a24b22629d29e151d92c6b04041da837a1ad0567e9941313c08abde

Contents?: true

Size: 559 Bytes

Versions: 13

Compression:

Stored size: 559 Bytes

Contents

require 'certmeister/in_memory_store'
require 'certmeister/policy/noop'

module CertmeisterConfigHelper

  def self.valid_config_options
    ca_cert = File.read('fixtures/ca.crt')
    ca_key = File.read('fixtures/ca.key')
    { ca_cert: ca_cert,
      ca_key: ca_key,
      store: Certmeister::InMemoryStore.new,
      sign_policy: Certmeister::Policy::Noop.new,
      fetch_policy: Certmeister::Policy::Noop.new,
      remove_policy: Certmeister::Policy::Noop.new }
  end

  def self.valid_config
    Certmeister::Config.new(valid_config_options)
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
certmeister-1.0.1 spec/helpers/certmeister_config_helper.rb
certmeister-1.0.0 spec/helpers/certmeister_config_helper.rb
certmeister-0.4.1 spec/helpers/certmeister_config_helper.rb
certmeister-0.4.0 spec/helpers/certmeister_config_helper.rb
certmeister-0.3.2 spec/helpers/certmeister_config_helper.rb
certmeister-0.3.1 spec/helpers/certmeister_config_helper.rb
certmeister-0.3.0 spec/helpers/certmeister_config_helper.rb
certmeister-0.2.3 spec/helpers/certmeister_config_helper.rb
certmeister-0.2.1 spec/helpers/certmeister_config_helper.rb
certmeister-0.2.0 spec/helpers/certmeister_config_helper.rb
certmeister-0.1.0 spec/helpers/certmeister_config_helper.rb
certmeister-0.0.2 spec/helpers/certmeister_config_helper.rb
certmeister-0.0.1 spec/helpers/certmeister_config_helper.rb