summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-10-22 12:15:33 -0700
committerTim Smith <tsmith84@gmail.com>2021-10-22 12:15:33 -0700
commitc8c5b3b41e42c43117256798094f95d3412029bb (patch)
tree46cef0c9c6bae1bbb0b914a0492408436af4be34 /kitchen-tests
parent19c40fe13fe61ea7e5aff0fa17e8627100ef075c (diff)
downloadchef-c8c5b3b41e42c43117256798094f95d3412029bb.tar.gz
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_openssl.rb2
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb2
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/windows.rb2
-rw-r--r--kitchen-tests/test/integration/end-to-end/habitat_win_config/default_spec.rb4
-rw-r--r--kitchen-tests/test/integration/end-to-end/habitat_win_package/default_spec.rb8
-rw-r--r--kitchen-tests/test/integration/end-to-end/habitat_win_service/default_spec.rb6
-rw-r--r--kitchen-tests/test/integration/end-to-end/habitat_win_sup/default_spec.rb2
-rw-r--r--kitchen-tests/test/integration/end-to-end/habitat_win_sup_toml_config/default_spec.rb2
-rw-r--r--kitchen-tests/test/integration/end-to-end/habitat_win_user_toml/default_spec.rb2
9 files changed, 15 insertions, 15 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_openssl.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_openssl.rb
index dba01e368f..62e11d6854 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/_openssl.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_openssl.rb
@@ -1,6 +1,6 @@
# leaving this for the future where we test windows too
base = if platform_family?("windows")
- 'C:\ssl_test'
+ "C:\\ssl_test"
else
"/etc/ssl_test"
end
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb
index 90a0403ae3..2f6885a3df 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_windows_defender.rb
@@ -20,6 +20,6 @@ end
windows_defender_exclusion "Exclude PNG files" do
extensions "png"
- process_paths 'c:\\windows\\system32'
+ process_paths "c:\\windows\\system32"
action :add
end
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
index e6ec98ffde..c6ea3a9928 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
@@ -152,7 +152,7 @@ user "phil" do
action :remove
end
-directory 'C:\mordor' do
+directory "C:\\mordor" do
rights :full_control, "everyone"
end
diff --git a/kitchen-tests/test/integration/end-to-end/habitat_win_config/default_spec.rb b/kitchen-tests/test/integration/end-to-end/habitat_win_config/default_spec.rb
index c060050091..4439ebed8d 100644
--- a/kitchen-tests/test/integration/end-to-end/habitat_win_config/default_spec.rb
+++ b/kitchen-tests/test/integration/end-to-end/habitat_win_config/default_spec.rb
@@ -1,4 +1,4 @@
-describe file('C:\habitat\hab.exe') do
+describe file("C:\\habitat\\hab.exe") do
it { should exist }
end
@@ -7,7 +7,7 @@ end
# TODO: Inspec session seems to not have the updated windows system path when run with 'kitchen test'
# Works fine if you run a converge and then a verify as two separate commands
# For now, hitting hab.exe directly to avoid test failure
-describe command('C:\habitat\hab.exe -V') do
+describe command("C:\\habitat\\hab.exe -V") do
its("stdout") { should match(%r{^hab.*/}) }
its("exit_status") { should eq 0 }
end
diff --git a/kitchen-tests/test/integration/end-to-end/habitat_win_package/default_spec.rb b/kitchen-tests/test/integration/end-to-end/habitat_win_package/default_spec.rb
index da89ade930..734fb44c29 100644
--- a/kitchen-tests/test/integration/end-to-end/habitat_win_package/default_spec.rb
+++ b/kitchen-tests/test/integration/end-to-end/habitat_win_package/default_spec.rb
@@ -1,4 +1,4 @@
-describe file('C:\habitat\hab.exe') do
+describe file("C:\\habitat\\hab.exe") do
it { should exist }
end
@@ -7,17 +7,17 @@ end
# TODO: Inspec session seems to not have the updated windows system path when run with 'kitchen test'
# Works fine if you run a converge and then a verify as two separate commands
# For now, hitting hab.exe directly to avoid test failure
-describe command('C:\habitat\hab.exe -V') do
+describe command("C:\\habitat\\hab.exe -V") do
its("stdout") { should match(%r{^hab.*/}) }
its("exit_status") { should eq 0 }
end
-describe directory('C:\hab\pkgs\skylerto\splunkforwarder') do
+describe directory("C:\\hab\\pkgs\\skylerto\\splunkforwarder") do
it { should exist }
end
# TODO: Same issue as above
-describe command('C:\habitat\hab.exe pkg path skylerto/splunkforwarder') do
+describe command("C:\\habitat\\hab.exe pkg path skylerto/splunkforwarder") do
its("exit_status") { should eq 0 }
its("stdout") { should match(/C:\\hab\\pkgs\\skylerto\\splunkforwarder/) }
end
diff --git a/kitchen-tests/test/integration/end-to-end/habitat_win_service/default_spec.rb b/kitchen-tests/test/integration/end-to-end/habitat_win_service/default_spec.rb
index f66e5e79ac..453f8f546e 100644
--- a/kitchen-tests/test/integration/end-to-end/habitat_win_service/default_spec.rb
+++ b/kitchen-tests/test/integration/end-to-end/habitat_win_service/default_spec.rb
@@ -1,4 +1,4 @@
-describe directory('C:\hab\pkgs\skylerto\splunkforwarder') do
+describe directory("C:\\hab\\pkgs\\skylerto\\splunkforwarder") do
it { should exist }
end
@@ -6,7 +6,7 @@ describe directory('C:\hab\pkgs\ncr_devops_platform\sensu-agent-win') do
it { should exist }
end
-describe file('C:\hab\sup\default\specs\splunkforwarder.spec') do
+describe file("C:\\hab\\sup\\default\\specs\\splunkforwarder.spec") do
it { should_not exist }
end
@@ -25,7 +25,7 @@ describe json(command: servicecheck) do
its(%w{cfg backend-urls}) { should eq ["ws://127.0.0.1:8081"] }
its(["channel"]) { should eq "stable" }
its(["desired_state"]) { should eq "Down" }
- its(["spec_file"]) { should eq 'C:\\hab/sup\\default\\specs\\sensu-agent-win.spec' }
+ its(["spec_file"]) { should eq "C:\\hab/sup\\default\\specs\\sensu-agent-win.spec" }
its(["topology"]) { should eq "standalone" }
its(["update_strategy"]) { should eq "rolling" }
end
diff --git a/kitchen-tests/test/integration/end-to-end/habitat_win_sup/default_spec.rb b/kitchen-tests/test/integration/end-to-end/habitat_win_sup/default_spec.rb
index d1aa757cfc..d9b0ea7f89 100644
--- a/kitchen-tests/test/integration/end-to-end/habitat_win_sup/default_spec.rb
+++ b/kitchen-tests/test/integration/end-to-end/habitat_win_sup/default_spec.rb
@@ -1,4 +1,4 @@
-describe command('C:\habitat\hab.exe sup -h') do
+describe command("C:\\habitat\\hab.exe sup -h") do
its(:stdout) { should match(/The Habitat Supervisor/) }
end
diff --git a/kitchen-tests/test/integration/end-to-end/habitat_win_sup_toml_config/default_spec.rb b/kitchen-tests/test/integration/end-to-end/habitat_win_sup_toml_config/default_spec.rb
index 70a68ccf06..b239eadf63 100644
--- a/kitchen-tests/test/integration/end-to-end/habitat_win_sup_toml_config/default_spec.rb
+++ b/kitchen-tests/test/integration/end-to-end/habitat_win_sup_toml_config/default_spec.rb
@@ -1,4 +1,4 @@
-describe command('C:\habitat\hab.exe sup -h') do
+describe command("C:\\habitat\\hab.exe sup -h") do
its(:stdout) { should match(/The Habitat Supervisor/) }
end
diff --git a/kitchen-tests/test/integration/end-to-end/habitat_win_user_toml/default_spec.rb b/kitchen-tests/test/integration/end-to-end/habitat_win_user_toml/default_spec.rb
index 35f3fc20b7..856a9c805e 100644
--- a/kitchen-tests/test/integration/end-to-end/habitat_win_user_toml/default_spec.rb
+++ b/kitchen-tests/test/integration/end-to-end/habitat_win_user_toml/default_spec.rb
@@ -1,4 +1,4 @@
-describe file('C:\habitat\hab.exe') do
+describe file("C:\\habitat\\hab.exe") do
it { should exist }
end