Skip to content

Commit

Permalink
workflow 4
Browse files Browse the repository at this point in the history
  • Loading branch information
csmig committed Feb 19, 2025
1 parent f954849 commit ae9a169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/api-state-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
working-directory: ./api/source
run: |
expected=1
count=$(jq -s 'map(select(.type == "statechanged" and .data.currentState == "stop" and .data.previousState == "starting"))|length' /home/csmig/dev/stig-manager-csmig/log.json)
count=$(jq -s 'map(select(.type == "statechanged" and .data.currentState == "stop" and .data.previousState == "starting"))|length' api-log.json)
if [ "$count" -eq $expected ]; then
echo "State changed messages count is $expected"
else
Expand All @@ -67,7 +67,7 @@ jobs:
working-directory: ./api/source
run: |
expected='"Application stopped"'
last_message=$(jq -s '.[-1].data.message' log.json)
last_message=$(jq -s '.[-1].data.message' api-log.json)
if [ "$last_message" == "$expected" ]; then
echo "Last message is $expected"
else
Expand Down

0 comments on commit ae9a169

Please sign in to comment.