| 
									
										
										
										
											2014-06-02 18:31:34 +04:00
										 |  |  | 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
 | 
					
						
							| 
									
										
										
										
											2014-06-20 12:59:17 +04:00
										 |  |  |     And response array should contains elements like:
 | 
					
						
							| 
									
										
										
										
											2014-06-02 18:31:34 +04:00
										 |  |  |     """
 | 
					
						
							|  |  |  |     [
 | 
					
						
							|  |  |  |       {
 | 
					
						
							|  |  |  |         "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
 | 
					
						
							| 
									
										
										
										
											2014-06-23 13:58:14 +04:00
										 |  |  |     And response should be JSON object like:
 | 
					
						
							| 
									
										
										
										
											2014-06-02 18:31:34 +04:00
										 |  |  |     """
 | 
					
						
							|  |  |  |       {
 | 
					
						
							|  |  |  |         "provider": "foo_provider",
 | 
					
						
							|  |  |  |         "name": "foo_name",
 | 
					
						
							|  |  |  |         "remote_user": "foo_user",
 | 
					
						
							|  |  |  |         "bootstrap_template": "foo_template",
 | 
					
						
							|  |  |  |         "id": "b79994de"
 | 
					
						
							|  |  |  |       }
 | 
					
						
							|  |  |  |     """
 |