diff --git a/test/actions.github.com/anonymous-proxy-setup.test.sh b/test/actions.github.com/anonymous-proxy-setup.test.sh index b150df34..856b7607 100755 --- a/test/actions.github.com/anonymous-proxy-setup.test.sh +++ b/test/actions.github.com/anonymous-proxy-setup.test.sh @@ -36,11 +36,17 @@ function install_arc() { function start_squid_proxy() { echo "Starting squid-proxy" docker run -d \ + --rm \ --name squid \ --publish 3128:3128 \ ubuntu/squid:latest } +function stop_squid_proxy() { + echo "Stopping squid-proxy" + docker stop squid +} + function install_scale_set() { echo "Installing scale set ${SCALE_SET_NAMESPACE}/${SCALE_SET_NAME}" helm install "${SCALE_SET_NAME}" \ @@ -78,6 +84,7 @@ function main() { NAMESPACE="${ARC_NAMESPACE}" log_arc || failed+=("log_arc") delete_cluster + stop_squid_proxy print_results "${failed[@]}" } diff --git a/test/actions.github.com/auth-proxy-setup.test.sh b/test/actions.github.com/auth-proxy-setup.test.sh index 843d7541..ff0ad8a4 100755 --- a/test/actions.github.com/auth-proxy-setup.test.sh +++ b/test/actions.github.com/auth-proxy-setup.test.sh @@ -46,7 +46,7 @@ function start_squid_proxy() { huangtingluo/squid-proxy:latest echo "Creating scale set namespace" - kubectl create namespace "${SCALE_SET_NAMESPACE}" + kubectl create namespace "${SCALE_SET_NAMESPACE}" || true echo "Creating squid proxy secret" kubectl create secret generic proxy-auth \ diff --git a/test/actions.github.com/helper.sh b/test/actions.github.com/helper.sh index 3a216697..0d4b2b09 100644 --- a/test/actions.github.com/helper.sh +++ b/test/actions.github.com/helper.sh @@ -41,6 +41,9 @@ function create_cluster() { echo "Loading image into minikube cluster" minikube image load "${IMAGE}" + + echo "Loading runner image into minikube cluster" + minikube image load "ghcr.io/actions/actions-runner:latest" } function delete_cluster() {