chore: switch to AWS SDK v2

This commit is contained in:
2023-06-28 06:55:56 +02:00
parent d8bc211683
commit 96abde4148
5 changed files with 90 additions and 56 deletions
+2 -2
View File
@@ -20,9 +20,9 @@ func TestMainFunc_Success(t *testing.T) {
func TestMainFunc_Invalid_AWS_Config(t *testing.T) {
os.Args = []string{"s3uploader", "--port", "7777", "--bucket", "test-bucket-somewhere", "--return-url", "https://example.org"}
_ = os.Setenv("AWS_STS_REGIONAL_ENDPOINTS", "unknown_value")
_ = os.Setenv("AWS_MAX_ATTEMPTS", "invalid")
defer func() {
_ = os.Unsetenv("AWS_STS_REGIONAL_ENDPOINTS")
_ = os.Unsetenv("AWS_MAX_ATTEMPTS")
}()
main()
}