github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/backend/webdav/webdav_test.go (about) 1 // Test Webdav filesystem interface 2 package webdav_test 3 4 import ( 5 "testing" 6 7 "github.com/rclone/rclone/backend/webdav" 8 "github.com/rclone/rclone/fstest" 9 "github.com/rclone/rclone/fstest/fstests" 10 ) 11 12 // TestIntegration runs integration tests against the remote 13 func TestIntegration(t *testing.T) { 14 fstests.Run(t, &fstests.Opt{ 15 RemoteName: "TestWebdavNexcloud:", 16 NilObject: (*webdav.Object)(nil), 17 }) 18 } 19 20 // TestIntegration runs integration tests against the remote 21 func TestIntegration2(t *testing.T) { 22 if *fstest.RemoteName != "" { 23 t.Skip("skipping as -remote is set") 24 } 25 fstests.Run(t, &fstests.Opt{ 26 RemoteName: "TestWebdavOwncloud:", 27 NilObject: (*webdav.Object)(nil), 28 }) 29 } 30 31 // TestIntegration runs integration tests against the remote 32 func TestIntegration3(t *testing.T) { 33 if *fstest.RemoteName != "" { 34 t.Skip("skipping as -remote is set") 35 } 36 fstests.Run(t, &fstests.Opt{ 37 RemoteName: "TestWebdavRclone:", 38 NilObject: (*webdav.Object)(nil), 39 }) 40 }