From 4c4b5ed64e023b3171317bd21e1cee9e5a88cbad Mon Sep 17 00:00:00 2001 From: Pontus Freyhult Date: Fri, 19 Jan 2024 15:39:17 +0100 Subject: [PATCH] Add test for previous buggy case --- .../integration/tests/common/50_check_endpoint.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/integration/tests/common/50_check_endpoint.sh b/.github/integration/tests/common/50_check_endpoint.sh index feb7fc2..c05bee5 100755 --- a/.github/integration/tests/common/50_check_endpoint.sh +++ b/.github/integration/tests/common/50_check_endpoint.sh @@ -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