Skip to content

Commit

Permalink
Substring matching
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Mar 27, 2024
1 parent e55c46d commit 133ff25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-chris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
run: kubectl wait --for=condition=ready pod -n ghactions -l app.kubernetes.io/name=chris-server --timeout=300s
- name: Assert superuser created
run: |
actual="$(kubectl logs --tail=1 -n ghactions -l app.kubernetes.io/name=chris-heart -c set-config)"
actual="$(kubectl logs -n ghactions -l app.kubernetes.io/name=chris-heart -c set-config)"
expected='Created superuser "khris"'
if [ "$actual" != "$expected" ]; then
if [[ "$expected" != *"$actual"* ]]; then
echo "::error ::Expected: >>>$expected<<< Actual: >>>$actual<<<"
exit 1
fi
Expand Down

0 comments on commit 133ff25

Please sign in to comment.