Manual tests of the new APIs and the persistence layer
Now, we have everything in place to test the microservices together. We will build new Docker images and start up the system landscape using Docker Compose based on the Docker images. Next, we will use the Swagger UI viewer to run some manual tests. Finally, we will use the database CLI tools to see what data was inserted into the databases.
Build and start the system landscape with the following command:
cd $BOOK_HOME/Chapter06
./gradlew build && docker-compose build && docker-compose up
Open Swagger UI in a web browser, http://localhost:8080/openapi/swagger-ui.html
, and perform the following steps on the web page:
- Click on the ProductComposite service and the POST method to expand them.
- Click on the Try it out button and go down to the body field.
- Replace the default value,
0
, of theproductId
field with123456
. - Scroll down to the Execute button and click on it. ...