Skip to content

Commit

Permalink
Test enhancements (#43)
Browse files Browse the repository at this point in the history
* enhance system test to catch curl failures that were returned as successes
  • Loading branch information
rw2 authored Aug 27, 2024
1 parent 5f0fe81 commit 9aaea58
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,20 @@ jobs:
- name: Get a file
working-directory: ${{runner.workspace}}/build
shell: bash
run: curl -v http://localhost:8080/aws-opendata/2024/wod_apb_2024.nc -o wod_apb_2024.nc
run: curl -f http://localhost:8080/aws-opendata/2024/wod_apb_2024.nc -o wod_apb_2024.nc

- name: Fail a file
working-directory: ${{runner.workspace}}/build
shell: bash
run: |
if curl -f http://localhost:8080/aws-opendata/2024/bogus_file_name; then
echo "Error: Command unexpectedly succeeded."
exit 1
else
echo "Command failed as expected."
fi
- name: Get metadata
working-directory: ${{runner.workspace}}/build
shell: bash
run: curl -k -X PROPFIND http://localhost:8080/aws-opendata/2024/wod_apb_2024.nc -d prop_query
run: curl -f -k -X PROPFIND http://localhost:8080/aws-opendata/2024/wod_apb_2024.nc -d prop_query

0 comments on commit 9aaea58

Please sign in to comment.