2014-06-20 12:59:17 +04:00
|
|
|
Feature: flavors
|
|
|
|
|
|
|
|
|
|
@flavor
|
|
|
|
|
Scenario: Get list of openstack flavors
|
|
|
|
|
When I send GET '/v2.0/flavors/openstack' query
|
|
|
|
|
Then response should be '200'
|
|
|
|
|
And the Content-Type header should include 'application/json'
|
|
|
|
|
And the JSON response should be an array
|
|
|
|
|
And response array should contains elements like:
|
|
|
|
|
"""
|
|
|
|
|
[
|
|
|
|
|
{
|
2014-06-20 13:21:42 +04:00
|
|
|
"id": "flavor_id",
|
|
|
|
|
"v_cpus": "v_cpus",
|
|
|
|
|
"ram": "ram",
|
|
|
|
|
"disk": "disk"
|
2014-06-20 12:59:17 +04:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
@flavor
|
|
|
|
|
Scenario: Get list of ec2 flavors
|
|
|
|
|
When I send GET '/v2.0/flavors/ec2' query
|
|
|
|
|
Then response should be '200'
|
|
|
|
|
And the Content-Type header should include 'application/json'
|
|
|
|
|
And the JSON response should be an array
|
|
|
|
|
And response array should contains elements like:
|
|
|
|
|
"""
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"id": "t1.micro",
|
|
|
|
|
"cores": 2,
|
|
|
|
|
"disk": 0,
|
|
|
|
|
"name": "Micro Instance",
|
|
|
|
|
"ram": 613
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
@flavor
|
|
|
|
|
Scenario: Get list of static flavors
|
|
|
|
|
When I send GET '/v2.0/flavors/static' query
|
|
|
|
|
Then response should be '200'
|
|
|
|
|
And the Content-Type header should include 'application/json'
|
|
|
|
|
And the JSON response should be an array
|
|
|
|
|
And response array should be empty
|
|
|
|
|
|