2017-10-02 19:29:23 +00:00
|
|
|
// Test Webdav filesystem interface
|
|
|
|
package webdav_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2019-07-28 17:47:38 +00:00
|
|
|
"github.com/rclone/rclone/backend/webdav"
|
2019-10-04 15:51:07 +00:00
|
|
|
"github.com/rclone/rclone/fstest"
|
2019-07-28 17:47:38 +00:00
|
|
|
"github.com/rclone/rclone/fstest/fstests"
|
2017-10-02 19:29:23 +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{
|
2019-10-04 15:51:07 +00:00
|
|
|
RemoteName: "TestWebdavNexcloud:",
|
|
|
|
NilObject: (*webdav.Object)(nil),
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration2(t *testing.T) {
|
|
|
|
if *fstest.RemoteName != "" {
|
|
|
|
t.Skip("skipping as -remote is set")
|
|
|
|
}
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestWebdavOwncloud:",
|
|
|
|
NilObject: (*webdav.Object)(nil),
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration3(t *testing.T) {
|
|
|
|
if *fstest.RemoteName != "" {
|
|
|
|
t.Skip("skipping as -remote is set")
|
|
|
|
}
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestWebdavRclone:",
|
2018-04-07 17:48:11 +00:00
|
|
|
NilObject: (*webdav.Object)(nil),
|
|
|
|
})
|
2017-10-02 19:29:23 +00:00
|
|
|
}
|