Feature: Export data To perform analysis A user Must be able to extract data From the application Scenario: Retreive a list of hosts When I go to /data Then the request should succeed Then I should receive valid JSON And the JSON should have a list of hosts Scenario: Retreive a list of hosts 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: 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 And the JSON should have a plugin instance named "memory-free" Scenario: Retrieve multiple plugin instances Given a list of hosts exist When I visit "memory" on the first available host Then the request should succeed Then I should receive valid JSON And the JSON should have a plugin named "memory" And the JSON should have multiple plugin instances under the "memory" plugin Scenario: Make cross-domain requests Given a list of hosts exist When I visit "cpu-0?callback=foobar" on the first available host Then I should receive JSON wrapped in a callback named "foobar" Scenario: Retrieve multiple plugin instances without color definition Given a list of hosts exist When I visit "memory" on the first available host Then the request should succeed Then I should receive valid JSON And each plugin instance should have a different color Scenario Outline: Return only one colour per metric Given a list of hosts exist When I visit "" on the first available host Then the request should succeed Then I should receive valid JSON And each plugin instance should have a different color Examples: | path | | cpu-0/cpu-user | | memory/memory-used | Scenario: Retrieve single plugin instance with a color definition Given a list of hosts exist When I visit "load/load" on the first available host Then the request should succeed Then I should receive valid JSON And the plugin instance should have a color Scenario: Retrieve multiple plugins through a glob Given a list of hosts exist When I visit "disk*/disk_ops" on the first available host Then the request should succeed Then I should receive valid JSON And I should see multiple plugins 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