diff options
author | Nuo Yan <nuo@opscode.com> | 2010-08-17 13:54:11 -0700 |
---|---|---|
committer | Seth Falcon <seth@opscode.com> | 2010-11-01 10:44:45 -0700 |
commit | 11997f02cc110a7f13ce3e5bef1f4e0b6addb9cb (patch) | |
tree | 6aedf008aa8f76703433df16d5903a4a73f95416 /features/api | |
parent | 6e0f5d6697e801631986e8090fe47da3a7eb4f7b (diff) | |
download | chef-11997f02cc110a7f13ce3e5bef1f4e0b6addb9cb.tar.gz |
work on knife node list -E ENV and its API, using the couch view approach
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 |