fixed role name new field validators without validate fields types fixed error with user parser todo: project tests returned some tests, users fixed some more tests: filters images tests network tests keys tests test generator fixed run_list validator
61 lines
1.6 KiB
Plaintext
61 lines
1.6 KiB
Plaintext
<% providers = @formatter.get_fixture('providers/all').map{|provider| "@#{provider}"} %>
|
|
@project <%= providers.join(" ") %>
|
|
Feature: create project
|
|
|
|
<% project = @formatter.get_fixture('project') %>
|
|
Scenario: Create project <%= project["name"] %>
|
|
When I send POST '/v2.0/project' query with JSON body
|
|
"""
|
|
<%= @formatter.json('project') %>
|
|
"""
|
|
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": [
|
|
"<%= @config["username"] %>"
|
|
],
|
|
"flavor": "<%= @config["ec2"]["flavor"] %>",
|
|
"image": "<%= @config["ec2"]["image"] %>",
|
|
"subnets": [],
|
|
"groups": [
|
|
"default"
|
|
]
|
|
}
|
|
],
|
|
"name": "<%= @config["ec2"]["project"]["name"] %>"
|
|
}
|
|
"""
|
|
Then response should be '201'
|
|
|
|
|
|
@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'
|