diff options
author | Jaymala Sinha <jsinha@chef.io> | 2019-09-27 15:03:34 -0400 |
---|---|---|
committer | Jaymala Sinha <jsinha@chef.io> | 2019-09-27 15:03:34 -0400 |
commit | 9c3fe7b43ac95e0392bf62ef5930b117c7903ae1 (patch) | |
tree | 9f87f887e6dfbcc8da5180ce972c596131989ddc /spec | |
parent | 2a98c165d1bd7dd5959c6e7b8d7d4699f6cb97c9 (diff) | |
download | chef-9c3fe7b43ac95e0392bf62ef5930b117c7903ae1.tar.gz |
Fix Windows Integration and Functional tests for BK
* Use default windows 2019 image
* Skip 8dot3name tests as default disabled on 2019
* Use windows privileged executor for functional tests
* Use windows docker image for chocolatey tests
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/knife/chef_repo_path_spec.rb | 6 | ||||
-rw-r--r-- | spec/spec_helper.rb | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/integration/knife/chef_repo_path_spec.rb b/spec/integration/knife/chef_repo_path_spec.rb index 919741f930..7d98b7ad4e 100644 --- a/spec/integration/knife/chef_repo_path_spec.rb +++ b/spec/integration/knife/chef_repo_path_spec.rb @@ -79,7 +79,8 @@ describe "chef_repo_path tests", :workstation do EOM end - it "knife list --local -Rfp --chef-repo-path chef_r~1 / grabs chef_repo2 stuff", :windows_only do + # "Skipping for BK... As Windows 2019 has 8dot3name disabled by default" + it "knife list --local -Rfp --chef-repo-path chef_r~1 / grabs chef_repo2 stuff", :windows_only, :skip_buildkite do Chef::Config.delete(:chef_repo_path) knife("list --local -Rfp --chef-repo-path #{path_to("chef_r~1")} /").should_succeed <<~EOM /clients/ @@ -101,7 +102,8 @@ describe "chef_repo_path tests", :workstation do EOM end - it "knife list --local -Rfp --chef-repo-path chef_r~1 / grabs chef_repo2 stuff", :windows_only do + # "Skipping for BK... As Windows 2019 has 8dot3name disabled by default" + it "knife list --local -Rfp --chef-repo-path chef_r~1 / grabs chef_repo2 stuff", :windows_only, :skip_buildkite do Chef::Config.delete(:chef_repo_path) knife("list -z -Rfp --chef-repo-path #{path_to("chef_r~1")} /").should_succeed <<~EOM /acls/ diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e19a06f3d7..27cf301d67 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -141,6 +141,8 @@ RSpec.configure do |config| config.filter_run_excluding skip_appveyor: true if ENV["APPVEYOR"] config.filter_run_excluding appveyor_only: true unless ENV["APPVEYOR"] + config.filter_run_excluding skip_buildkite: true if ENV["BUILDKITE"] + config.filter_run_excluding windows_only: true unless windows? config.filter_run_excluding not_supported_on_windows: true if windows? config.filter_run_excluding not_supported_on_macos: true if mac_osx? |