Adding automated tests

Automated tests for the circuit breaker have been added to the test-em-all.bash test script in a separate function, testCircuitBreaker():

...function testCircuitBreaker() {    echo "Start Circuit Breaker tests!"    ...}...testCircuitBreakerecho "End, all tests OK:" `date`

To be able to perform some of the required verifications, we need to have access to the actuator endpoints of the product-composite microservice, which are not exposed through the edge server. Therefore, we will access the actuator endpoints through a separate Docker container that will be attached to the internal network that was set up by Docker Compose for our microservices.

By default, the name of the network is based on the name of the folder where ...

Get Hands-On Microservices with Spring Boot and Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.