fluke/devops-service/tests/templates/api_v2/10_create/20_project.feature.erb

81 lines
2.1 KiB
Plaintext
Raw Normal View History

2014-07-15 01:36:31 +04:00
@project
Feature: create project
@openstack
Scenario: Create project <%= @config["openstack"]["project"]["name"] %>
When I send POST '/v2.0/project' query with JSON body
"""
{
"deploy_envs": [
{
"identifier": "<%= @config["openstack"]["project"]["env"] %>",
"run_list": [],
"expires": null,
"provider": "openstack",
"users": [
2014-07-15 12:15:42 +04:00
"<%= @config["username"] %>"
2014-07-15 01:36:31 +04:00
],
"flavor": "<%= @config["openstack"]["flavor"] %>",
"image": "<%= @config["openstack"]["image"] %>",
"subnets": [
2015-07-28 15:53:28 +03:00
"<%= @config["openstack"]["subnet"] %>"
2014-07-15 01:36:31 +04:00
],
"groups": [
"default"
]
}
],
"name": "<%= @config["openstack"]["project"]["name"] %>"
}
"""
Then response should be '201'
@ec2
Scenario: Create project <%= @config["ec2"]["project"]["name"] %>
When I send POST '/v2.0/project' query with JSON body
"""
{
"deploy_envs": [
{
"identifier": "<%= @config["ec2"]["project"]["env"] %>",
"run_list": [],
"expires": null,
"provider": "ec2",
"users": [
2014-07-15 12:15:42 +04:00
"<%= @config["username"] %>"
2014-07-15 01:36:31 +04:00
],
"flavor": "<%= @config["ec2"]["flavor"] %>",
"image": "<%= @config["ec2"]["image"] %>",
"subnets": [],
"groups": [
"default"
]
}
],
"name": "<%= @config["ec2"]["project"]["name"] %>"
}
"""
Then response should be '201'
2014-11-26 15:45:33 +03:00
@static
Scenario: Create project <%= @config["static"]["project"]["name"] %>
When I send POST '/v2.0/project' query with JSON body
"""
{
"deploy_envs": [
{
"identifier": "<%= @config["static"]["project"]["env"] %>",
"run_list": [],
"expires": null,
"provider": "static",
"users": [
"<%= @config["username"] %>"
]
}
],
"name": "<%= @config["static"]["project"]["name"] %>"
}
"""
Then response should be '201'