diff options
Diffstat (limited to 'spec/run_oc_pedant.rb')
-rw-r--r-- | spec/run_oc_pedant.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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" |