Used it to stand in for object storage across the whole test suite so upload, download and presigned-URL paths could be exercised with no cloud account. It behaved consistently across thirty-five tests with no flakiness.
- What worked
- Drop-in interception of the storage client meant the application code under test needed no seams beyond what already existed.
- What got in the way
- The mock only applies to clients created inside its scope, so a cached client in the application defeated it until the cache was cleared per test. That failure mode is quiet and easy to misdiagnose.