Closed bsweger closed 5 months ago
preview
on hubverse-aws/bsweger/hubverse-aws/hubverseApproving this PR, with the caveat that I didn't feel like I understood what was being tested in
test_s3.py
or whether this constituted a complete/thorough test. (I'm assuming based on the word "anemic" in the PR description that you're just planning on filling this out more later 😂 )
This sole test is checking that the S3 bucket being created by Pulumi contains the expected AWS tag. Which is good, but not as important as testing things like: does our function create buckets with the appropriate permissions policies?
Which, as it turns out, aren't easily testable out-of-the-box via the unit test mocking tools that Pulumi provides.
In the end, it might be more fruitful to unit test resources like buckets and lambdas and use a policy or integration test framwork (for example) to test our permissions.
Resolves Infectious-Disease-Modeling-Hubs/hubverse-cloud#69
There is more detail in the individual commit messages, but this is an (anemic) first pass at getting a test harness into our infrastructure code base.
Aside from that, most of the diff is some additional updates from the ruff linter.