summaryrefslogtreecommitdiff
path: root/spec/run_oc_pedant.rb
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@chef.io>2015-11-04 16:37:41 -0800
committerChris Doherty <cdoherty@chef.io>2015-11-10 14:50:22 -0800
commit8297ed53a6c00421eddba8fa976a9ec3ceb916f3 (patch)
treea9e363472f2cafde672bb5c2fc68e310b9e9248c /spec/run_oc_pedant.rb
parent3627567298769fcc3e6d9904c0f52a810e5a26b4 (diff)
downloadchef-zero-8297ed53a6c00421eddba8fa976a9ec3ceb916f3.tar.gz
Add a dummy GET that returns meaningful values, due to pedant making Solr-related calls.
Diffstat (limited to 'spec/run_oc_pedant.rb')
-rw-r--r--spec/run_oc_pedant.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb
index a11448c..df1eba1 100644
--- a/spec/run_oc_pedant.rb
+++ b/spec/run_oc_pedant.rb
@@ -29,7 +29,12 @@ begin
# 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