Home  >  Q&A  >  body text

How to test functional splitting in microservices

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粉517814372P粉517814372281 days ago504

reply all(1)I'll reply

  • P粉938936304

    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

    reply
    0
  • Cancelreply