mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 15:21:08 +01:00
2fd4c45b34
Fixes #7800
29 lines
668 B
Go
29 lines
668 B
Go
// Test smb filesystem interface
|
|
package smb_test
|
|
|
|
import (
|
|
"path/filepath"
|
|
"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),
|
|
})
|
|
}
|
|
|
|
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),
|
|
})
|
|
}
|