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

Test with custom parameters #47

Open
lcofre opened this issue Sep 7, 2017 · 4 comments
Open

Test with custom parameters #47

lcofre opened this issue Sep 7, 2017 · 4 comments

Comments

@lcofre
Copy link

lcofre commented Sep 7, 2017

Hi!

I was wondering if is there a way to specify values for parameters in path, query or body, for each of the expected responses in the swagger file.

Thanks in advance for your help!

@cyprieng
Copy link
Collaborator

Currently swagger tester only test that returned data match the definition in the swagger spec, and send request using example data. So that's not possible for now, but could be a nice improvement 👍

@flavianh
Copy link
Member

@lcofre What interface do you have in mind?

@lcofre
Copy link
Author

lcofre commented Sep 26, 2017

Hi @flavianh !

I was thinking on providing a dict similar to the one for authorize_error:

params = {
  'post': {
    '/pet': {'200': {'name': 'saoirse', 'age': 5}}
  }
}

Thanks for your interest!

@flavianh
Copy link
Member

@cyprien-g Is there a quick way to do it?

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

3 participants