Running with gitlab-runner 14.0.0 (3b6f852e)  on gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneww2hz ipHjL9gk section_start:1625082065:resolve_secrets Resolving secrets section_end:1625082065:resolve_secrets section_start:1625082065:prepare_executor Preparing the "kubernetes" executor Using Kubernetes namespace: gitlab-runners Using Kubernetes executor with image registry.dso.mil/platform-one/big-bang/pipeline-templates/pipeline-templates/k3d-builder:0.0.5 ... Using attach strategy to execute scripts... section_end:1625082065:prepare_executor section_start:1625082065:prepare_script Preparing environment Waiting for pod gitlab-runners/runner-iphjl9gk-project-2324-concurrent-0dc852 to be running, status is Pending Running on runner-iphjl9gk-project-2324-concurrent-0dc852 via gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneww2hz... section_end:1625082068:prepare_script section_start:1625082068:get_sources Getting source from Git repository Fetching changes with git depth set to 50... Initialized empty Git repository in /builds/ipHjL9gk/0/platform-one/big-bang/apps/security-tools/keycloak/.git/ Created fresh repository. Checking out 72702c16 as refs/merge-requests/31/head... Skipping Git submodules setup section_end:1625082070:get_sources section_start:1625082070:step_script Executing "step_script" stage of the job script $ if [ -z ${PIPELINE_REPO_BRANCH} ]; then # collapsed multi-line command $ git clone -b ${PIPELINE_REPO_BRANCH} ${PIPELINE_REPO} ${PIPELINE_REPO_DESTINATION} Cloning into '../pipeline-repo'... $ source ${WAIT_PATH} $ docker network create ${CI_JOB_ID} --driver=bridge -o "com.docker.network.driver.mtu"="1450" 720a450e686da5b7cd0cae0a71a31b9aab12d3c607d8f80de6817c552cf089a4 $ k3d cluster create ${CI_JOB_ID} --config ${K3D_CONFIG_PATH} --network ${CI_JOB_ID} INFO[0000] Using config file ../pipeline-repo/jobs/k3d-ci/config.yaml INFO[0000] Prep: Network INFO[0000] Network with name '4486272' already exists with ID '720a450e686da5b7cd0cae0a71a31b9aab12d3c607d8f80de6817c552cf089a4' INFO[0000] Created volume 'k3d-4486272-images' INFO[0001] Creating node 'k3d-4486272-server-0' INFO[0002] Pulling image 'docker.io/rancher/k3s:v1.20.4-k3s1' INFO[0004] Creating LoadBalancer 'k3d-4486272-serverlb' INFO[0005] Pulling image 'docker.io/rancher/k3d-proxy:v4.3.0' INFO[0007] Starting cluster '4486272' INFO[0007] Starting servers... INFO[0007] Starting Node 'k3d-4486272-server-0' INFO[0012] Starting agents... INFO[0012] Starting helpers... INFO[0012] Starting Node 'k3d-4486272-serverlb' INFO[0013] (Optional) Trying to get IP of the docker host and inject it into the cluster as 'host.k3d.internal' for easy access INFO[0016] Successfully added host record to /etc/hosts in 2/2 nodes and to the CoreDNS ConfigMap INFO[0016] Cluster '4486272' created successfully! INFO[0016] --kubeconfig-update-default=false --> sets --kubeconfig-switch-context=false INFO[0016] You can now use it like this: kubectl config use-context k3d-4486272 kubectl cluster-info $ until kubectl get deployment coredns -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e ''; do sleep 1s; done 1 $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command namespace/keycloak created secret/private-registry created secret/private-registry-mil created $ if [[ "${CI_PROJECT_NAME}" != *"istio"* ]]; then # collapsed multi-line command - Processing resources for Istio core. ✔ Istio core installed - Processing resources for Istiod. - Processing resources for Istiod. Waiting for Deployment/istio-system/istiod ✔ Istiod installed - Processing resources for Ingress gateways. - Processing resources for Ingress gateways. Waiting for Deployment/istio-system/istio-ingressgat... ✔ Ingress gateways installed - Pruning removed resources ✔ Installation completenamespace/istio-system labeled $ if [[ "${PACKAGE_NAMESPACE}" != "istio-operator" ]]; then # collapsed multi-line command Generating a RSA private key .......................+++++ .......................................................................+++++ writing new private key to 'tls.key' ----- secret/wildcard-cert created $ if [ -f "tests/main-test-gateway.yaml" ]; then # collapsed multi-line command $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ sleep 10 $ kubectl wait --for=condition=established --timeout 60s -A crd --all > /dev/null $ if [ -f tests/dependencies.yaml ]; then # collapsed multi-line command $ wait_sts $ wait_daemonset $ kubectl wait --for=condition=available --timeout 600s -A deployment --all > /dev/null $ kubectl wait --for=condition=ready --timeout 600s -A pods --all --field-selector status.phase=Running > /dev/null $ echo "Package install" Package install $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command $ if [ $(ls -1 tests/test-values.y*ml 2>/dev/null | wc -l) -gt 0 ]; then # collapsed multi-line command Helm installing keycloak/chart into keycloak namespace using keycloak/tests/test-values.yaml for values NAME: keycloak LAST DEPLOYED: Wed Jun 30 19:42:17 2021 NAMESPACE: keycloak STATUS: deployed REVISION: 1 NOTES: *********************************************************************** * * * Keycloak Helm Chart by codecentric AG * * * *********************************************************************** Keycloak was installed with a Service of type ClusterIP Create a port-forwarding with the following commands: export POD_NAME=$(kubectl get pods --namespace keycloak -l "app.kubernetes.io/name=keycloak,app.kubernetes.io/instance=keycloak" -o name) echo "Visit http://127.0.0.1:8080 to use your application" kubectl --namespace keycloak port-forward "$POD_NAME" 8080 $ sleep 10 $ kubectl wait --for=condition=established --timeout 60s -A crd --all > /dev/null $ if [ -f tests/wait.sh ]; then # collapsed multi-line command $ wait_sts $ wait_daemonset $ kubectl wait --for=condition=available --timeout 600s -A deployment --all > /dev/null $ kubectl wait --for=condition=ready --timeout 600s -A pods --all --field-selector status.phase=Running > /dev/null $ echo "Package tests" Package tests $ if [ ! -z $(kubectl get services -n istio-system istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}' &> /dev/null) ] && [ ! -z $(kubectl get vs -A -o jsonpath='{.items[0].spec.hosts[0]}' &> /dev/null) ]; then # collapsed multi-line command $ if [ -f "tests/cypress.json" ]; then # collapsed multi-line command $ if [ -d "chart/templates/tests" ]; then # collapsed multi-line command NAME: keycloak LAST DEPLOYED: Wed Jun 30 19:42:17 2021 NAMESPACE: keycloak STATUS: deployed REVISION: 1 TEST SUITE: keycloak-cypress-sa Last Started: Wed Jun 30 19:44:25 2021 Last Completed: Wed Jun 30 19:44:25 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-config Last Started: Wed Jun 30 19:44:25 2021 Last Completed: Wed Jun 30 19:44:25 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-role Last Started: Wed Jun 30 19:44:25 2021 Last Completed: Wed Jun 30 19:44:25 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-rolebinding Last Started: Wed Jun 30 19:44:25 2021 Last Completed: Wed Jun 30 19:44:25 2021 Phase: Succeeded TEST SUITE: keycloak-cypress-test Last Started: Wed Jun 30 19:44:25 2021 Last Completed: Wed Jun 30 19:45:02 2021 Phase: Succeeded NOTES: *********************************************************************** * * * Keycloak Helm Chart by codecentric AG * * * *********************************************************************** Keycloak was installed with a Service of type ClusterIP Create a port-forwarding with the following commands: export POD_NAME=$(kubectl get pods --namespace keycloak -l "app.kubernetes.io/name=keycloak,app.kubernetes.io/instance=keycloak" -o name) echo "Visit http://127.0.0.1:8080 to use your application" kubectl --namespace keycloak port-forward "$POD_NAME" 8080 ***** Start Helm Test Logs ***** ====================================================================================================  (Run Starting)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Cypress: 5.0.0 │  │ Browser: Chrome 83 (headless) │  │ Specs: 1 found (keycloak-health.spec.js) │  └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: keycloak-health.spec.js (1 of 1) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db   Keycloak Healthcheck  ✓ Check if Keycloak admin console is accessible (798ms)  ✓ Check if Keycloak registration page loads (280ms)  ✓ Check Keycloak unauthenticated user get login page (155ms)   3 passing (2s)  (Results)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Tests: 3 │  │ Passing: 3 │  │ Failing: 0 │  │ Pending: 0 │  │ Skipped: 0 │  │ Screenshots: 0 │  │ Video: true │  │ Duration: 2 seconds │  │ Spec Ran: keycloak-health.spec.js │  └────────────────────────────────────────────────────────────────────────────────────────────────┘  (Video)   - Started processing: Compressing to 32 CRF   - Finished processing: /test/cypress/videos/keycloak-health.spec.js.mp4 (0 seconds) ====================================================================================================  (Run Finished)   Spec Tests Passing Failing Pending Skipped    ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ ✔ keycloak-health.spec.js 00:02 3 3 - - - │  └────────────────────────────────────────────────────────────────────────────────────────────────┘   ✔ All specs passed! 00:02 3 3 - - -   tar: Removing leading `/' from member names configmap/cypress-videos created ***** End Helm Test Logs ***** $ touch $CI_PROJECT_DIR/success section_end:1625082303:step_script section_start:1625082303:after_script Running after_script Running after script... $ if [ -e success ]; then # collapsed multi-line command Job Succeeded $ docker exec -i k3d-${CI_JOB_ID}-server-0 crictl images -o json | jq -r '.images[].repoTags[0] | select(. != null)' > images.txt $ sed -i '/docker.io\/istio\//d' images.txt $ sed -i '/docker.io\/rancher\//d' images.txt $ if [ -f tests/images.txt ]; then # collapsed multi-line command $ k3d cluster delete ${CI_JOB_ID} INFO[0000] Deleting cluster '4486272' INFO[0000] Deleted k3d-4486272-serverlb INFO[0004] Deleted k3d-4486272-server-0 INFO[0004] Deleting image volume 'k3d-4486272-images' INFO[0004] Removing cluster details from default kubeconfig... INFO[0004] Removing standalone kubeconfig file (if there is one)... INFO[0004] Successfully deleted cluster 4486272! $ docker network rm ${CI_JOB_ID} 4486272 section_end:1625082308:after_script section_start:1625082308:upload_artifacts_on_success Uploading artifacts for successful job Uploading artifacts... images.txt: found 1 matching files and directories WARNING: tests/cypress/screenshots: no matching files WARNING: tests/cypress/videos: no matching files  cypress-artifacts: found 3 matching files and directories Uploading artifacts as "archive" to coordinator... ok id=4486272 responseStatus=201 Created token=k1TvjRwK section_end:1625082309:upload_artifacts_on_success section_start:1625082309:cleanup_file_variables Cleaning up file based variables section_end:1625082310:cleanup_file_variables Job succeeded