[#78] enable fully qualified URIs for S3 endpoints and improved error reporting when uploading or deleting files

This commit is contained in:
Gani Georgiev
2022-07-11 21:00:17 +03:00
parent 52c288d9db
commit 46399dddac
3 changed files with 29 additions and 6 deletions

View File

@@ -315,7 +315,19 @@ func TestS3ConfigValidate(t *testing.T) {
},
true,
},
// valid data
// valid data (url endpoint)
{
core.S3Config{
Enabled: true,
Endpoint: "https://localhost:8090",
Bucket: "test",
Region: "test",
AccessKey: "test",
Secret: "test",
},
false,
},
// valid data (hostname endpoint)
{
core.S3Config{
Enabled: true,