diff options
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | spec/run_oc_pedant.rb | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -5,7 +5,6 @@ gemspec group :pedant do gem "oc-chef-pedant", :git => "https://github.com/chef/chef-server.git" - gem "veil", :git => "https://github.com/chef/chef_secrets.git" end group :changelog do diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb index 70c5806..c68681c 100644 --- a/spec/run_oc_pedant.rb +++ b/spec/run_oc_pedant.rb @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +require "json" require "bundler" require "bundler/setup" @@ -107,7 +108,9 @@ begin start_chef_server end - ENV["SECRETS_FILE"] = "spec/support/secrets.json" + test_secrets = JSON.parse(File.read("spec/support/secrets.json")) + ENV["SUPERUSER_KEY"] = test_secrets["chef-server"]["superuser_key"] + ENV["WEBUI_KEY"] = test_secrets["chef-server"]["webui_key"] require "rspec/core" require "pedant" |