From caee2b171a7e08f0ba8688db1c65441f89348a7f Mon Sep 17 00:00:00 2001 From: canihavethisone Date: Sat, 27 Jul 2024 20:10:57 +1000 Subject: [PATCH] Updated dependencies --- metadata.json | 2 +- spec/acceptance/cis_security_hardening_windows_spec.rb | 3 ++- spec/acceptance/shared_examples/windows_tests.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/metadata.json b/metadata.json index 57ee2b0..d587bd5 100644 --- a/metadata.json +++ b/metadata.json @@ -37,7 +37,7 @@ }, { "name": "webalex-windows_firewall", - "version_requirement": ">= 1.4.2 < 2.0.0" + "version_requirement": ">= 1.5.0 < 2.0.0" } ], "operatingsystem_support": [ diff --git a/spec/acceptance/cis_security_hardening_windows_spec.rb b/spec/acceptance/cis_security_hardening_windows_spec.rb index 1ce95fe..c84bf9e 100644 --- a/spec/acceptance/cis_security_hardening_windows_spec.rb +++ b/spec/acceptance/cis_security_hardening_windows_spec.rb @@ -4,6 +4,7 @@ ## https://relishapp.com/rspec/rspec-core/v/2-14/docs/example-groups/basic-structure-describe-it require 'spec_helper_acceptance' +require 'parallel' env_path = "/etc/puppetlabs/code/environments/#{ENVIRONMENT}" # agent = only_host_with_role(hosts, 'agent') @@ -48,7 +49,7 @@ agents.each do |agent| # The first test after in_parallel fails, so this overcomes that next unless agents.count > 1 - on(agent, 'This is an expected warning as connection is re-established after reboot', expect_connection_failure: true) # similar alternative is 'reset_connection: true' + on(agent, 'This is an expected warning as connection is re-established after reboot', reset_connection: true) # similar alternative is 'expect_connection_failure: true' end end diff --git a/spec/acceptance/shared_examples/windows_tests.rb b/spec/acceptance/shared_examples/windows_tests.rb index 6314f07..bd9c942 100644 --- a/spec/acceptance/shared_examples/windows_tests.rb +++ b/spec/acceptance/shared_examples/windows_tests.rb @@ -103,4 +103,4 @@ describe windows_registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System') do it { is_expected.not_to have_property_value('NoConnectedUser', :type_dword, '3') } end -end +end \ No newline at end of file