features/json.feature in visage-app-1.0.0 vs features/json.feature in visage-app-2.0.0

- old
+ new

@@ -14,10 +14,22 @@ When I visit the first available host Then the request should succeed Then I should receive valid JSON And the JSON should have a list of plugins + Scenario: Get a list of available metrics on a host + When I visit the first available host + Then the request should succeed + Then I should receive valid JSON + And the JSON should have a list of plugins + + Scenario: Get a list of available metrics across many hosts + When I visit the first two available hosts + Then the request should succeed + Then I should receive valid JSON + And the JSON should have a list of plugins + Scenario: Retrieve single plugin instance Given a list of hosts exist When I visit "memory/memory-free" on the first available host Then the request should succeed Then I should receive valid JSON @@ -46,6 +58,31 @@ Scenario: Retrieve multple hosts through a glob When I go to /data/*/memory Then the request should succeed Then I should receive valid JSON And I should see multiple hosts + + Scenario: Retrieve data with a defined start time + Given a list of hosts exist + When I visit "disk*/disk_ops" on the first available host with the following query parameters: + | parameter | value | + | start | 1321769692 | + | finish | 1321773292 | + Then the request should succeed + Then I should receive valid JSON + And I should see the following parameters for each plugin instance: + | parameter | value | + | start | 1321769692 | + | finish | 1321773292 | + + Scenario: Retrieve data with a defined finish time + Given a list of hosts exist + When I visit "disk*/disk_ops" on the first available host with the following query parameters: + | parameter | value | + | finish | 1321773292 | + Then the request should succeed + Then I should receive valid JSON + And I should see the following parameters for each plugin instance: + | parameter | value | + | start | 1321769692 | + | finish | 1321773292 |