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

Add run modes (capture/proxy, only simulate) #24

Open
eduardongarcia opened this issue Aug 10, 2019 · 0 comments
Open

Add run modes (capture/proxy, only simulate) #24

eduardongarcia opened this issue Aug 10, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@eduardongarcia
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
When using tshield as mock-server it is desirable to disable the option to access external service in some scenarios.

Describe the solution you'd like
It would be nice to have some modes to run tshield:

  • Normal mode: As it is today, if tshield does not have the requested resource, accesses the external service, writes the resource and returns it to the client, from the second call no longer accesses the external service for that match.

  • Simulation mode only: tshield responds only to previously recorded resources, if it does not have the requested resource no request is made to the external service

  • Fallback Mode: Always tries to access the external service and records the response on success, in case of communication failure with the external service returns the previously recorded resource.

@eduardongarcia eduardongarcia added the enhancement New feature or request label Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant