summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorjkeiser <jkeiser@opscode.com>2013-03-11 10:05:58 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:28 -0700
commit9402c22d251d3395253ede194ffb3e6e7682f3b0 (patch)
tree991a40fed3ad95d35f63f9fa7f9537fec139f13b /spec/support
parentc728da4e2706d494ed7ac1622a73324af6b91007 (diff)
downloadchef-9402c22d251d3395253ede194ffb3e6e7682f3b0.tar.gz
Delete unused spec helpers
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared/integration/integration_helper.rb141
1 files changed, 0 insertions, 141 deletions
diff --git a/spec/support/shared/integration/integration_helper.rb b/spec/support/shared/integration/integration_helper.rb
index 4400e701f2..0308659b1d 100644
--- a/spec/support/shared/integration/integration_helper.rb
+++ b/spec/support/shared/integration/integration_helper.rb
@@ -28,142 +28,6 @@ require 'spec_helper'
module IntegrationSupport
include ChefZero::RSpec
- # Common layouts
- def one_of_each_resource_in_chef_server
- client 'x', '{}'
- cookbook 'x', '1.0.0', { 'metadata.rb' => ['name "x"', 'version "1.0.0"'].join("\n") }
- data_bag 'x', { 'y' => '{}' }
- environment 'x', '{}'
- node 'x', '{}'
- role 'x', '{}'
- user 'x', '{}'
- end
-
- def one_of_each_resource_in_repository(options = {})
- file 'clients/x.json', <<EOM
-{}
-EOM
- if metadata[:versioned_cookbooks]
- file 'cookbooks/x-1.0.0/metadata.rb', ['name "x"', 'version "1.0.0"'].join("\n")
- else
- file 'cookbooks/x/metadata.rb', [ 'name "x"', 'version "1.0.0"'].join("\n")
- end
-
- file 'data_bags/x/y.json', <<EOM
-{
- "id": "y"
-}
-EOM
- file 'environments/_default.json', <<EOM
-{
- "name": "_default",
- "description": "The default Chef environment",
- "cookbook_versions": {
- },
- "json_class": "Chef::Environment",
- "chef_type": "environment",
- "default_attributes": {
- },
- "override_attributes": {
- }
-}
-EOM
- file 'environments/x.json', <<EOM
-{
- "chef_type": "environment",
- "cookbook_versions": {
- },
- "default_attributes": {
- },
- "description": "",
- "json_class": "Chef::Environment",
- "name": "x",
- "override_attributes": {
- }
-}
-EOM
- file 'nodes/x.json', <<EOM
-{}
-EOM
- file 'roles/x.json', <<EOM
-{
- "chef_type": "role",
- "default_attributes": {
- },
- "description": "",
- "env_run_lists": {
- },
- "json_class": "Chef::Role",
- "name": "x",
- "override_attributes": {
- },
- "run_list": [
-
- ]
-}
-EOM
- file 'users/x.json', <<EOM
-{}
-EOM
- end
-
- def extra_resources_in_repository
- # Extra files not found in the standard resource set
- file 'clients/y.json', { 'name' => 'y' }
- if metadata[:versioned_cookbooks]
- file 'cookbooks/x-1.0.0/blah.rb', ''
- file 'cookbooks/x-2.0.0/metadata.rb', ['name "x"', 'version "2.0.0"'].join("\n")
- file 'cookbooks/y-1.0.0/metadata.rb', ['name "y"', 'version "1.0.0"'].join("\n")
- else
- file 'cookbooks/x/blah.rb', ''
- file 'cookbooks/y/metadata.rb', ['name "y"', 'version "1.0.0"'].join("\n")
- end
- file 'data_bags/x/z.json', <<EOM
-{
- "id": "z"
-}
-EOM
- file 'data_bags/y/zz.json', <<EOM
-{
- "id": "zz"
-}
-EOM
- file 'environments/y.json', <<EOM
-{
- "chef_type": "environment",
- "cookbook_versions": {
- },
- "default_attributes": {
- },
- "description": "",
- "json_class": "Chef::Environment",
- "name": "y",
- "override_attributes": {
- }
-}
-EOM
- file 'nodes/y.json', { 'name' => 'y' }
- file 'roles/y.json', <<EOM
-{
- "chef_type": "role",
- "default_attributes": {
- },
- "description": "",
- "env_run_lists": {
- },
- "json_class": "Chef::Role",
- "name": "y",
- "override_attributes": {
- },
- "run_list": [
-
- ]
-}
-EOM
- file 'users/y.json', { 'name' => 'y' }
- end
-
-
# Integration DSL
def when_the_repository(description, *args, &block)
@@ -288,9 +152,4 @@ EOM
instance_eval(&block)
end
end
-
- def with_all_types_of_repository_layouts(&block)
- without_versioned_cookbooks(&block)
- with_versioned_cookbooks(&block)
- end
end