summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorNuo Yan <nuo@opscode.com>2010-08-25 12:11:05 -0700
committerSeth Falcon <seth@opscode.com>2010-11-01 10:44:48 -0700
commit1fff38f26b0ad5e2870f8b1930aa8d5d6230f605 (patch)
treed47503414729d2d479ca6b66714233b041a4c6d9 /features/steps
parent99a2717ff6da9cdf1fad17bcdc5208649b66e5b4 (diff)
downloadchef-1fff38f26b0ad5e2870f8b1930aa8d5d6230f605.tar.gz
more roles and environments related work
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/node_steps.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/features/steps/node_steps.rb b/features/steps/node_steps.rb
index e697318ce4..c6f4b461a7 100644
--- a/features/steps/node_steps.rb
+++ b/features/steps/node_steps.rb
@@ -26,6 +26,14 @@ Given /^a validated node$/ do
client.node.run_list << "integration_setup"
end
+Given /^a validated node in the 'cucumber' environment$/ do
+ # client should have cached ohai assigned to it
+ client.register
+ client.build_node
+ client.node.chef_environment("cucumber")
+ client.node.run_list << "integration_setup"
+end
+
Given /^a validated node with an empty runlist$/ do
# client should have cached ohai assigned to it
client.register