From d1289c90ed87b75480e2acb2b8165548ccf586f4 Mon Sep 17 00:00:00 2001 From: Thom May Date: Wed, 8 Mar 2017 16:58:50 +0000 Subject: Ensure that we create the keys pedant needs Signed-off-by: Thom May --- spec/run_oc_pedant.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb index c68681c..c4325ba 100644 --- a/spec/run_oc_pedant.rb +++ b/spec/run_oc_pedant.rb @@ -6,6 +6,8 @@ require "bundler/setup" require "chef_zero/server" require "rspec/core" +require "openssl" + # This file runs oc-chef-pedant specs and is invoked by `rake pedant` # and other Rake tasks. Run `rake -T` to list tasks. # @@ -194,6 +196,8 @@ begin default_skips + chef_fs_skips + %w{ --skip-knife } end + ENV["SUPERUSER_KEY"] = OpenSSL::PKey::RSA.new(2048).to_pem + ENV["WEBUI_KEY"] = OpenSSL::PKey::RSA.new(2048).to_pem Pedant.setup(pedant_args + pedant_args_from_env) rspec_args = Pedant.config.rspec_args + rspec_args_from_env -- cgit v1.2.1