blob: 60594df9873434343c028aa418c740ff96a3215e [file] [log] [blame]
Feature: Accessing hardware profiles
Scenario: I want to get list of all hardware profiles
Given URI /api/hardware_profiles exists
And authentification is not required for this URI
When client access this URI
Then client should get root element 'hardware_profiles'
And this URI should be available in XML, HTML, JSON format
Scenario: I want to show hardware profile details
Given URI /api/hardware_profiles exists
And authentification is not required for this URI
When client access this URI
Then client should get root element 'hardware_profiles'
When client want to show 'm1-large' hardware_profile
And client should get this hardware_profile
And it should have a href attribute
And it should have a range property 'cpu'
And it should have a range property 'memory'
And it should have a enum property 'storage'
And this URI should be available in XML, HTML, JSON format
Scenario: Filtering images by architecture
Given URI /api/hardware_profiles exists
And authentification is required for this URI
When client access this URI with parameters:
| architecture | i386 |
Then client should get some hardware_profiles
And each hardware_profile should have 'architecture' property set to 'i386'