diff options
author | Thom May <thom@may.lt> | 2017-03-08 17:07:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 17:07:03 +0000 |
commit | 4cf6a67c838c0e9dcff6ffb97c78afc027168de7 (patch) | |
tree | 57e207ad142b09b9a0497cf35d4bf62e8d80aa08 | |
parent | 141af228bd48f5551bb9b1ed595e21b1f8c34012 (diff) | |
parent | d1289c90ed87b75480e2acb2b8165548ccf586f4 (diff) | |
download | chef-zero-4cf6a67c838c0e9dcff6ffb97c78afc027168de7.tar.gz |
Merge pull request #255 from chef/tm/fix_pedant_tests
Ensure that we create the keys pedant needs
-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 |