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