File tree Expand file tree Collapse file tree
http-tests/admin/packages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ curl -k -s \
3030 -H " Accept: application/n-triples" \
3131 " ${END_USER_BASE_URL} ns" \
3232| grep -q " <${namespace_ontology_uri} > <http://www.w3.org/2002/07/owl#imports> <${package_ontology_uri} >"
33- echo " DEBUG: owl:imports triple found " >&2
33+ # DO NOT add echo here - it would mask grep failures with set -e
3434
3535# verify package ontology document exists
3636echo " DEBUG: Verifying package ontology document exists..." >&2
3737package_ontology_hash=$( echo -n " $package_ontology_uri " | shasum -a 1 | cut -d' ' -f1)
3838curl -k -f -s -o /dev/null \
3939 " ${ADMIN_BASE_URL} ontologies/${package_ontology_hash} /"
40- echo " DEBUG: Package ontology document exists " >&2
40+ # DO NOT add echo here - it would mask curl -f failures with set -e
4141
4242# uninstall package
4343echo " DEBUG: Uninstalling package..." >&2
Original file line number Diff line number Diff line change @@ -25,14 +25,14 @@ echo "$install_status" | grep -q "$STATUS_SEE_OTHER"
2525echo " DEBUG: Verifying package stylesheet was installed..." >&2
2626curl -k -f -s -o /dev/null \
2727 " ${END_USER_BASE_URL} static/com/linkeddatahub/packages/skos/layout.xsl"
28- echo " DEBUG: Package stylesheet check passed " >&2
28+ # DO NOT add echo here - it would mask curl -f failures with set -e
2929
3030# verify master stylesheet includes package
3131echo " DEBUG: Verifying master stylesheet includes package..." >&2
3232# IMPORTANT: Keep original pipeline logic to preserve test behavior
3333curl -k -s " $END_USER_BASE_URL " static/xsl/layout.xsl \
3434 | grep -q " com/linkeddatahub/packages/skos/layout.xsl"
35- echo " DEBUG: Master stylesheet includes package " >&2
35+ # DO NOT add echo here - it would mask grep failures with set -e
3636
3737# uninstall package
3838echo " DEBUG: Uninstalling package..." >&2
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ echo "$install_status" | grep -q "$STATUS_SEE_OTHER"
2525echo " DEBUG: Verifying package stylesheet exists before uninstall..." >&2
2626curl -k -f -s -o /dev/null \
2727 " ${END_USER_BASE_URL} static/com/linkeddatahub/packages/skos/layout.xsl"
28- echo " DEBUG: Package stylesheet exists " >&2
28+ # DO NOT add echo here - it would mask curl -f failures with set -e
2929
3030# uninstall package via POST to packages/uninstall endpoint
3131echo " DEBUG: Uninstalling package..." >&2
You can’t perform that action at this time.
0 commit comments