Sha256: 83e35e1d9ca81bf923d23d8a22df7ad3522ab6b65188d1a3dcaba67efaf9e32a
Contents?: true
Size: 702 Bytes
Versions: 8
Compression:
Stored size: 702 Bytes
Contents
require 'conjur/authn' require 'conjur/config' describe Conjur::Config do after { Conjur::Config.clear } describe "#load" do it "resolves the cert_file" do Conjur::Config.load([ File.expand_path('conjurrc', File.dirname(__FILE__)) ]) Conjur::Config[:cert_file].should == File.expand_path('conjur-ci.pem', File.dirname(__FILE__)) end end describe "#apply" do let(:cert_file) { "/path/to/cert.pem" } it "trusts the cert_file" do Conjur::Config.class_variable_set("@@attributes", { 'cert_file' => cert_file }) OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE.should_receive(:add_file).with cert_file Conjur::Config.apply end end end
Version data entries
8 entries across 8 versions & 1 rubygems