diff options
Diffstat (limited to 'features/api')
-rw-r--r-- | features/api/environments/list_nodes_by_environment_api.feature | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/features/api/environments/list_nodes_by_environment_api.feature b/features/api/environments/list_nodes_by_environment_api.feature new file mode 100644 index 0000000000..882134ab12 --- /dev/null +++ b/features/api/environments/list_nodes_by_environment_api.feature @@ -0,0 +1,19 @@ +@api @api_environments @nodes +Feature: List nodes by environments via the REST API + In order to know what nodes are in an environment programmatically + As a developer + I want to list all the nodes in an environment 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 + 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 | + | an administrator | + | a non-admin |
\ No newline at end of file |