Skip to content

Commit

Permalink
Merge pull request #1499 from cyberark/crd-issues
Browse files Browse the repository at this point in the history
Update script to print logs on error
  • Loading branch information
rpothier authored Jun 13, 2023
2 parents 4a6db8e + e96bfd3 commit 93d512f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Nothing should go in this section, please add to the latest unreleased version
(and update the corresponding date), or add a new version.

## [1.7.18] - 2023-06-08
## [1.7.18] - 2023-06-12

### Changed
- Update CRD test script.
[cyberark/secretless-broker#1499](https://github.com/cyberark/secretless-broker/pull/1499)

## [1.7.17] - 2023-04-17

Expand Down
12 changes: 6 additions & 6 deletions k8s-ci/k8s_crds/test
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function wait_for_CRD() {
if [[ "$attempt_count" -ge "$max_attempts" ]]; then
echo ""
echo "CRD is not ready after $attempt_count readiness checks at 2 second intervals." >&2
exit 1
return 1
fi
echo -n "."
sleep 2
Expand All @@ -84,7 +84,7 @@ function wait_for_pod() {
if [[ "$attempt_count" -ge "$max_attempts" ]]; then
echo ""
echo "pod is not ready after $attempt_count readiness checks at 2 second intervals." >&2
exit 1
return 1
fi
echo -n "."
sleep 2
Expand All @@ -97,7 +97,7 @@ function wait_for_pod() {
if [[ "$attempt_count" -ge "$max_attempts" ]]; then
echo ""
echo "pod endpoint is not ready after $attempt_count readiness checks at 2 second intervals." >&2
exit 1
return 1
fi
echo -n "."
sleep 2
Expand Down Expand Up @@ -160,12 +160,12 @@ function main() {

# deploy secretless and echo-server
deploy_secretless
wait_for_CRD
wait_for_pod
wait_for_CRD || exit_err "K8s-CRD test: Failed in wait_for_CRD()"
wait_for_pod || exit_err "K8s-CRD test: Failed in wait_for_pod()"

# run test cases
run_test_case "create configuration object" user1 password1
run_test_case "update configuration object" ohnoeswechangedit supersecretpassword
}

main || exit_err "K8s-CRD test: Failed inside main()"
main

0 comments on commit 93d512f

Please sign in to comment.