diff options
author | nimisha <nimisha.sharad@msystechnologies.com> | 2017-06-05 16:21:54 +0530 |
---|---|---|
committer | nimisha <nimisha.sharad@msystechnologies.com> | 2017-06-05 18:38:44 +0530 |
commit | c496d97011d6833db069178b0bcc8d28c3da43a6 (patch) | |
tree | fbe4722b23cb244d0baf49b537e9574ee86e7f3e | |
parent | 9ae037c7f5c067c48970832ccd3613da0d145b6f (diff) | |
download | chef-btm/test-assign-token.tar.gz |
Checking for SeAssignPrimaryTokenPrivilege while running scheduled taskbtm/test-assign-token
Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
-rw-r--r-- | spec/functional/resource/windows_task_spec.rb | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/functional/resource/windows_task_spec.rb b/spec/functional/resource/windows_task_spec.rb index fbb5e4dd12..004dc12549 100644 --- a/spec/functional/resource/windows_task_spec.rb +++ b/spec/functional/resource/windows_task_spec.rb @@ -388,7 +388,7 @@ describe Chef::Resource::WindowsTask, :windows_only do end end - describe "action :end", :volatile do + describe "action :end", :requires_assign_token do after { delete_task } subject do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index edb5491100..70b47bd52f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -159,6 +159,9 @@ RSpec.configure do |config| # testers. If we ever fix it we should restore it. # config.filter_run_excluding :windows_service_requires_assign_token => true if !STDOUT.isatty && !windows_user_right?("SeAssignPrimaryTokenPrivilege") config.filter_run_excluding :windows_service_requires_assign_token => true + # This filter does the same thing that :windows_service_requires_assign_token was supposed to do + # Need to check for SeAssignPrimaryTokenPrivilege since it's required for running a scheduled task + config.filter_run_excluding :requires_assign_token => true if !windows_user_right?("SeAssignPrimaryTokenPrivilege") config.filter_run_excluding :solaris_only => true unless solaris? config.filter_run_excluding :system_windows_service_gem_only => true unless system_windows_service_gem? config.filter_run_excluding :unix_only => true unless unix? |