Skip to content

Commit 6f1daf6

Browse files
committed
More debug changes
1 parent f551b15 commit 6f1daf6

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

http-tests/admin/packages/install-uninstall-package-ontology.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
3636
echo "DEBUG: Verifying package ontology document exists..." >&2
3737
package_ontology_hash=$(echo -n "$package_ontology_uri" | shasum -a 1 | cut -d' ' -f1)
3838
curl -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
4343
echo "DEBUG: Uninstalling package..." >&2

http-tests/admin/packages/install-uninstall-package-stylesheet.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ echo "$install_status" | grep -q "$STATUS_SEE_OTHER"
2525
echo "DEBUG: Verifying package stylesheet was installed..." >&2
2626
curl -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
3131
echo "DEBUG: Verifying master stylesheet includes package..." >&2
3232
# IMPORTANT: Keep original pipeline logic to preserve test behavior
3333
curl -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
3838
echo "DEBUG: Uninstalling package..." >&2

http-tests/admin/packages/uninstall-package-stylesheet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo "$install_status" | grep -q "$STATUS_SEE_OTHER"
2525
echo "DEBUG: Verifying package stylesheet exists before uninstall..." >&2
2626
curl -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
3131
echo "DEBUG: Uninstalling package..." >&2

0 commit comments

Comments
 (0)