Skip to content
Browse files

create features:api:environments:nodes rake task

  • Loading branch information...
1 parent bbcf13d commit a07d4d4d1574a13ebab0d506169a74d6658260b5 @sdelano sdelano committed with seth Aug 17, 2010
Showing with 7 additions and 3 deletions.
  1. +4 −0 Rakefile
  2. +1 −0 cucumber.yml
  3. +2 −3 features/api/environments/list_environment_nodes_api.feature
View
4 Rakefile
@@ -336,6 +336,10 @@ begin
Cucumber::Rake::Task.new("cookbooks") do |t|
t.profile = "api_environments_cookbook_list"
end
+
+ Cucumber::Rake::Task.new("nodes") do |t|
+ t.profile = "api_environments_node_list"
+ end
end
namespace :nodes do
View
1 cucumber.yml
@@ -26,6 +26,7 @@ api_environments_list: --tags @environments_list --format pretty -r features/ste
api_environments_show: --tags @environments_show --format pretty -r features/steps -r features/support features
api_environments_update: --tags @environments_update --format pretty -r features/steps -r features/support features
api_environments_cookbook_list: --tags @environments_cookbook_list --format pretty -r features/steps -r features/support features
+api_environments_node_list: --tags @environments_node_list --format pretty -r features/steps -r features/support features
api_nodes: --tags @api_nodes --format pretty -r features/steps -r features/support features
api_nodes_sync: --tags @cookbook_sync --format pretty -r features/steps -r features/support features
api_nodes_create: --tags @nodes_create --format pretty -r features/steps -r features/support features
View
5 features/api/environments/list_environment_nodes_api.feature
@@ -1,4 +1,4 @@
-@api @api_environments @nodes
+@api @api_environments @environments_node_list
Feature: List nodes by environments via the REST API
In order to know what nodes are in an environment programmatically
As a developer
@@ -7,11 +7,10 @@ Feature: List nodes by environments via the REST API
Scenario Outline: List nodes in an environment
Given I am <user_type>
And an 'environment' named 'production' exists
- And an 'node' named 'opsmaster' exists
+ And a 'node' named 'opsmaster' exists
When I 'GET' the path '/environments/production/nodes'
Then the inflated response should be '1' items long
And the inflated responses key 'opsmaster' should match '^http://.+/nodes/opsmaster$'
-
Examples:
| user_type |

0 comments on commit a07d4d4

Please sign in to comment.
Something went wrong with that request. Please try again.