andreschaffer / microservices-testing-examples

Microservices Testing in practice.
MIT License
112 stars 37 forks source link

is rest-assured suitable for microservices testing ? #4

Closed vikramvi closed 6 years ago

vikramvi commented 6 years ago

Hi,

wrt your article https://labs.spotify.com/2018/01/11/testing-of-microservices/

can you please clarify if rest-assured can be used in this case ?

I'm using this library to test end points / microservices since last few years and would like to know how it fits in your scenario ?

Thanks & Regards, Vikram

andreschaffer commented 6 years ago

Hi Vikram, Absolutely. You can use rest-assured to test / verify the behaviour of your service. To make sure that you don't accidentally break the contracts between services, you can then use a 'consumer-driven contract based testing' tool (e.g. Pact).

vikramvi commented 6 years ago

Thanks for answer.

https://docs.pact.io/ is the tool you're talking about ?

andreschaffer commented 6 years ago

Exactly! There are others also: https://cloud.spring.io/spring-cloud-contract/ and http://thoughtworks.github.io/pacto/

vikramvi commented 6 years ago

Thanks for info