Feature: Apps are up

  @api
  Scenario: Check the data API is up
    Given I have a URL for "dm_api"
      And I have an auth token for "dm_api"
    When I send a GET request with authorization to "/services"
    Then the response code should be "200"
    And the response should contain a JSON list of "services"
   
  @search-api
  Scenario: Check the search API is up
    Given I have a URL for "dm_search_api"
      And I have an auth token for "dm_search_api"
    When I send a GET request with authorization to "/"
    Then the response code should be "200"
    And the response should contain a JSON object "links"

  @buyer-frontend
  Scenario: Check the buyer frontend is up
    Given I have a URL for "dm_buyer_frontend"
    When I send a GET request to the home page
    Then the response code should be "200"

  @supplier-frontend
  Scenario: Check the supplier frontend is up
    Given I have a URL for "dm_supplier_frontend"
    When I send a GET request to the home page
    Then the response code should be "200"

  @admin-frontend
  Scenario: Check the admin frontend is up
    Given I have a URL for "dm_admin_frontend"
    When I send a GET request to "/admin/login"
    Then the response code should be "200"

Feature: Apps are up

  @api
  Scenario: Check the data API is up
    Given I have a URL for "dm_api"
      And I have an auth token for "dm_api"
    When I send a GET request with authorization to "/services"
    Then the response code should be "200"
    And the response should contain a JSON list of "services"

  @search-api
  Scenario: Check the search API is up
    Given I have a URL for "dm_search_api"
      And I have an auth token for "dm_search_api"
    When I send a GET request with authorization to "/"
    Then the response code should be "200"
    And the response should contain a JSON object "links"

  @buyer-frontend
  Scenario: Check the buyer frontend is up
    Given I have a URL for "dm_buyer_frontend"
    When I send a GET request to the home page
    Then the response code should be "200"

  @supplier-frontend
  Scenario: Check the supplier frontend is up
    Given I have a URL for "dm_supplier_frontend"
    When I send a GET request to "/supplier/"
    Then the response code should be "200"

  @admin-frontend
  Scenario: Check the admin frontend is up
    Given I have a URL for "dm_admin_frontend"
    When I send a GET request to "/admin/login"
    Then the response code should be "200"

Fix supplier app "is up" URL
Fix supplier app "is up" URL

Supplier app URLs are prefixed with /supplier/, so that's what the
smoke tests should use.
