blob: 7dc31990f25c4d44fad9f3f3659799bd9ad9b79e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
@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
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 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 |
| an administrator |
| a non-admin |
|