<% providers = @formatter.get_fixture('providers/all').map{|provider| "@#{provider}"} %>
@project <%= providers.join(" ") %>
Feature: create project

  <% project = @formatter.get_fixture('project/new') %>
  <% environment = @formatter.get_fixture('project/environment') %>
  <% generate_create_path_scenarios("Create project", "/v3/project", project, @formatter.get_fixture('project/mandatory_fields')) do %>
    And the JSON response should be an object
  <% end %>

  <% generate_get_path_scenarios "Show new project", "/v3/project/" + project["id"] do %>
    And the JSON response should be an object
  <% end %>

  <% generate_mandatory_fields_validation "POST", "Add deploy env to project", "/v3/project/#{project["id"]}/environment", @formatter.get_fixture('project/environment'), @formatter.get_fixture('project/environment_mandatory_fields') %>

  <% generate_modify_path_scenarios("POST", "Add deploy env to project", "/v3/project/#{project["id"]}/environment", environment) do %>
    And the JSON response should be an object
  <% end %>

  <% generate_get_path_scenarios "Show new environment", "/v3/project/#{project["id"]}/environment/#{environment["id"]}" do %>
    And the JSON response should be an object
  <% end %>

