summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-01-07 13:16:48 +0100
committerGitHub <noreply@github.com>2025-01-07 14:16:48 +0200
commitfb651c09f07b8aba45f2d31cfb3851e9e9c82ef0 (patch)
tree937397756e74d082500aedb314d2c9d3050def56 /debian
parent8b517e296cfde2c2366f41fa23e51a3b4aa15db9 (diff)
downloadvyos-1x-fb651c09f07b8aba45f2d31cfb3851e9e9c82ef0.tar.gz
vyos-1x-fb651c09f07b8aba45f2d31cfb3851e9e9c82ef0.zip
smoketest: T7023: add tac_plus container to live validate login (#4285)
* smoketest: T7023: unify container image loading * smoketest: T7023: add tac_plus container to live validate login TACACS is pretty sensible to its configuration. Instead of manual testing, extend the smoketest platform to ship a tac_plus container and perform logins against a locally running tac_plus server in a container. The login username/password and TACACS shared secret is generated randomly on the fly for every testcase.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/vyos-1x-smoketest.postinst15
1 files changed, 10 insertions, 5 deletions
diff --git a/debian/vyos-1x-smoketest.postinst b/debian/vyos-1x-smoketest.postinst
index 18612804c..57149af82 100755
--- a/debian/vyos-1x-smoketest.postinst
+++ b/debian/vyos-1x-smoketest.postinst
@@ -1,10 +1,15 @@
#!/bin/sh -e
BUSYBOX_TAG="docker.io/library/busybox:stable"
-OUTPUT_PATH="/usr/share/vyos/busybox-stable.tar"
-
-if [[ -f $OUTPUT_PATH ]]; then
- rm -f $OUTPUT_PATH
+BUSYBOX_PATH="/usr/share/vyos/busybox-stable.tar"
+if [[ -f $BUSYBOX_PATH ]]; then
+ rm -f $BUSYBOX_PATH
fi
+skopeo copy --additional-tag "$BUSYBOX_TAG" "docker://$BUSYBOX_TAG" "docker-archive:/$BUSYBOX_PATH"
-skopeo copy --additional-tag "$BUSYBOX_TAG" "docker://$BUSYBOX_TAG" "docker-archive:/$OUTPUT_PATH"
+TACPLUS_TAG="docker.io/lfkeitel/tacacs_plus:alpine"
+TACPLUS_PATH="/usr/share/vyos/tacplus-alpine.tar"
+if [[ -f $TACPLUS_PATH ]]; then
+ rm -f $TACPLUS_PATH
+fi
+skopeo copy --additional-tag "$TACPLUS_TAG" "docker://$TACPLUS_TAG" "docker-archive:/$TACPLUS_PATH"