()
| 15026 | } |
| 15027 | |
| 15028 | func main() { |
| 15029 | slog.SetDefault(slog.New(slog.NewJSONHandler( |
| 15030 | os.Stdout, |
| 15031 | &slog.HandlerOptions{ |
| 15032 | Level: slog.LevelInfo, |
| 15033 | ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr { |
| 15034 | if a.Key == slog.MessageKey || a.Value.String() == "" { |
| 15035 | return slog.Attr{} |
| 15036 | } |
| 15037 | |
| 15038 | return a |
| 15039 | }, |
| 15040 | }, |
| 15041 | ))) |
| 15042 | |
| 15043 | tls := mustParseBool(os.Getenv(enableHTTPS)) |
| 15044 | kms := mustParseBool(os.Getenv(enableKMS)) |
| 15045 | if os.Getenv(enableKMS) == "" { |
| 15046 | // Default to KMS tests. |
| 15047 | kms = true |
| 15048 | } |
| 15049 | |
| 15050 | // execute tests |
| 15051 | if isFullMode() { |
| 15052 | testPutObjectWithChecksums() |
| 15053 | testPutObjectWithTrailingChecksums() |
| 15054 | testPutMultipartObjectWithChecksums() |
| 15055 | testCopyObjectWithChecksums() |
| 15056 | testReplaceObjectWithChecksums() |
| 15057 | testCorsSetGetDelete() |
| 15058 | testCors() |
| 15059 | testListMultipartUpload() |
| 15060 | testGetObjectAttributes() |
| 15061 | testGetObjectAttributesErrorCases() |
| 15062 | testMakeBucketErrorV2() |
| 15063 | testGetObjectClosedTwiceV2() |
| 15064 | testFPutObjectV2() |
| 15065 | testMakeBucketRegionsV2() |
| 15066 | testGetObjectReadSeekFunctionalV2() |
| 15067 | testGetObjectReadAtFunctionalV2() |
| 15068 | testGetObjectRanges() |
| 15069 | testCopyObjectV2() |
| 15070 | testFunctionalV2() |
| 15071 | testComposeObjectErrorCasesV2() |
| 15072 | testCompose10KSourcesV2() |
| 15073 | testUserMetadataCopyingV2() |
| 15074 | testPutObject0ByteV2() |
| 15075 | testPutObjectMetadataNonUSASCIIV2() |
| 15076 | testPutObjectNoLengthV2() |
| 15077 | testPutObjectsUnknownV2() |
| 15078 | testPutObjectWithAutoChecksums() |
| 15079 | testGetObjectContextV2() |
| 15080 | testFPutObjectContextV2() |
| 15081 | testFGetObjectContextV2() |
| 15082 | testPutObjectContextV2() |
| 15083 | testPutObjectWithVersioning() |
| 15084 | testMakeBucketError() |
| 15085 | testMakeBucketRegions() |
nothing calls this directly
no test coverage detected