Fork me on GitHub
#aws
<
2020-06-16
>
souenzzo13:06:33

there is some lib/docs about how to reify / mock aws clients?

dchelimsky16:06:21

Do you mean in aws-api?

dchelimsky16:06:15

Assuming you do, there is no specific support for doing that, so no docs. What are you trying to do?

souenzzo16:06:09

I started with (aws/invoke (reify .... {:successId 42}) {:op :DoThing}) ;;=> {:successId 42} and I see that it's possible to mock out everything but i ran out of time I will try again this night. tnks 🙂

dchelimsky19:06:35

I still don't understand what you're trying to do. Why not just use a client as/is? Is this for testing?

souenzzo19:06:24

Yep, for "offline" testing

dchelimsky21:06:54

Why not just use with-redefs?

dchelimsky21:06:27

I'm assuming that you're reifying ClientSPI, but that's internal and subject to (read: likely to) change. Until there's a documented seam for what you're doing you'll be safer with with-redefs (unless you're tests are concerned w/ thread safety, in which case 🤷 ).