summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-04-17 09:38:17 -0700
committerGitHub <noreply@github.com>2019-04-17 09:38:17 -0700
commit06fef0c54390771fe52a08115bcc6a8ee972f16d (patch)
tree37a41f58d573d57b74b312b8620819fb96a35f15
parent7ffd946d37ac5a69ae9ef204afd210e834d8fdc8 (diff)
parentdc0b3476b6e9d3c2aa869ef757c6fd82d3dde16f (diff)
downloadchef-06fef0c54390771fe52a08115bcc6a8ee972f16d.tar.gz
Merge pull request #8383 from chef/btm/remove-CBS-reg-func-test
Remove a functional test for the reboot_pending DSL
-rw-r--r--spec/functional/dsl/reboot_pending_spec.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/functional/dsl/reboot_pending_spec.rb b/spec/functional/dsl/reboot_pending_spec.rb
index ff7fd574b1..899106b4b8 100644
--- a/spec/functional/dsl/reboot_pending_spec.rb
+++ b/spec/functional/dsl/reboot_pending_spec.rb
@@ -59,25 +59,6 @@ describe Chef::DSL::RebootPending, :windows_only do
end
end
- describe 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootRequired' do
- let(:reg_key) { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootRequired' }
- let(:original_set) { registry.key_exists?(reg_key) }
-
- it "returns true if the registry key exists" do
- skip "found existing registry key" if original_set
- pending "Permissions are limited to 'TrustedInstaller' by default"
- registry.create_key(reg_key, false)
-
- expect(recipe.reboot_pending?).to be_truthy
- end
-
- after do
- unless original_set
- registry.delete_key(reg_key, false)
- end
- end
- end
-
describe 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired' do
let(:reg_key) { 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired' }
let(:original_set) { registry.key_exists?(reg_key) }