cucumber-chef 2.1.0.rc.15 → 3.0.0.rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,64 +0,0 @@
1
- ################################################################################
2
- #
3
- # Author: Stephen Nelson-Smith <stephen@atalanta-systems.com>
4
- # Author: Zachary Patten <zachary@jovelabs.com>
5
- # Copyright: Copyright (c) 2011-2013 Atalanta Systems Ltd
6
- # License: Apache License, Version 2.0
7
- #
8
- # Licensed under the Apache License, Version 2.0 (the "License");
9
- # you may not use this file except in compliance with the License.
10
- # You may obtain a copy of the License at
11
- #
12
- # http://www.apache.org/licenses/LICENSE-2.0
13
- #
14
- # Unless required by applicable law or agreed to in writing, software
15
- # distributed under the License is distributed on an "AS IS" BASIS,
16
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- # See the License for the specific language governing permissions and
18
- # limitations under the License.
19
- #
20
- ################################################################################
21
-
22
- Given /^I have a server called "([^\"]*)"$/ do |name|
23
- $test_lab.containers.init(name)
24
- end
25
-
26
- And /^"([^\"]*)" is running "([^\"]*)" "([^\"]*)"$/ do |name, distro, release|
27
- $test_lab.containers.set_attributes(name, :distro => distro, :release => release)
28
- end
29
-
30
- And /^"([^\"]*)" has "([^\"]*)" architecture$/ do |name, arch|
31
- $test_lab.containers.set_attributes(name, :arch => arch)
32
- end
33
-
34
- And /^"([^\"]*)" should( not)? be persist[ae]nt$/ do |name, boolean|
35
- $test_lab.containers.set_attributes(name, :persist => (!boolean ? true : false))
36
- end
37
-
38
- And /^"([^\"]*)" has an IP address of "([^\"]*)"$/ do |name, ip|
39
- $test_lab.containers.set_attributes(name, :ip => ip)
40
- end
41
-
42
- And /^"([^\"]*)" has a MAC address of "([^\"]*)"$/ do |name, mac|
43
- $test_lab.containers.set_attributes(name, :mac => mac)
44
- end
45
-
46
- And /^"([^\"]*)" has been provisioned$/ do |name|
47
- $test_lab.containers.create(name)
48
- end
49
-
50
- And /^the "([^\"]*)" role has been added to the "([^\"]*)" run list$/ do |role, name|
51
- $test_lab.containers.chef_set_client_attributes(name, :run_list => ["role[#{role}]"])
52
- end
53
-
54
- And /^the "([^\"]*)" recipe has been added to the "([^\"]*)" run list$/ do |recipe, name|
55
- $test_lab.containers.chef_set_client_attributes(name, :run_list => ["recipe[#{recipe}]"])
56
- end
57
-
58
- And /^"([^\"]*)" is in the "([^\"]*)" environment$/ do |name, environment|
59
- $test_lab.containers.chef_set_client_config(:environment => environment)
60
- end
61
-
62
- And /^the chef-client has been run on "([^\"]*)"$/ do |name|
63
- $test_lab.containers.chef_run_client(name)
64
- end
@@ -1,18 +0,0 @@
1
- current_dir = File.dirname(__FILE__)
2
-
3
- log_level :debug
4
- log_location STDOUT
5
- node_name "<%= @user %>"
6
- client_key "#{current_dir}/<%= @user %>.pem"
7
- validation_client_name "chef-validator"
8
- validation_key "#{current_dir}/validation.pem"
9
- chef_server_url "http://<%= @chef_server %>:4000"
10
- cache_type "BasicFile"
11
- cookbook_path ['#{current_dir}/../cookbooks']
12
-
13
- cache_options(:path => "#{current_dir}/checksums")
14
- <% if @librarian_chef -%>
15
-
16
- require 'librarian/chef/integration/knife'
17
- cookbook_path Librarian::Chef.install_path, "#{current_dir}/../site-cookbooks"
18
- <% end -%>