Good day!
How to test code written in Go, which decrypts payload from some API, which I can't change?
Static mock data is not actual, since there is a signature and expiration date inside.
Also have idea to write some API to retrieve fresh payload data, but writing API to test seems to be bad idea.
Can you share ideas to test method of decrypting?