Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Add test for previous buggy case
Browse files Browse the repository at this point in the history
  • Loading branch information
pontus committed Jan 19, 2024
1 parent 22ff283 commit 4c4b5ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/integration/tests/common/50_check_endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ else
exit 1
fi

curl --cacert certs/ca.pem -H "Authorization: Bearer $token" "https://localhost:8443/files/urn:neic:001-002?startCoordinate=70000&endCoordinate=140000" --output test-part3.txt

dd if=old-file.txt ibs=1 skip=70000 count=70000 > old-part3.txt

cmp --silent old-part3.txt test-part3.txt
status=$?
if [[ $status = 0 ]]; then
echo "Files are the same"
else
echo "Files are different"
exit 1
fi

# ------------------
# Test get visas failed

Expand Down

0 comments on commit 4c4b5ed

Please sign in to comment.