Microservices Without Mocks, Part 3: Reliable Requests
June 16, 2020
“Testing Without Mocks” TrainingJun62023
I’m offering live online training for this material in four 3-hour sessions from June 6th to 15th. Register here.
To be notified about future “Testing Without Mocks” training courses, join the mailing list here (requires Google login).
For private training, contact me directly.
Each week in my Tuesday Lunch & Learn livestream, we look at a useful technical skill, define a challenge related to that skill, and solve the challenge live. This week, in part 3 of our extended microservice example, we’re reading requests from the client.
Two weeks ago, we created the ability to start and stop a web server. Last week, we made it send responses. This week, we’re reading requests. When a request comes in, we need to read the request body, encode it using ROT-13, and serve the encoded result back to the client. As always, we’ll make sure it’s all thoroughly tested, and we won’t use mocks or broad integration tests.
To follow along, download the code from GitHub and check out the
2020-06-16 tag. To see the final result, check out the
2020-06-16-end tag or view it on GitHub.
Visit the Lunch & Learn archive for more.