1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-09 12:03:20 +00:00

test_all: make SMB with Kerberos integration tests run properly

This commit is contained in:
Nick Craig-Wood
2025-06-28 10:56:41 +01:00
parent 7a1813c531
commit a7c3ddb482
2 changed files with 13 additions and 1 deletions

View File

@@ -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

View File

@@ -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 \