summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorChris Doherty <cdoherty@chef.io>2015-11-10 13:37:18 -0800
committerChris Doherty <cdoherty@chef.io>2015-11-10 15:11:09 -0800
commit10d474450b4fc768c640edb139c9a11e043aea7d (patch)
treee3770c6fa340d7d9b1b8b675963d61e0da37f9c5 /spec
parente1981f2a49f7902da96e43e732f9593570c23dcd (diff)
downloadchef-zero-10d474450b4fc768c640edb139c9a11e043aea7d.tar.gz
Convert ChefFS data to use DefaultFacade.
Diffstat (limited to 'spec')
-rw-r--r--spec/run_oc_pedant.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/run_oc_pedant.rb b/spec/run_oc_pedant.rb
index b5cecec..55f6ec9 100644
--- a/spec/run_oc_pedant.rb
+++ b/spec/run_oc_pedant.rb
@@ -26,8 +26,17 @@ def start_server(chef_repo_path)
Chef::Config.chef_repo_path = chef_repo_path
Chef::Config.versioned_cookbooks = true
chef_fs = Chef::ChefFS::Config.new.local_fs
+
data_store = Chef::ChefFS::ChefFSDataStore.new(chef_fs)
- server = ChefZero::Server.new(:port => 8889, :single_org => false, :data_store => data_store)#, :log_level => :debug)
+ data_store = ChefZero::DataStore::V1ToV2Adapter.new(data_store, 'pedant-testorg')
+ data_store = ChefZero::DataStore::DefaultFacade.new(data_store, 'pedant-testorg', false)
+
+ server = ChefZero::Server.new(
+ port: 8889,
+ data_store: data_store,
+ single_org: false,
+ #log_level: :debug
+ )
server.start_background
server
end