Sha256: bce15c9f0d1db9948abe82e925bfa3012a74cb9809885bd8fc61da7dcdbac556

Contents?: true

Size: 1.18 KB

Versions: 21

Compression:

Stored size: 1.18 KB

Contents

Feature: Deleting tracked requests
  Tracked request data can be deleted

  Background: The MockServer has already got a response for greeting and leaving on it.
    Given the following template template:
    """
      {
         "response":{
            "body":"Hello"
         }
      }
    """
    And 'response.body' is base64 encoded
    And the template is sent using PUT to '/templates/greeting'

    Given the following template template:
    """
      {
         "response":{
            "body":"Goodbye"
         }
      }
    """
    And 'response.body' is base64 encoded
    And the template is sent using PUT to '/templates/leaving'


    And GET is sent to '/responses/greeting'
    And GET is sent to '/responses/leaving'

    
  Scenario: Deleting all requests
    And DELETE is sent to '/requests'

    When GET is sent to '/requests/1'
    Then a 404 should be returned
    When GET is sent to '/requests/2'
    Then a 404 should be returned



  Scenario: Deleting a stored request for a particular response
    And DELETE is sent to '/requests/1'

    When GET is sent to '/requests/1'
    Then a 404 should be returned
    When GET is sent to '/requests/2'
    Then a 200 should be returned

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
mirage-3.0.13 features/requests/delete.feature
mirage-3.0.12 features/requests/delete.feature
mirage-3.0.11 features/requests/delete.feature
mirage-3.0.10 features/requests/delete.feature
mirage-3.0.9 features/requests/delete.feature
mirage-on-thin-3.0.8 features/requests/delete.feature
mirage-3.0.8 features/requests/delete.feature
mirage-3.0.7 features/requests/delete.feature
mirage-3.0.6 features/requests/delete.feature
mirage-3.0.5 features/requests/delete.feature
mirage-3.0.4 features/requests/delete.feature
mirage-3.0.3 features/requests/delete.feature
mirage-3.0.2 features/requests/delete.feature
mirage-3.0.1 features/requests/delete.feature
mirage-3.0.0 features/requests/delete.feature
mirage-3.0.0.alpha.17 features/requests/delete.feature
mirage-3.0.0.alpha.16 features/requests/delete.feature
mirage-3.0.0.alpha.15 features/requests/delete.feature
mirage-3.0.0.alpha.14 features/requests/delete.feature
mirage-3.0.0.alpha.13 features/requests/delete.feature