diff options
author | rishichawda <rishichawda@users.noreply.github.com> | 2021-09-02 23:40:14 +0530 |
---|---|---|
committer | rishichawda <rishichawda@users.noreply.github.com> | 2021-11-18 14:24:24 +0530 |
commit | 46b5ef560d4866abc20eb7686f15bed30fafa7fb (patch) | |
tree | 73bcc9d67497d6ccb9d81c4ba61eac8d700dd499 /kitchen-tests | |
parent | 19d72266f1a6cde23930e1dcaf9872f8017a203d (diff) | |
download | chef-46b5ef560d4866abc20eb7686f15bed30fafa7fb.tar.gz |
windows_feature_powershell: add e2e test
Signed-off-by: rishichawda <rishichawda@users.noreply.github.com>
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/Gemfile | 1 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/windows.rb | 6 | ||||
-rw-r--r-- | kitchen-tests/kitchen.vagrant.yml | 24 |
3 files changed, 30 insertions, 1 deletions
diff --git a/kitchen-tests/Gemfile b/kitchen-tests/Gemfile index af870fb182..202bcf19d2 100644 --- a/kitchen-tests/Gemfile +++ b/kitchen-tests/Gemfile @@ -6,6 +6,7 @@ gem "knife", path: "../knife" gem "ohai", git: "https://github.com/chef/ohai.git", branch: "main" # avoids failures when we bump chef major gem "berkshelf", git: "https://github.com/berkshelf/berkshelf.git", branch: "main" gem "kitchen-dokken", ">= 2.0" +gem "kitchen-vagrant", ">= 1.0" gem "kitchen-inspec", git: "https://github.com/chef/kitchen-inspec.git", branch: "main" gem "inspec" gem "test-kitchen", git: "https://github.com/test-kitchen/test-kitchen.git", branch: "master" diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb index c6ea3a9928..454eb04aaf 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb @@ -191,4 +191,8 @@ windows_update_settings "Disable Windows Update" do disable_automatic_updates true end -include_recipe "::_chef_gem"
\ No newline at end of file +windows_feature_powershell "RSAT-AD-PowerShell" do + action :install +end + +include_recipe "::_chef_gem" diff --git a/kitchen-tests/kitchen.vagrant.yml b/kitchen-tests/kitchen.vagrant.yml new file mode 100644 index 0000000000..dc2483057e --- /dev/null +++ b/kitchen-tests/kitchen.vagrant.yml @@ -0,0 +1,24 @@ +driver: + name: vagrant + +transport: + name: winrm + elevated: true + +provisioner: + name: chef_zero + product_name: chef + chef_license: "accept-no-persist" + +verifier: + name: inspec + +platforms: + - name: windows-2012r2 + driver: + box: tas50/windows_2012r2 + +suites: + - name: end-to-end + run_list: + - recipe[end_to_end::windows] |