Skip to content

Commit

Permalink
Small modification to the test to add some reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbeskow authored Jun 7, 2024
1 parent dcc2f43 commit db35c5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,15 @@ jobs:
exit 1
fi
# Sleeping to ensure everything completes
sleep 2s
echo "*****RESULTING SECRETS*****"
secrets=$(kubectl get secrets)
echo "$secrets"
secretCreated=$(echo "$secrets" | grep "bw-sample-secret Opaque 3")
secretCreated=$(echo "$secrets" | grep -Po "bw-sample-secret\s+Opaque\s+3")
if [[ -z "$secretCreated" ]]; then
echo "::error::Secret not created correctly."
Expand Down

0 comments on commit db35c5b

Please sign in to comment.