2014-07-26 18:18:29 +02:00
|
|
|
// Test GoogleCloudStorage filesystem interface
|
2018-11-26 15:08:51 +01:00
|
|
|
|
2014-07-24 23:50:11 +02:00
|
|
|
package googlecloudstorage_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2019-07-28 19:47:38 +02:00
|
|
|
"github.com/rclone/rclone/backend/googlecloudstorage"
|
2022-09-26 09:43:40 +02:00
|
|
|
"github.com/rclone/rclone/fstest"
|
2019-07-28 19:47:38 +02:00
|
|
|
"github.com/rclone/rclone/fstest/fstests"
|
2014-07-24 23:50:11 +02:00
|
|
|
)
|
|
|
|
|
2018-04-07 19:48:11 +02: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-24 23:50:11 +02:00
|
|
|
}
|
2022-09-26 09:43:40 +02: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"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|