48 lines
1.2 KiB
Gherkin
48 lines
1.2 KiB
Gherkin
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:
|
|
"""
|
|
[
|
|
{
|
|
"id" => "flavor_id",
|
|
"v_cpus" => "v_cpus",
|
|
"ram" => "ram",
|
|
"disk" => "disk"
|
|
}
|
|
]
|
|
"""
|
|
|
|
@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
|
|
|