@image @project
Feature: delete image

  <% providers = @formatter.get_fixture('providers/without_static') %>
  <% providers.each do |provider| %>
    <% image = @formatter.get_fixture(provider + '/image') %>
  <% generate_delete_path_scenarios "Delete #{provider} image", "/v3/image/#{image["id"]}", provider do %>
    And the JSON response should be an object
    And response should be JSON object like:
    """
    {
      "message" : "Image '<%= image["id"] %>' has been removed"
    }
    """
  <% end %>

  <% end #providers %>


  <% providers = @formatter.get_fixture('providers/all').map{|provider| "@#{provider}"} %>
  <%= providers.join(" ") %>
  Scenario: Delete unknown image
    When I send DELETE '/v3/image/foo' query
    Then response should be '404'
