2014-07-27 00:18:29 +08:00
|
|
|
// Test GoogleCloudStorage filesystem interface
|
2018-11-26 22:08:51 +08:00
|
|
|
|
2014-07-25 05:50:11 +08:00
|
|
|
package googlecloudstorage_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2019-07-29 01:47:38 +08:00
|
|
|
"github.com/rclone/rclone/backend/googlecloudstorage"
|
2022-09-26 15:43:40 +08:00
|
|
|
"github.com/rclone/rclone/fstest"
|
2019-07-29 01:47:38 +08:00
|
|
|
"github.com/rclone/rclone/fstest/fstests"
|
2014-07-25 05:50:11 +08:00
|
|
|
)
|
|
|
|
|
2018-04-08 01:48:11 +08:00
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestGoogleCloudStorage:",
|
|
|
|
NilObject: (*googlecloudstorage.Object)(nil),
|
|
|
|
})
|
2014-07-25 05:50:11 +08:00
|
|
|
}
|
2022-09-26 15:43:40 +08:00
|
|
|
|
|
|
|
func TestIntegration2(t *testing.T) {
|
|
|
|
if *fstest.RemoteName != "" {
|
|
|
|
t.Skip("Skipping as -remote set")
|
|
|
|
}
|
|
|
|
name := "TestGoogleCloudStorage"
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: name + ":",
|
|
|
|
NilObject: (*googlecloudstorage.Object)(nil),
|
|
|
|
ExtraConfig: []fstests.ExtraConfigItem{
|
|
|
|
{Name: name, Key: "directory_markers", Value: "true"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|