2022-09-30 17:10:57 +02:00
|
|
|
// Test smb filesystem interface
|
|
|
|
package smb_test
|
|
|
|
|
|
|
|
import (
|
2025-01-14 09:59:11 +01:00
|
|
|
"path/filepath"
|
2022-09-30 17:10:57 +02:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/rclone/rclone/backend/smb"
|
|
|
|
"github.com/rclone/rclone/fstest/fstests"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestSMB:rclone",
|
|
|
|
NilObject: (*smb.Object)(nil),
|
|
|
|
})
|
|
|
|
}
|
2025-01-14 09:59:11 +01:00
|
|
|
|
|
|
|
func TestIntegration2(t *testing.T) {
|
|
|
|
krb5Dir := t.TempDir()
|
|
|
|
t.Setenv("KRB5_CONFIG", filepath.Join(krb5Dir, "krb5.conf"))
|
|
|
|
t.Setenv("KRB5CCNAME", filepath.Join(krb5Dir, "ccache"))
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestSMBKerberos:rclone",
|
|
|
|
NilObject: (*smb.Object)(nil),
|
|
|
|
})
|
|
|
|
}
|