64 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| @project
 | |
| Feature: delete project
 | |
| 
 | |
|   @openstack
 | |
|   Scenario: Delete openstack project with user without privileges
 | |
|     When I send DELETE '/v2.0/project/<%= @config["openstack"]["project"]["name"] %>' query with user without privileges
 | |
|     Then response should be '401'
 | |
| 
 | |
|   @openstack
 | |
|   Scenario: Delete openstack project
 | |
|     When I send DELETE '/v2.0/project/<%= @config["openstack"]["project"]["name"] %>' query
 | |
|     Then response should be '200'
 | |
|     And the Content-Type header should include 'application/json'
 | |
|     And the JSON response should be an object
 | |
|     And response should be JSON object like:
 | |
|     """
 | |
|     {
 | |
|       "message" : "Project '<%= @config["openstack"]["project"]["name"] %>' is deleted"
 | |
|     }
 | |
|     """
 | |
| 
 | |
|   @ec2
 | |
|   Scenario: Delete ec2 project with user without privileges
 | |
|     When I send DELETE '/v2.0/project/<%= @config["ec2"]["project"]["name"] %>' query with user without privileges
 | |
|     Then response should be '401'
 | |
| 
 | |
|   @ec2
 | |
|   Scenario: Delete ec2 project
 | |
|     When I send DELETE '/v2.0/project/<%= @config["ec2"]["project"]["name"] %>' query
 | |
|     Then response should be '200'
 | |
|     And the Content-Type header should include 'application/json'
 | |
|     And the JSON response should be an object
 | |
|     And response should be JSON object like:
 | |
|     """
 | |
|     {
 | |
|       "message" : "Project '<%= @config["ec2"]["project"]["name"] %>' is deleted"
 | |
|     }
 | |
|     """
 | |
| 
 | |
| 
 | |
|   @static
 | |
|   Scenario: Delete static project with user without privileges
 | |
|     When I send DELETE '/v2.0/project/<%= @config["static"]["project"]["name"] %>' query with user without privileges
 | |
|     Then response should be '401'
 | |
| 
 | |
|   @static
 | |
|   Scenario: Delete static project
 | |
|     When I send DELETE '/v2.0/project/<%= @config["static"]["project"]["name"] %>' query
 | |
|     Then response should be '200'
 | |
|     And the Content-Type header should include 'application/json'
 | |
|     And the JSON response should be an object
 | |
|     And response should be JSON object like:
 | |
|     """
 | |
|     {
 | |
|       "message" : "Project '<%= @config["static"]["project"]["name"] %>' is deleted"
 | |
|     }
 | |
|     """
 | |
| 
 | |
| 
 | |
|   Scenario: Delete unknown project
 | |
|     When I send DELETE '/v2.0/project/foo' query
 | |
|     Then response should be '404'
 | |
| 
 |