summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2019-04-17 11:46:51 -0400
committerBryan McLellan <btm@loftninjas.org>2019-04-17 11:46:51 -0400
commitdc0b3476b6e9d3c2aa869ef757c6fd82d3dde16f (patch)
treed9015004c451aca7d51a806dfe4e22f31dd1b3f4
parent72e89d2b6d71e0eca6102c241f4143cc6cbe5134 (diff)
downloadchef-dc0b3476b6e9d3c2aa869ef757c6fd82d3dde16f.tar.gz
Remove a functional test for the reboot_pending DSLbtm/remove-CBS-reg-func-test
The 'Component Based Servicing' registry key is limited by permissions to Trusted Installer, so we can't easily create/delete it. We do cover this key in the unit tests, and the other functional tests cover the code paths already, so we can remove this rather than leaving it 'pending' forever. Closes #3085 Signed-off-by: Bryan McLellan <btm@loftninjas.org>
-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) }