Sha256: f17ed19d600a849eaa08687fa0ca579efa804a98591a6f9a5b76f87184220338

Contents?: true

Size: 1.43 KB

Versions: 11

Compression:

Stored size: 1.43 KB

Contents

Feature: 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 'http://localhost:7001/mirage/templates/greeting'

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


    And GET is sent to 'http://localhost:7001/mirage/responses/greeting'
    And GET is sent to 'http://localhost:7001/mirage/responses/leaving'

    
  Scenario: Deleting all requests
    And DELETE is sent to 'http://localhost:7001/mirage/requests'

    When GET is sent to 'http://localhost:7001/mirage/requests/1'
    Then a 404 should be returned
    When GET is sent to 'http://localhost:7001/mirage/requests/2'
    Then a 404 should be returned



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

    When GET is sent to 'http://localhost:7001/mirage/requests/1'
    Then a 404 should be returned
    When GET is sent to 'http://localhost:7001/mirage/requests/2'
    Then a 200 should be returned

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.11 features/server/requests/delete.feature
mirage-3.0.0.alpha.10 features/server/requests/delete.feature
mirage-3.0.0.alpha.9 features/server/requests/delete.feature
mirage-3.0.0.alpha.8 features/server/requests/delete.feature
mirage-3.0.0.alpha.7 features/server/requests/delete.feature
mirage-3.0.0.alpha.6 features/server/requests/delete.feature
mirage-3.0.0.alpha.5 features/server/requests/delete.feature
mirage-3.0.0.alpha.4 features/server/requests/delete.feature
mirage-3.0.0.alpha.3 features/server/requests/delete.feature
mirage-3.0.0.alpha.2 features/server/requests/delete.feature
mirage-3.0.0.alpha.1 features/server/requests/delete.feature