From fbde8dc0c3da8ae96e1cda3d36338779dff65ff1 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 12 Oct 2020 20:16:24 -0700 Subject: Add InSpec test Signed-off-by: Tim Smith --- kitchen-tests/test/integration/end-to-end/default_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 kitchen-tests/test/integration/end-to-end/default_spec.rb (limited to 'kitchen-tests') 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 -- cgit v1.2.1