github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/backend/googlecloudstorage/googlecloudstorage_test.go (about) 1 // Test GoogleCloudStorage filesystem interface 2 3 package googlecloudstorage_test 4 5 import ( 6 "testing" 7 8 "github.com/rclone/rclone/backend/googlecloudstorage" 9 "github.com/rclone/rclone/fstest" 10 "github.com/rclone/rclone/fstest/fstests" 11 ) 12 13 // TestIntegration runs integration tests against the remote 14 func TestIntegration(t *testing.T) { 15 fstests.Run(t, &fstests.Opt{ 16 RemoteName: "TestGoogleCloudStorage:", 17 NilObject: (*googlecloudstorage.Object)(nil), 18 }) 19 } 20 21 func TestIntegration2(t *testing.T) { 22 if *fstest.RemoteName != "" { 23 t.Skip("Skipping as -remote set") 24 } 25 name := "TestGoogleCloudStorage" 26 fstests.Run(t, &fstests.Opt{ 27 RemoteName: name + ":", 28 NilObject: (*googlecloudstorage.Object)(nil), 29 ExtraConfig: []fstests.ExtraConfigItem{ 30 {Name: name, Key: "directory_markers", Value: "true"}, 31 }, 32 }) 33 }