Sha256: 9fdbdbe33ad9b1bc82fb94abf7df78d1015de0e08aeb7686261c403cf0f0380f
Contents?: true
Size: 1.65 KB
Versions: 14
Compression:
Stored size: 1.65 KB
Contents
# # Author:: Adam Jacob (<adam@opscode.com>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ### # Given ### Given /^a validated Node$/ do # client should have cached ohai assigned to it client.register client.build_node client.node.run_list << "integration_setup" end Given /^the Node "([^"]*)" exists$/ do |node_name| ensure_node_presence(node_name) end ### # When ### When /^I add these Roles to the Nodes:$/ do |table| table.hashes.each do |hsh| node_role_load(hsh) end end ### # Then ### Then /^the Nodes are:$/ do |partial_output| run_knife_command('node list') all_stdout.should include(partial_output) end #Given /^a Node "([^"]*)"$/ do |arg1| # pending # express the regexp above with the code you wish you had #end # #### ## When #### #When /^I add these Node Roles to the Run Lists:$/ do |table| # # table is a Cucumber::Ast::Table # pending # express the regexp above with the code you wish you had #end # #### ## Then #### #Then /^the Chef nodes are:$/ do |partial_output| # run_knife_command('node list') # all_stdout.should include(partial_output) #end
Version data entries
14 entries across 14 versions & 1 rubygems