Skip to content

Commit

Permalink
Merge pull request #35 from Cray-HPE/CASMPET-4654
Browse files Browse the repository at this point in the history
CASMPET-4654:  Add test to check for completion of the keycloak-users-localize job
  • Loading branch information
phalseth-hpe authored Sep 10, 2021
2 parents 088ca99 + 24f456d commit e56020b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion goss-testing/automated/run-ncn-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ function k8s_local_tests {
echo "Test Name: Kubernetes Nodes Have Valid Age"
/usr/bin/goss -g $GOSS_BASE/tests/goss-k8s-nodes-age-valid.yaml v
echo
echo "Test Name: Keycloak Users Localize Is Complete"
/usr/bin/goss -g $GOSS_BASE/tests/goss-k8s-keycloak-localize-job-completed.yaml v
echo
}

function run_ncn_tests {
Expand Down Expand Up @@ -90,4 +93,4 @@ function run_ncn_tests {
echo $'\e[1;31m'ERROR: Server endpoint could not be reached$'\e[0m'
fi
return 0
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2014-2021 Hewlett Packard Enterprise Development LP
command:
keycloak_users_localize_job_completed:
title: Keycloak Users Localize Job Completed
meta:
desc: If this test fails, see /usr/share/doc/csm/troubleshooting/known_issues/craycli_403_forbidden_errors.md
sev: 0
exec: kubectl -n services wait --for=condition=complete --timeout=3s job/`kubectl -n services get jobs | grep users-localize | awk '{print $1}'`
exit-status: 0
timeout: 10000
skip: false

0 comments on commit e56020b

Please sign in to comment.