summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gemfile1
-rw-r--r--spec/run_oc_pedant.rb5
2 files changed, 4 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index 0d48499..06774fb 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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"