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 Kumuluzee Hystrix fault tolerance #1

Closed
OhMyDeera opened this issue Jul 12, 2018 · 3 comments
Closed

Testing Kumuluzee Hystrix fault tolerance #1

OhMyDeera opened this issue Jul 12, 2018 · 3 comments

Comments

@OhMyDeera
Copy link

The documentation for the hystrix is really good, but how would someone test their microservice?
I've got a kumuluzee microservice with JWT-Auth and now i've added the Hystrix fault tolerance, but i dont see anywhere anything about testing these?
Mainly with regards to:

  • CircuitBreaker
  • Timeout
  • BulkHead

I was just wondering how i can go about doing these without having to run my microservice and then have another application hitting the endpoints to test it.

Cheers

@MBJuric
Copy link
Member

MBJuric commented Jul 12, 2018

You can mock Hystrix commands for unit testing. However, testing Hystrix is not Kumuluz specific, so please refer to Hystrix examples and their documentation. For example: Netflix/Hystrix#349

@OhMyDeera
Copy link
Author

If it isnt kumuluzee specific, can it still be done without doing so in a "hacky" way? or would i have to do it through the actual Hystrix implementation?

Also is there no way to do this without mocking? such as using arquillian maybe?

@cen1
Copy link

cen1 commented Apr 8, 2020

Hystrix implementation is no longer under development. Fault tolerance in general can be tested using arquillian or weld-junit4.

@cen1 cen1 closed this as completed Apr 8, 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