summaryrefslogtreecommitdiff
path: root/acceptance/top-cookbooks/.acceptance/acceptance-cookbook
diff options
context:
space:
mode:
Diffstat (limited to 'acceptance/top-cookbooks/.acceptance/acceptance-cookbook')
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore2
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb43
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb41
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb3
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb1
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb1
-rw-r--r--acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb1
7 files changed, 0 insertions, 92 deletions
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore
deleted file mode 100644
index 041413b040..0000000000
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-nodes/
-tmp/
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb
deleted file mode 100644
index 5d851a6ac6..0000000000
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/cookbook_kitchen.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-class CookbookKitchen < KitchenAcceptance::Kitchen
- resource_name :cookbook_kitchen
-
- property :command, default: lazy { name.split(" ")[0] }
- property :kitchen_dir, default: lazy { ::File.join(repository_root, cookbook_relative_dir) }
- property :test_cookbook, String, default: lazy { name.split(" ")[1] }
- property :repository, String, default: lazy { "chef-cookbooks/#{test_cookbook}" },
- coerce: proc { |v|
- # chef-cookbooks/runit -> https://github.com/chef-cookbooks/runit.git
- if !v.include?(':')
- "https://github.com/#{v}.git"
- else
- v
- end
- }
- property :repository_root, String, default: lazy { ::File.join(Chef.node["chef-acceptance"]["suite-dir"], "test_run", test_cookbook) }
- property :branch, String, default: "master"
- property :cookbook_relative_dir, String, default: ""
- property :env, default: lazy {
- {
- "BUNDLE_GEMFILE" => ::File.expand_path("../Gemfile", Chef.node["chef-acceptance"]["suite-dir"]),
-# "KITCHEN_GLOBAL_YAML" => ::File.join(kitchen_dir, ".kitchen.yml"),
- "KITCHEN_YAML" => ::File.join(node["chef-acceptance"]["suite-dir"], ".kitchen.#{test_cookbook}.yml")
- }
- }
-
- action :run do
- # Ensure the parent directory exists
- directory ::File.expand_path("..", repository_root) do
- recursive true
- end
-
- # Grab the cookbook
- # TODO Grab the source URL from supermarket
- # TODO get git to include its kitchen tests in the cookbook.
- git repository_root do
- repository new_resource.repository
- branch new_resource.branch
- end
-
- super()
- end
-end
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb
deleted file mode 100644
index dec292567c..0000000000
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/libraries/top_cookbooks.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-class TopCookbooks < Chef::Resource
- resource_name :top_cookbooks
-
- property :command, String, name_property: true
-
- # Disabling all windows tests until winrm issue is properly settled.
- #
- action :run do
-
- # FIXME: waiting for https://github.com/learn-chef/learn-chef-acceptance/pull/23
- # cookbook_kitchen "#{command} learn-the-basics-ubuntu" do
- # repository "learn-chef/learn-chef-acceptance"
- # 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} powershell" do
- end
-
- cookbook_kitchen "#{command} iis" do
- end
-
- cookbook_kitchen "#{command} sql_server" do
- end
-
- cookbook_kitchen "#{command} winbox" do
- repository "adamedx/winbox"
- end
-
- # cookbook_kitchen "#{command} windows" do
- # end
-
- # cookbook_kitchen "#{command} chocolatey" do
- # repository "chocolatey/chocolatey-cookbook"
- # end
- end
-end
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb
deleted file mode 100644
index 26cdab4e99..0000000000
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/metadata.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-name "acceptance-cookbook"
-
-depends "kitchen_acceptance"
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb
deleted file mode 100644
index 63d10e86e4..0000000000
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/destroy.rb
+++ /dev/null
@@ -1 +0,0 @@
-top_cookbooks "destroy"
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb
deleted file mode 100644
index 7b16f8e66f..0000000000
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/provision.rb
+++ /dev/null
@@ -1 +0,0 @@
-top_cookbooks "converge"
diff --git a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb b/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb
deleted file mode 100644
index 8d00a2e301..0000000000
--- a/acceptance/top-cookbooks/.acceptance/acceptance-cookbook/recipes/verify.rb
+++ /dev/null
@@ -1 +0,0 @@
-top_cookbooks "verify"