mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
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:
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user