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