Commit c26d222d authored by Christopher Huhn's avatar Christopher Huhn 🥚

Start chef-zero from within serverspec

parent f4ff76f7
......@@ -21,11 +21,16 @@
#
require 'spec_helper'
require 'chef_zero/server'
context 'chef-client config' do
before(:all) do
# start chef-zero
`/opt/chef/embedded/bin/chef-zero --daemon --port 4000`
server = ChefZero::Server.new(port: 4000)
server.start_background
# create dummy key:
`openssl genrsa -out /etc/chef/client.pem`
end
describe command('chef-client') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment