fix(ci): update integration workflow for PVE 9 and self-hosted runner

- Connectivity check: pass API token and check /nodes instead of /version
  (PVE 9 requires authentication for all API endpoints including /version)
- Runner labels updated to proxmox,integration externally
- PVETEST secrets configured for integration test target

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Clint Branham
2026-03-18 13:06:39 -05:00
parent 79fae0bb37
commit bd5814472f
+4 -1
View File
@@ -69,9 +69,12 @@ jobs:
env: env:
PVETEST_HOST: ${{ inputs.pve_host || secrets.PVETEST_HOST }} PVETEST_HOST: ${{ inputs.pve_host || secrets.PVETEST_HOST }}
PVETEST_PORT: ${{ secrets.PVETEST_PORT || '8006' }} PVETEST_PORT: ${{ secrets.PVETEST_PORT || '8006' }}
PVETEST_APITOKEN: ${{ secrets.PVETEST_APITOKEN }}
run: | run: |
echo "Testing connectivity to PVE API at ${PVETEST_HOST}:${PVETEST_PORT}..." echo "Testing connectivity to PVE API at ${PVETEST_HOST}:${PVETEST_PORT}..."
if curl -sk --connect-timeout 10 "https://${PVETEST_HOST}:${PVETEST_PORT}/api2/json/version" | grep -q '"version"'; then if curl -sk --connect-timeout 10 \
-H "Authorization: PVEAPIToken=${PVETEST_APITOKEN}" \
"https://${PVETEST_HOST}:${PVETEST_PORT}/api2/json/nodes" | grep -q '"node"'; then
echo "PVE API is responsive" echo "PVE API is responsive"
else else
echo "::error::Cannot reach PVE API at ${PVETEST_HOST}:${PVETEST_PORT}" echo "::error::Cannot reach PVE API at ${PVETEST_HOST}:${PVETEST_PORT}"