summaryrefslogtreecommitdiff
path: root/kitchen-tests/test
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-10-12 20:16:24 -0700
committerTim Smith <tsmith84@gmail.com>2020-10-12 20:27:54 -0700
commitfbde8dc0c3da8ae96e1cda3d36338779dff65ff1 (patch)
tree69fd9caae9d2a2a3fcf396d28a4d7bd51f466002 /kitchen-tests/test
parente1361a5fcfd85871567723587897f11574ffa4cf (diff)
downloadchef-fbde8dc0c3da8ae96e1cda3d36338779dff65ff1.tar.gz
Add InSpec test
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests/test')
-rw-r--r--kitchen-tests/test/integration/end-to-end/default_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/kitchen-tests/test/integration/end-to-end/default_spec.rb b/kitchen-tests/test/integration/end-to-end/default_spec.rb
new file mode 100644
index 0000000000..a3f60273ad
--- /dev/null
+++ b/kitchen-tests/test/integration/end-to-end/default_spec.rb
@@ -0,0 +1,10 @@
+client_rb = if os.windows?
+ 'C:\chef\client.rb'
+ else
+ "/etc/chef/client.rb"
+ end
+
+describe file(client_rb) do
+ its("content") { should match(%r{chef_server_url = "https://localhost"}) }
+ its("content") { should match(/chef_license = "accept"/) }
+end