diff options
author | Thom May <thom@chef.io> | 2017-03-08 16:58:50 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2017-03-08 16:58:50 +0000 |
commit | d1289c90ed87b75480e2acb2b8165548ccf586f4 (patch) | |
tree | 57e207ad142b09b9a0497cf35d4bf62e8d80aa08 /spec | |
parent | 141af228bd48f5551bb9b1ed595e21b1f8c34012 (diff) | |
download | chef-zero-d1289c90ed87b75480e2acb2b8165548ccf586f4.tar.gz |
Ensure that we create the keys pedant needstm/fix_pedant_tests
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/run_oc_pedant.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |