spec/vault_provision_spec.rb in vault-provision-0.1.0 vs spec/vault_provision_spec.rb in vault-provision-0.1.1

- old
+ new

@@ -22,11 +22,11 @@ it "has a pki-root mount" do expect(client.sys.mounts.keys).to include :'pki-root' end it "has a CA" do - expect(client.get('v1/pki-root/ca/pem')).to be + expect(client.get('v1/pki-root/ca/pem')).to include "BEGIN CERTIFICATE" end it "has pki-root config urls" do expect(client.get('v1/pki-root/config/urls')[:data][:crl_distribution_points].to_s).to include 'https://cdn.example.com' end @@ -34,10 +34,10 @@ it "has pki-intermediate config urls" do expect(client.get('v1/pki-intermediate/config/urls')[:data][:issuing_certificates].to_s).to include 'https://cdn.example.com' end it "has pki-intermediate ca" do - expect(client.get('v1/pki-intermediate/ca/pem')).to be + expect(client.get('v1/pki-intermediate/ca/pem')).to include "BEGIN CERTIFICATE" end it "has a dvcert role for intermediate" do expect(client.get('v1/pki-intermediate/roles/dvcert')[:data][:allowed_domains]).to include "vault.example.com" expect(client.get('v1/pki-intermediate/roles/dvcert')[:data][:allow_any_name]).to be_falsey