mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 00:33:03 +08:00
Init testStore in first load test file.
This commit is contained in:
@@ -8,6 +8,18 @@ import (
|
|||||||
"github.com/stretchr/testify/require"
|
"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) {
|
func Test_S3_SetWithChecksum(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
key = "john"
|
key = "john"
|
||||||
|
@@ -6,18 +6,6 @@ import (
|
|||||||
"github.com/stretchr/testify/require"
|
"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_Set(t *testing.T) {
|
func Test_S3_Set(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
key = "john"
|
key = "john"
|
||||||
|
Reference in New Issue
Block a user