Sha256: bd29343c275c0510591a06d26412a1a1d431016da73ee54918b1f38e854da2e5

Contents?: true

Size: 1.87 KB

Versions: 25

Compression:

Stored size: 1.87 KB

Contents

Feature: Request data can be deleted. 

  Background: The MockServer has already got a response for greeting and leaving on it.
    Given I send PUT to 'http://localhost:7001/mirage/templates/greeting' with body 'Hello'
    And I send GET to 'http://localhost:7001/mirage/responses/greeting'

    And I send PUT to 'http://localhost:7001/mirage/templates/leaving' with body 'Goodbye'
    And I send GET to 'http://localhost:7001/mirage/responses/leaving'

    
  Scenario: Deleting all requests
    And I send DELETE to 'http://localhost:7001/mirage/requests'

    When I send GET to 'http://localhost:7001/mirage/requests/1'
    Then a 404 should be returned
    When I send GET to 'http://localhost:7001/mirage/responses/greeting'
    Then a 200 should be returned
    When I send GET to 'http://localhost:7001/mirage/templates/1'
    Then a 200 should be returned


    When I send GET to 'http://localhost:7001/mirage/requests/2'
    Then a 404 should be returned
    When I send GET to 'http://localhost:7001/mirage/responses/leaving'
    Then a 200 should be returned
    When I send GET to 'http://localhost:7001/mirage/templates/2'
    Then a 200 should be returned


  Scenario: Deleting a stored request for a prticular response
    And I send DELETE to 'http://localhost:7001/mirage/requests/1'

    When I send GET to 'http://localhost:7001/mirage/requests/1'
    Then a 404 should be returned
    When I send GET to 'http://localhost:7001/mirage/responses/greeting'
    Then a 200 should be returned
    When I send GET to 'http://localhost:7001/mirage/templates/1'
    Then a 200 should be returned


    When I send GET to 'http://localhost:7001/mirage/requests/2'
    Then a 200 should be returned
    When I send GET to 'http://localhost:7001/mirage/responses/leaving'
    Then a 200 should be returned
    When I send GET to 'http://localhost:7001/mirage/templates/2'
    Then a 200 should be returned

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mirage-2.4.2 features/server/requests/delete.feature
mirage-2.4.1 features/server/requests/delete.feature
mirage-2.4.0 features/server/requests/delete.feature
mirage-2.3.0 features/server/requests/delete.feature
mirage-2.2.3 features/server/requests/delete.feature
mirage-2.2.2 features/server/requests/delete.feature
mirage-2.1.2 features/server/requests/delete.feature
mirage-2.0.16 features/server/requests/delete.feature
mirage-2.0.15 features/server/requests/delete.feature
mirage-2.0.14 features/server/requests/delete.feature
mirage-2.0.13 features/server/requests/delete.feature
mirage-2.0.12 features/server/requests/delete.feature
mirage-2.0.11 features/server/requests/delete.feature
mirage-2.0.10 features/server/requests/delete.feature
mirage-2.0.9 features/server/requests/delete.feature
mirage-2.0.8 features/server/requests/delete.feature
mirage-2.0.7 features/server/requests/delete.feature
mirage-2.0.6 features/server/requests/delete.feature
mirage-2.0.5 features/server/requests/delete.feature
mirage-2.0.4 features/server/requests/delete.feature