From fb651c09f07b8aba45f2d31cfb3851e9e9c82ef0 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Tue, 7 Jan 2025 13:16:48 +0100 Subject: 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. --- debian/vyos-1x-smoketest.postinst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'debian') 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" -- cgit v1.2.3