Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

create features:api:environments:nodes rake task

  • Loading branch information...
commit a07d4d4d1574a13ebab0d506169a74d6658260b5 1 parent bbcf13d
Stephen Delano sdelano authored seth committed
4 Rakefile
@@ -336,6 +336,10 @@ begin
336 336 Cucumber::Rake::Task.new("cookbooks") do |t|
337 337 t.profile = "api_environments_cookbook_list"
338 338 end
  339 +
  340 + Cucumber::Rake::Task.new("nodes") do |t|
  341 + t.profile = "api_environments_node_list"
  342 + end
339 343 end
340 344
341 345 namespace :nodes do
1  cucumber.yml
@@ -26,6 +26,7 @@ api_environments_list: --tags @environments_list --format pretty -r features/ste
26 26 api_environments_show: --tags @environments_show --format pretty -r features/steps -r features/support features
27 27 api_environments_update: --tags @environments_update --format pretty -r features/steps -r features/support features
28 28 api_environments_cookbook_list: --tags @environments_cookbook_list --format pretty -r features/steps -r features/support features
  29 +api_environments_node_list: --tags @environments_node_list --format pretty -r features/steps -r features/support features
29 30 api_nodes: --tags @api_nodes --format pretty -r features/steps -r features/support features
30 31 api_nodes_sync: --tags @cookbook_sync --format pretty -r features/steps -r features/support features
31 32 api_nodes_create: --tags @nodes_create --format pretty -r features/steps -r features/support features
5 features/api/environments/list_environment_nodes_api.feature
... ... @@ -1,4 +1,4 @@
1   -@api @api_environments @nodes
  1 +@api @api_environments @environments_node_list
2 2 Feature: List nodes by environments via the REST API
3 3 In order to know what nodes are in an environment programmatically
4 4 As a developer
@@ -7,11 +7,10 @@ Feature: List nodes by environments via the REST API
7 7 Scenario Outline: List nodes in an environment
8 8 Given I am <user_type>
9 9 And an 'environment' named 'production' exists
10   - And an 'node' named 'opsmaster' exists
  10 + And a 'node' named 'opsmaster' exists
11 11 When I 'GET' the path '/environments/production/nodes'
12 12 Then the inflated response should be '1' items long
13 13 And the inflated responses key 'opsmaster' should match '^http://.+/nodes/opsmaster$'
14   -
15 14
16 15 Examples:
17 16 | user_type |

0 comments on commit a07d4d4

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