Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateful Behavior cannot be reset #37

Closed
szymon-owczarzak opened this issue Oct 14, 2020 · 2 comments
Closed

Stateful Behavior cannot be reset #37

szymon-owczarzak opened this issue Oct 14, 2020 · 2 comments

Comments

@szymon-owczarzak
Copy link

szymon-owczarzak commented Oct 14, 2020

According to: http://wiremock.org/docs/stateful-behaviour/ we should be able to reset state if stateful is used.

However when requesting:
http://localhost:4502/stubs/__admin/scenarios/reset I get No stub defined for this request
http://localhost:4502/__admin/scenarios/reset I get 404 Resource at '/__admin/scenarios/reset' not found: No resource found

Stateful scenario like this seems to work except reset of course:

{
  "mappings": [
    {
      "scenarioName": "Authentication",
      "requiredScenarioState": "Started",
      "request": {
        "method": "POST",
        "url": "/sso/authenticate"
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json"
        },
        "bodyFileName": "myProj/authenticate.json"
      }
    },
    {
      "scenarioName": "Authentication",
      "requiredScenarioState": "Started",
      "newScenarioState": "All Accounts Closed",
      "request": {
        "method": "GET",
        "url": "/sso/authenticate/allAccountsClosed"
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json"
        },
        "bodyFileName": "myProj/authenticate.json"
      }
    },
    {
      "scenarioName": "Authentication",
      "requiredScenarioState": "All Accounts Closed",
      "request": {
        "method": "POST",
        "url": "/sso/authenticate"
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json"
        },
        "bodyFileName": "myProj/authenticate-allAccountsClosed.json"
      }
    }
  ]
}
@pun-ky
Copy link
Collaborator

pun-ky commented Oct 14, 2020

Admin is not supported right now, also considered in #33

@marcinkp
Copy link
Collaborator

marcinkp commented Nov 5, 2020

Admin console is now supported with most functionality.

@marcinkp marcinkp closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants