Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3: New methods: CreateBucket, DeleteBucket, SetWithChecksum. #978

Merged
merged 10 commits into from
Sep 7, 2023
Merged
Prev Previous commit
Next Next commit
Init testStore in init().
  • Loading branch information
iredmail committed Sep 5, 2023
commit ae41d2f5c16155cb083f48071d9a49a0ec6434ff
18 changes: 18 additions & 0 deletions s3/init_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package s3

var testStore *Storage

func init() {
testStore = New(
Config{
Bucket: "testbucket",
Endpoint: "http://127.0.0.1:9000/",
Region: "us-east-1",
Credentials: Credentials{
AccessKey: "minioadmin",
SecretAccessKey: "minioadmin",
},
},
)

}
12 changes: 0 additions & 12 deletions s3/s3_methods_test.go
Original file line number Diff line number Diff line change
@@ -8,18 +8,6 @@ import (
"github.com/stretchr/testify/require"
)

var testStore = New(
Config{
Bucket: "testbucket",
Endpoint: "http://127.0.0.1:9000/",
Region: "us-east-1",
Credentials: Credentials{
AccessKey: "minioadmin",
SecretAccessKey: "minioadmin",
},
},
)

func Test_S3_SetWithChecksum(t *testing.T) {
var (
key = "john"