Browse Source
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
expand-the-s3-PutObject-permission-to-the-multipart-permissions
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
expand-the-s3-PutObject-permission-to-the-multipart-permissions
7 changed files with 126 additions and 55 deletions
-
53weed/remote_storage/azure/azure_storage_client.go
-
12weed/remote_storage/azure/azure_storage_client_test.go
-
39weed/remote_storage/gcs/gcs_storage_client.go
-
17weed/remote_storage/gcs/gcs_storage_client_test.go
-
5weed/remote_storage/remote_storage.go
-
45weed/remote_storage/s3/s3_storage_client.go
-
10weed/remote_storage/s3/s3_storage_client_test.go
@ -0,0 +1,17 @@ |
|||||
|
package gcs |
||||
|
|
||||
|
import ( |
||||
|
"testing" |
||||
|
|
||||
|
"github.com/seaweedfs/seaweedfs/weed/remote_storage" |
||||
|
"github.com/stretchr/testify/require" |
||||
|
) |
||||
|
|
||||
|
func TestGCSRemoteStorageClientImplementsInterface(t *testing.T) { |
||||
|
var _ remote_storage.RemoteStorageClient = (*gcsRemoteStorageClient)(nil) |
||||
|
} |
||||
|
|
||||
|
func TestGCSErrRemoteObjectNotFoundIsAccessible(t *testing.T) { |
||||
|
require.Error(t, remote_storage.ErrRemoteObjectNotFound) |
||||
|
require.Equal(t, "remote object not found", remote_storage.ErrRemoteObjectNotFound.Error()) |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue