mirror of
https://github.com/rclone/rclone.git
synced 2024-12-27 09:28:58 +01:00
9808a53416
Add new option option "sharepoint-ntlm" for the vendor setting. Use it when your hosted Sharepoint is not tied to the OneDrive accounts and uses NTLM authentication. Also add documentation and integration test. Fixes: #2171
52 lines
1.2 KiB
Go
52 lines
1.2 KiB
Go
// Test Webdav filesystem interface
|
|
package webdav_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/rclone/rclone/backend/webdav"
|
|
"github.com/rclone/rclone/fstest"
|
|
"github.com/rclone/rclone/fstest/fstests"
|
|
)
|
|
|
|
// TestIntegration runs integration tests against the remote
|
|
func TestIntegration(t *testing.T) {
|
|
fstests.Run(t, &fstests.Opt{
|
|
RemoteName: "TestWebdavNextcloud:",
|
|
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:",
|
|
NilObject: (*webdav.Object)(nil),
|
|
})
|
|
}
|
|
|
|
// TestIntegration runs integration tests against the remote
|
|
func TestIntegration4(t *testing.T) {
|
|
if *fstest.RemoteName != "" {
|
|
t.Skip("skipping as -remote is set")
|
|
}
|
|
fstests.Run(t, &fstests.Opt{
|
|
RemoteName: "TestWebdavNTLM:",
|
|
NilObject: (*webdav.Object)(nil),
|
|
})
|
|
}
|