Hi all. Contract testing newbie here. Hoping someo...
# pact-net
j
Hi all. Contract testing newbie here. Hoping someone can help me with starting pact. My company is using aws resources. Is there an example i can follow or tutorial i can watch to start pact? Most of the tutorials i’ve watched spin up local environment with ports. Whereas with my current situation we deploy directly to aws which we can be accessed by api endpoints. Im mainly interested with sqs, sns and lambda testing (for now at least). Any help would be appreciative. Thanks in advance!
👋 1
m
Welcome!
Just because you deploy to AWS doesn’t mean you should wait until you deploy to AWS to test it
You can definitely test contracts for aws sernices such as lambda, kinesis, sns etc. locally with good coding practices
See a few examples over here 👇 (howtoexamples)
s
f
quick tip, try to check if you can use localstack to emulate aws
👍 1
so you can run tests locally
with this you can mock the majority os aws services, like s3 buckets, dynamodb, kinesis, etc..
👍 1
m
Except when you can't, because AWS has a lot of services (e.g. IOT support). But I do use it for common items like dynamo
j
Thanks everyone. I will check out local stack and the links you guys provided. Appreciate the help! Excited to play with this bad boy 😄
🙌 1