I have a function split into 3 microservices running using kubernetes. Based on the input of the first one, the second one performs the operation and automatically creates a kubernette to handle the final result.
I want to make a test to check the whole process, but I don't know how to do it. I think this might break some testing principles...
Has anyone done something similar and have some advice?
greeting.
P粉9389363042024-02-05 10:28:42
You should test each microservice independently without actually calling each other. If you want to test a second microservice, you should simulate the response of the first microservice and then verify that your service performs the expected actions based on the simulated response