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

Version Path
cuken-0.1.22 lib/cuken/cucumber/chef/node.rb
cuken-0.1.21 lib/cuken/cucumber/chef/node.rb
cuken-0.1.20 lib/cuken/cucumber/chef/node.rb
cuken-0.1.19 lib/cuken/cucumber/chef/node.rb
cuken-0.1.18 lib/cuken/cucumber/chef/node.rb
cuken-0.1.17 lib/cuken/cucumber/chef/node.rb
cuken-0.1.16 lib/cuken/cucumber/chef/node.rb
cuken-0.1.15 lib/cuken/cucumber/chef/node.rb
cuken-0.1.13 lib/cuken/cucumber/chef/node.rb
cuken-0.1.12 lib/cuken/cucumber/chef/node.rb
cuken-0.1.11 lib/cuken/cucumber/chef/node.rb
cuken-0.1.10 lib/cuken/cucumber/chef/node.rb
cuken-0.1.9 lib/cuken/cucumber/chef/node.rb
cuken-0.1.8 lib/cuken/cucumber/chef/node.rb