Add automated UAT smoke tests
This commit is contained in:
@@ -73,4 +73,15 @@ kubectl get --raw "/api/v1/namespaces/${KUBE_NAMESPACE}/services/step3-api:http/
|
||||
kubectl rollout status deployment/step3-web -n "${KUBE_NAMESPACE}" --timeout=240s
|
||||
kubectl get --raw "/api/v1/namespaces/${KUBE_NAMESPACE}/services/step3-web:http/proxy/healthz" >/dev/null
|
||||
|
||||
if [ "${DEPLOYMENT_ENVIRONMENT}" = "uat" ]; then
|
||||
# The images are already imported on every Kubernetes node. Reclaim runner
|
||||
# space before pulling the Playwright browser image.
|
||||
docker image rm "${API_IMAGE}" "${WEB_IMAGE}" "${TEST_IMAGE}" 2>/dev/null || true
|
||||
docker builder prune -af >/dev/null || true
|
||||
UAT_API_ORIGIN="${PUBLIC_API_ORIGIN}" \
|
||||
UAT_WEB_ORIGIN="${PUBLIC_WEB_ORIGIN:-https://ustep3.ranaze.com}" \
|
||||
EXPECTED_REVISION="${BUILD_TAG}" \
|
||||
bash .gitea/scripts/run-uat-smoke.sh
|
||||
fi
|
||||
|
||||
echo "Deployed ${DEPLOYMENT_ENVIRONMENT} revision ${BUILD_TAG}."
|
||||
|
||||
Reference in New Issue
Block a user