From a7c3ddb482f3adbe11897f022ee5be18c848d5d3 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 28 Jun 2025 10:56:41 +0100 Subject: [PATCH] test_all: make SMB with Kerberos integration tests run properly --- fstest/test_all/config.yaml | 5 +++++ fstest/testserver/init.d/TestSMBKerberos | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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} - <