summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorChris Doherty <randomcamel@users.noreply.github.com>2015-11-10 15:09:29 -0800
committerChris Doherty <randomcamel@users.noreply.github.com>2015-11-10 15:09:29 -0800
commit5205839b26a804ce0016c5935d11a4699d90cbda (patch)
tree04b76d9122c29952c26453104d9280e7619e2bbb /spec
parent8e016a339f02f8a71ba0d4a04d3ba163c318bec7 (diff)
parent8297ed53a6c00421eddba8fa976a9ec3ceb916f3 (diff)
downloadchef-zero-5205839b26a804ce0016c5935d11a4699d90cbda.tar.gz
Merge pull request #172 from chef/cd/policyfile-support
Implement the /policies and /policy_groups API routes
Diffstat (limited to 'spec')
-rw-r--r--spec/run_oc_pedant.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb
index 74be329..b5cecec 100644
--- a/spec/run_oc_pedant.rb
+++ b/spec/run_oc_pedant.rb
@@ -58,12 +58,19 @@ begin
require 'pedant'
require 'pedant/organization'
- #Pedant::Config.rerun = true
+ # Pedant::Config.rerun = true
Pedant.config.suite = 'api'
- Pedant.config.internal_server = 'http://localhost:8889'
+ Pedant.config.internal_server = Pedant::Config.search_server = 'http://localhost:8889'
+
+ # see dummy_endpoint.rb.
+ Pedant.config.search_commit_url = "/dummy"
+ Pedant::Config.search_url_fmt = "/dummy?fq=+X_CHEF_type_CHEF_X:%{type}&q=%{query}&wt=json"
+
Pedant.config[:config_file] = 'spec/support/oc_pedant.rb'
Pedant.config[:server_api_version] = 0
+
+ # "the goal is that only authorization, authentication and validation tests are turned off" - @jkeiser
Pedant.setup([
'--skip-knife',
'--skip-keys',
@@ -78,7 +85,6 @@ begin
'--skip-headers',
# Chef 12 features not yet 100% supported by Chef Zero
- '--skip-policies',
'--skip-cookbook-artifacts',
'--skip-containers',
'--skip-api-v1'