mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
Added test for the Conn method, changed azurite credentials to default
Signed-off-by: kosar <bogdan.kosarevskyi@gmail.com>
This commit is contained in:
@@ -8,12 +8,12 @@ import (
|
||||
|
||||
func newStore() *Storage {
|
||||
return New(Config{
|
||||
Account: "azurite",
|
||||
Account: "devstoreaccount1",
|
||||
Container: "test",
|
||||
Endpoint: "http://127.0.0.1:10000/azurite",
|
||||
Endpoint: "http://127.0.0.1:10000/devstoreaccount1",
|
||||
Credentials: Credentials{
|
||||
Account: "azurite",
|
||||
Key: "YXp1cml0ZWtleQo=",
|
||||
Account: "devstoreaccount1",
|
||||
Key: "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==",
|
||||
},
|
||||
})
|
||||
}
|
||||
@@ -126,6 +126,11 @@ func Test_AzureBlob_Reset(t *testing.T) {
|
||||
utils.AssertEqual(t, true, len(result) == 0)
|
||||
}
|
||||
|
||||
func Test_S3_Conn(t *testing.T) {
|
||||
testStore := newStore()
|
||||
utils.AssertEqual(t, true, testStore.Conn() != nil)
|
||||
}
|
||||
|
||||
func Test_AzureBlob_Close(t *testing.T) {
|
||||
testStore := newStore()
|
||||
utils.AssertEqual(t, nil, testStore.Close())
|
||||
|
Reference in New Issue
Block a user