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

Testing lockout scenario #131

Open
abdulraheem1989 opened this issue Jul 15, 2021 · 2 comments
Open

Testing lockout scenario #131

abdulraheem1989 opened this issue Jul 15, 2021 · 2 comments

Comments

@abdulraheem1989
Copy link

I have a scenario where I have to call an API multiple times until it sends a locked out response. Is there is a way to achieve this in parrot? I tried this code, but it did not work. It always gives the first response 1001.

[{
      request: {
        path: '/test',
        method: 'POST',
      },
      response: {
        body: {
          message: 'Failed First attempt',
          code: 1001,
        },
        status: 400,
      },
    },
    {
      request: {
        path: '/test',
        method: 'POST',
      },
      response: {
        body: {
          message: 'Failed Second attempt',
          code: 1002,
        },
        status: 400,
      },
    },
    {
      request: {
        path: '/test',
        method: 'POST',
      },
      response: {
        body: {
          message: 'Locked out',
          code: 1003,
        },
        status: 400,
      },
    }]
@github-actions
Copy link

Thanks for opening your first issue. Pull requests are always welcome!

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant