freckle / stackctl

Manage CloudFormation Stacks through specifications
MIT License
14 stars 1 forks source link

Add tests using Control.Monad.AWS.ViaMock #68

Closed pbrisbin closed 1 year ago

pbrisbin commented 1 year ago

Add basics of aws test machinery

541d69f

Use it to test a simple AWS-calling function.

Add spec on Lambda invocations

72ba036

This shows using multiple matchers on the same type of request. It also motivated a useful MonadFail instance for pattern matches within TestAppT.

Test awsCloudFormationDeleteChangeSets

5cf7696

This exercises matching different types of requests, including paginated requests, in the same test. It also shows asserting what messages were logged.