Skip to content

Commit 0ce989e

Browse files
committed
Revert "Update singleTenant_integration_test.yml"
This reverts commit 37070a9.
1 parent 37070a9 commit 0ce989e

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

.github/workflows/singleTenant_integration_test.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -947,32 +947,11 @@ jobs:
947947
env:
948948
DEFAULTREPOSITORYID: ${{ secrets.DEFAULTREPOSITORYID }}
949949
run: |
950-
# ─── DIAGNOSTICS: prove what secret value we received (length only — does NOT leak the secret) ───
951-
echo "🔍 DEFAULTREPOSITORYID length: ${#DEFAULTREPOSITORYID}"
952-
echo "🔍 First 4 chars (masked if real UUID): ${DEFAULTREPOSITORYID:0:4}"
953-
echo "🔍 Equals literal name? $([ "$DEFAULTREPOSITORYID" = "DEFAULTREPOSITORYID" ] && echo "YES — secret value IS the literal string DEFAULTREPOSITORYID" || echo "no")"
954-
echo "🔍 Is empty? $([ -z "$DEFAULTREPOSITORYID" ] && echo "YES — secret resolved to empty" || echo "no")"
955-
# Hard-stop if obviously wrong
956-
if [ -z "$DEFAULTREPOSITORYID" ] || [ "$DEFAULTREPOSITORYID" = "DEFAULTREPOSITORYID" ]; then
957-
echo "❌ DEFAULTREPOSITORYID secret is missing or contains the literal placeholder string."
958-
echo " Fix: GitHub → Settings → Environments → dev → Secrets → DEFAULTREPOSITORYID → paste the actual UUID"
959-
exit 1
960-
fi
961-
if [ ${#DEFAULTREPOSITORYID} -lt 30 ]; then
962-
echo "⚠️ DEFAULTREPOSITORYID is shorter than expected (length=${#DEFAULTREPOSITORYID}). A real CMIS repo UUID is ~36 chars."
963-
echo " Aborting to prevent corrupting the CF app's REPOSITORY_ID."
964-
exit 1
965-
fi
966950
echo "🔄 Reverting REPOSITORY_ID to default repository..."
967951
cf set-env demoappjava-srv REPOSITORY_ID "$DEFAULTREPOSITORYID"
968952
echo "🔄 Restaging application..."
969953
cf restage demoappjava-srv > /dev/null 2>&1
970954
echo "✅ Reverted to default repository!"
971-
# Verify what actually got set on the app (CF redacts values it considers credentials, but env var values are visible)
972-
APP_GUID=$(cf app demoappjava-srv --guid)
973-
ACTUAL=$(cf curl "/v3/apps/${APP_GUID}/environment_variables" | jq -r '.var.REPOSITORY_ID // empty')
974-
echo "🔍 Post-restage REPOSITORY_ID length on app: ${#ACTUAL}"
975-
echo "🔍 Post-restage REPOSITORY_ID first 4 chars: ${ACTUAL:0:4}"
976955
977956
# Repo-specific tests run one at a time (max-parallel: 1) so each shows individually in UI
978957
# DISABLED: set if to true to re-enable

0 commit comments

Comments
 (0)