-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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.
- Loading branch information
Showing
3 changed files
with
178 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.