Commit 02300d8e authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Add CI test

Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit b43dd774)
parent f4fa2d88
......@@ -29,6 +29,9 @@ echo "Did test-run-hardened $?"
. ./scripts/test-run-cacerts
echo "Did test-run-cacerts $?"
. ./scripts/test-run-bootstraptoken
echo "Did test-run-bootstraptoken $?"
. ./scripts/test-run-upgrade
echo "Did test-run-upgrade $?"
......
#!/bin/bash
all_services=(
coredns
local-path-provisioner
metrics-server
traefik
)
export NUM_SERVERS=1
export NUM_AGENTS=1
export WAIT_SERVICES="${all_services[@]}"
agent-pre-hook() {
local server=$(cat $TEST_DIR/servers/1/metadata/name)
docker exec $server k3s token create --ttl=5m --description=Test > $TEST_DIR/metadata/secret
}
export -f agent-pre-hook
start-test() {
echo "Cluster is up with ephemeral join token"
}
export -f start-test
# --- create a basic cluster with an agent joined using the ephemeral token and check for functionality
LABEL=BOOTSTRAP-TOKEN run-test
cleanup-test-env
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment