When(/^the user tries to \/DELETE all assets for a (valid|non-existent) product$/) do |switch_case|
  case switch_case
  when "valid"
    @res = delete_all_assets(PRODUCT_A_ID)
    # TODO
    # assert response is valid, 200 and so on
  when "non-existent"
    @res = delete_all_assets(123_123_123)
  end
end

And(
  /^GET \/asset\/product\/<product_id> (contains|doesn't contain) uploaded assets$/
) do |switch_case|
  @res = retrieve_release_assets_info(PRODUCT_A_ID)

  case switch_case
  when "contains"
  # TODO
  #  assert @res contains previously POSTed image and track asset
  when "doesn't contain"
    # TODO
    #  assert res doesn't contain image and track assets anymore
  end
end

Then(/^404 error should be obtained from \/DELETE all assets endpoint$/) do
  assert_equal(404, @res[:code])
  assert_equal("Product not found", parsed_response["message"])
  assert_equal("not_found_error", parsed_response["code"])
end
