Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

test_all: make SMB with Kerberos integration tests run properly

Nick Craig-Wooda7c3ddb482f3
diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml
index 1c1fc3262..e6e3f056f 100644
--- a/fstest/test_all/config.yaml
+++ b/fstest/test_all/config.yaml
@@ -591,6 +591,11 @@ backends:
- backend: "smb"
remote: "TestSMBKerberos:rclone"
fastlist: false
+ env:
+ - KRB5_CONFIG=/tmp/rclone_krb5/krb5.conf
+ - KRB5CCNAME=/tmp/rclone_krb5/ccache
+ ignoretests:
+ - cmd/gitannex
- backend: "storj"
remote: "TestStorj:"
fastlist: true
diff --git a/fstest/testserver/init.d/TestSMBKerberos b/fstest/testserver/init.d/TestSMBKerberos
index 3fa7e120c..ddf0d87b3 100755
--- a/fstest/testserver/init.d/TestSMBKerberos
+++ b/fstest/testserver/init.d/TestSMBKerberos
@@ -10,10 +10,17 @@ REALM=RCLONE.LOCAL
SMB_PORT=28633
KRB5_PORT=28634
+# KRB5_CONFIG and KRB5CCNAME should be set by the caller but default
+# them here for the integration tests
+export TEMP_DIR=/tmp/rclone_krb5
+mkdir -p "${TEMP_DIR}"
+export KRB5_CONFIG=${KRB5_CONFIG:-${TEMP_DIR}/krb5.conf}
+export KRB5CCNAME=${KRB5CCNAME:-${TEMP_DIR}/ccache}
+
. $(dirname "$0")/docker.bash
start() {
- docker build -t ${IMAGE} - <<EOF
+ docker build -t ${IMAGE} --load - <<EOF
FROM alpine:3.21
RUN apk add --no-cache samba-dc
RUN rm -rf /etc/samba/smb.conf /var/lib/samba \