summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKartik Null Cating-Subramanian <ksubramanian@chef.io>2016-07-21 16:12:31 -0400
committerGitHub <noreply@github.com>2016-07-21 16:12:31 -0400
commit390da4a8289812c444b94bbcd90d89a5f8867773 (patch)
treea3704a46cb75d7b9569b5dddfe91cf2e5ad0f401
parente34406e2e0538986366c3764ea41d7fe1f4c5532 (diff)
parent123280f4f09bb659d9763640fd691618eb6779d9 (diff)
downloadchef-390da4a8289812c444b94bbcd90d89a5f8867773.tar.gz
Merge pull request #5124 from chef/ksubrama/acceptance
Re-enable acceptance tests with new fixes
-rw-r--r--acceptance/Gemfile.lock63
-rw-r--r--acceptance/basics/.kitchen.yml3
-rw-r--r--acceptance/fips/.kitchen.yml6
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb30
-rw-r--r--acceptance/top-cookbooks/.kitchen.git.yml6
-rw-r--r--acceptance/trivial/.kitchen.yml3
-rw-r--r--acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb1
-rw-r--r--acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb1
-rw-r--r--acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb1
-rw-r--r--acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/.gitignore (renamed from acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore)0
-rw-r--r--acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/metadata.rb (renamed from acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb)0
-rw-r--r--acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/destroy.rb1
-rw-r--r--acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/provision.rb1
-rw-r--r--acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/verify.rb1
-rw-r--r--acceptance/windows-service_disabled/.kitchen.yml (renamed from acceptance/windows-service/.kitchen.yml)0
-rw-r--r--acceptance/windows-service_disabled/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb (renamed from acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb)0
-rwxr-xr-xci/verify-chef.sh4
17 files changed, 62 insertions, 59 deletions
diff --git a/acceptance/Gemfile.lock b/acceptance/Gemfile.lock
index 6598e20c17..899644c3b8 100644
--- a/acceptance/Gemfile.lock
+++ b/acceptance/Gemfile.lock
@@ -11,12 +11,12 @@ GEM
specs:
addressable (2.4.0)
artifactory (2.3.3)
- aws-sdk (2.3.18)
- aws-sdk-resources (= 2.3.18)
- aws-sdk-core (2.3.18)
+ aws-sdk (2.4.0)
+ aws-sdk-resources (= 2.4.0)
+ aws-sdk-core (2.4.0)
jmespath (~> 1.0)
- aws-sdk-resources (2.3.18)
- aws-sdk-core (= 2.3.18)
+ aws-sdk-resources (2.4.0)
+ aws-sdk-core (= 2.4.0)
berkshelf (4.3.5)
addressable (~> 2.3, >= 2.3.4)
berkshelf-api-client (~> 2.0, >= 2.0.2)
@@ -53,21 +53,21 @@ GEM
celluloid-io (0.16.2)
celluloid (>= 0.16.0)
nio4r (>= 1.1.0)
- chef-config (12.11.18)
+ chef-config (12.12.15)
fuzzyurl (~> 0.8.0)
mixlib-config (~> 2.0)
mixlib-shellout (~> 2.0)
cleanroom (1.0.0)
coderay (1.1.1)
diff-lcs (1.2.5)
- docker-api (1.29.0)
+ docker-api (1.29.1)
excon (>= 0.38.0)
json
erubis (2.7.0)
- excon (0.50.1)
+ excon (0.51.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
- ffi (1.9.10)
+ ffi (1.9.14)
fuzzyurl (0.8.0)
gssapi (1.2.0)
ffi (>= 1.0.1)
@@ -76,7 +76,7 @@ GEM
hashie (3.4.4)
hitimes (1.2.4)
httpclient (2.7.2)
- inspec (0.26.0)
+ inspec (0.28.0)
hashie (~> 3.4)
json (~> 1.8)
method_source (~> 0.8)
@@ -86,18 +86,16 @@ GEM
rspec-its (~> 1.2)
rubyzip (~> 1.1)
thor (~> 0.19)
- train (~> 0.13)
- jmespath (1.2.4)
- json_pure (>= 1.8.1)
+ train (>= 0.15.1, < 1.0)
+ jmespath (1.3.1)
json (1.8.3)
- json_pure (1.8.3)
- kitchen-ec2 (1.0.0)
+ kitchen-ec2 (1.0.1)
aws-sdk (~> 2)
excon
multi_json
retryable (~> 2.0)
test-kitchen (~> 1.4, >= 1.4.1)
- kitchen-inspec (0.14.0)
+ kitchen-inspec (0.15.0)
inspec (>= 0.22.0, < 1.0.0)
test-kitchen (~> 1.6)
kitchen-vagrant (0.20.0)
@@ -108,7 +106,8 @@ GEM
multi_json (~> 1.10)
method_source (0.8.2)
minitar (0.5.4)
- mixlib-archive (0.1.0)
+ mixlib-archive (0.2.0)
+ mixlib-log
mixlib-authentication (1.4.1)
mixlib-log
mixlib-config (2.2.1)
@@ -129,13 +128,13 @@ GEM
nori (2.6.0)
octokit (4.3.0)
sawyer (~> 0.7.0, >= 0.5.3)
- pry (0.10.3)
+ pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rainbow (2.1.0)
- retryable (2.0.3)
- ridley (4.5.1)
+ retryable (2.0.4)
+ ridley (4.6.0)
addressable
buff-config (~> 1.0)
buff-extensions (~> 1.0)
@@ -153,22 +152,22 @@ GEM
retryable (~> 2.0)
semverse (~> 1.1)
varia_model (~> 0.4.0)
- rspec (3.4.0)
- rspec-core (~> 3.4.0)
- rspec-expectations (~> 3.4.0)
- rspec-mocks (~> 3.4.0)
- rspec-core (3.4.4)
- rspec-support (~> 3.4.0)
- rspec-expectations (3.4.0)
+ rspec (3.5.0)
+ rspec-core (~> 3.5.0)
+ rspec-expectations (~> 3.5.0)
+ rspec-mocks (~> 3.5.0)
+ rspec-core (3.5.1)
+ rspec-support (~> 3.5.0)
+ rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
- rspec-support (~> 3.4.0)
+ rspec-support (~> 3.5.0)
rspec-its (1.2.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
- rspec-mocks (3.4.1)
+ rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
- rspec-support (~> 3.4.0)
- rspec-support (3.4.1)
+ rspec-support (~> 3.5.0)
+ rspec-support (3.5.0)
rubyntlm (0.6.0)
rubyzip (1.2.0)
safe_yaml (1.0.4)
@@ -190,7 +189,7 @@ GEM
thor (0.19.1)
timers (4.0.4)
hitimes
- train (0.14.2)
+ train (0.15.1)
docker-api (~> 1.26)
json (~> 1.8)
mixlib-shellout (~> 2.0)
diff --git a/acceptance/basics/.kitchen.yml b/acceptance/basics/.kitchen.yml
index 4b7a516396..5dad8bcd98 100644
--- a/acceptance/basics/.kitchen.yml
+++ b/acceptance/basics/.kitchen.yml
@@ -1,4 +1,5 @@
suites:
- name: chef-current-install
- includes: [ubuntu-14.04, windows-server-2012r2]
+ #includes: [ubuntu-14.04, windows-server-2012r2]
+ includes: [ubuntu-14.04]
run_list:
diff --git a/acceptance/fips/.kitchen.yml b/acceptance/fips/.kitchen.yml
index 23280f9142..87dbd30f5d 100644
--- a/acceptance/fips/.kitchen.yml
+++ b/acceptance/fips/.kitchen.yml
@@ -1,8 +1,10 @@
suites:
- name: fips-unit-functional
- includes: [centos-6, windows-2012r2]
+ #includes: [centos-6, windows-2012r2]
+ includes: [centos-6]
run_list:
- name: fips-integration
- includes: [centos-6, windows-2012r2]
+ #includes: [centos-6, windows-2012r2]
+ includes: [centos-6]
run_list:
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb
index 203ea9809a..c605083fb2 100644
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb
+++ b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb
@@ -3,6 +3,8 @@ class TopCookbooks < Chef::Resource
property :command, String, name_property: true
+ # Disabling all windows tests until winrm issue is properly settled.
+ #
action :run do
cookbook_kitchen "#{command} docker" do
end
@@ -15,26 +17,24 @@ class TopCookbooks < Chef::Resource
cookbook_relative_dir "cookbooks/learn-the-basics-ubuntu"
end
- cookbook_kitchen "#{command} learn-the-basics-windows" do
- repository "learn-chef/learn-chef-acceptance"
- cookbook_relative_dir "cookbooks/learn-the-basics-windows"
- end
+ # cookbook_kitchen "#{command} learn-the-basics-windows" do
+ # repository "learn-chef/learn-chef-acceptance"
+ # cookbook_relative_dir "cookbooks/learn-the-basics-windows"
+ # end
- cookbook_kitchen "#{command} powershell" do
- end
+ # cookbook_kitchen "#{command} powershell" do
+ # end
- cookbook_kitchen "#{command} iis" do
- end
+ # cookbook_kitchen "#{command} iis" do
+ # end
- cookbook_kitchen "#{command} sql_server" do
- end
+ # cookbook_kitchen "#{command} sql_server" do
+ # end
- cookbook_kitchen "#{command} winbox" do
- repository "adamedx/winbox"
- end
+ # cookbook_kitchen "#{command} winbox" do
+ # repository "adamedx/winbox"
+ # end
- # Temporarily disabling windows and chocolatey to eliminate
- # transient errors on the builders
# cookbook_kitchen "#{command} windows" do
# end
diff --git a/acceptance/top-cookbooks/.kitchen.git.yml b/acceptance/top-cookbooks/.kitchen.git.yml
index 302657dffc..3115600ecc 100644
--- a/acceptance/top-cookbooks/.kitchen.git.yml
+++ b/acceptance/top-cookbooks/.kitchen.git.yml
@@ -6,6 +6,6 @@ suites:
- name: git-source
run_list: ["recipe[git::source]"]
includes: [nonexistent]
- - name: git-default-windows
- run_list: ["recipe[git]"]
- includes: [windows-2012r2]
+ #- name: git-default-windows
+ # run_list: ["recipe[git]"]
+ # includes: [windows-2012r2]
diff --git a/acceptance/trivial/.kitchen.yml b/acceptance/trivial/.kitchen.yml
index 1e0af03503..cdc0bd6bd4 100644
--- a/acceptance/trivial/.kitchen.yml
+++ b/acceptance/trivial/.kitchen.yml
@@ -3,5 +3,6 @@ verifier:
suites:
- name: chef-current-install
- includes: [windows-2012r2]
+ #includes: [ubuntu-14.04, windows-server-2012r2]
+ includes: [ubuntu-14.04]
run_list:
diff --git a/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb b/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb
deleted file mode 100644
index e2d663ac2f..0000000000
--- a/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/destroy.rb
+++ /dev/null
@@ -1 +0,0 @@
-kitchen "destroy"
diff --git a/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb b/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb
deleted file mode 100644
index 5726c0e7b5..0000000000
--- a/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/provision.rb
+++ /dev/null
@@ -1 +0,0 @@
-kitchen "converge"
diff --git a/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb b/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb
deleted file mode 100644
index 05ac94ce66..0000000000
--- a/acceptance/windows-service/.acceptance/acceptance-cookbook/recipes/verify.rb
+++ /dev/null
@@ -1 +0,0 @@
-kitchen "verify"
diff --git a/acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/.gitignore
index 041413b040..041413b040 100644
--- a/acceptance/windows-service/.acceptance/acceptance-cookbook/.gitignore
+++ b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/.gitignore
diff --git a/acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/metadata.rb
index 6c754560f0..6c754560f0 100644
--- a/acceptance/windows-service/.acceptance/acceptance-cookbook/metadata.rb
+++ b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/metadata.rb
diff --git a/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/destroy.rb b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/destroy.rb
new file mode 100644
index 0000000000..e12f938cf3
--- /dev/null
+++ b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/destroy.rb
@@ -0,0 +1 @@
+#kitchen "destroy"
diff --git a/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/provision.rb b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/provision.rb
new file mode 100644
index 0000000000..cec9de4e5d
--- /dev/null
+++ b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/provision.rb
@@ -0,0 +1 @@
+#kitchen "converge"
diff --git a/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/verify.rb b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/verify.rb
new file mode 100644
index 0000000000..52e3560cf6
--- /dev/null
+++ b/acceptance/windows-service_disabled/.acceptance/acceptance-cookbook/recipes/verify.rb
@@ -0,0 +1 @@
+#kitchen "verify"
diff --git a/acceptance/windows-service/.kitchen.yml b/acceptance/windows-service_disabled/.kitchen.yml
index 5270e81487..5270e81487 100644
--- a/acceptance/windows-service/.kitchen.yml
+++ b/acceptance/windows-service_disabled/.kitchen.yml
diff --git a/acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb b/acceptance/windows-service_disabled/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb
index a791177362..a791177362 100644
--- a/acceptance/windows-service/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb
+++ b/acceptance/windows-service_disabled/test/integration/chef-windows-service/inspec/chef_windows_service_spec.rb
diff --git a/ci/verify-chef.sh b/ci/verify-chef.sh
index e56b44798c..71d4afe0df 100755
--- a/ci/verify-chef.sh
+++ b/ci/verify-chef.sh
@@ -106,8 +106,8 @@ if [ "x$ACCEPTANCE" != "x" ]; then
cd $SUITE_PATH
-# env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID bundle install --deployment
-# env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID KITCHEN_DRIVER=ec2 KITCHEN_CHEF_CHANNEL=unstable bundle exec chef-acceptance test --force-destroy --data-path $WORKSPACE/chef-acceptance-data
+ env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID bundle install --deployment
+ env PATH=$PATH AWS_SSH_KEY_ID=$AWS_SSH_KEY_ID KITCHEN_DRIVER=ec2 KITCHEN_CHEF_CHANNEL=unstable bundle exec chef-acceptance test --force-destroy --data-path $WORKSPACE/chef-acceptance-data
else
PATH=/opt/$PROJECT_NAME/bin:/opt/$PROJECT_NAME/embedded/bin:$PATH
export PATH