36 lines
987 B
Gherkin
36 lines
987 B
Gherkin
Feature: Manage images
|
|
|
|
Scenario: Get list of all images
|
|
When I send GET '/v2.0/images' 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 should be JSON, images list:
|
|
"""
|
|
[
|
|
{
|
|
"provider": "foo_provider",
|
|
"name": "foo_name",
|
|
"remote_user": "foo_user",
|
|
"bootstrap_template": "foo_template",
|
|
"id": "foo_id"
|
|
}
|
|
]
|
|
"""
|
|
|
|
Scenario: Get info for single image
|
|
When I send GET '/v2.0/image/ami-83e4bcea' query
|
|
Then response should be '200'
|
|
And the Content-Type header should include 'application/json'
|
|
And the JSON response should be a hash
|
|
And response should be JSON, image object:
|
|
"""
|
|
{
|
|
"provider": "foo_provider",
|
|
"name": "foo_name",
|
|
"remote_user": "foo_user",
|
|
"bootstrap_template": "foo_template",
|
|
"id": "b79994de"
|
|
}
|
|
"""
|