AWS S3 local server for integration testing

后端 未结 7 586
天命终不由人
天命终不由人 2020-12-30 23:29

I have some code that uploads and downloads files using AWS S3 (using the Java AWS SDK). I want to be able to write some tests for it, I was wondering if anyone has any good

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-30 23:51

    I created different buckets to use for the different use cases. For example: my-dev-bucket and my-prod-bucket. I don't know if this meets your use criteria but you might want to consider it. The side benefit is it makes your pre production and production code follow the exact same flows.

提交回复
热议问题