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

Improvements #21

Open
imtoo opened this issue Jan 18, 2018 · 4 comments
Open

Improvements #21

imtoo opened this issue Jan 18, 2018 · 4 comments

Comments

@imtoo
Copy link
Contributor

imtoo commented Jan 18, 2018

  • implement prettifier on response (possible solution https://github.com/rafeca/prettyjson)
  • changing the response from outside of the app
  • async functions (like delays)
  • mixture, some reponse from mock server and some response from real API
@ondrejbartas
Copy link
Contributor

@imtoo delays I want for long time to have. It can be easily done by middleware. Idea was to set some variant with modifier that will trigger delay.
Also it would be great about 503 or similar states.

Mixture - you can use proxy server and when response is not found in fixtures it will do real call to api. If you ommit default variant in fixtures it should do call to api, if you set different variant and it exists it will use fixture

Changing response - please make it more clear

Pretiffier? It can be done also as middleware, but you would need to have correctly set response headers

@imtoo
Copy link
Contributor Author

imtoo commented Jan 18, 2018

Thanks.

Changing response: we need to change response from detox/appium (no cookies). We thought about some http request sent to changeResponse endpoint and it’d change response of the next http request

@ondrejbartas
Copy link
Contributor

@imtoo you can do it by setting variant or is it something else?

@ondrejbartas
Copy link
Contributor

also you can write endpoint.js which will be normal express endpoint which can store in context of file some variables

@imtoo imtoo changed the title Implement prettifier Improvements Jan 22, 2018
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

2 participants