Update EdgeGatewayManagerUrlTest to improve installation phase checks and remove obsolete heartbeat expectations

This commit is contained in:
Jeppe Bundgaard
2026-06-30 11:18:00 +02:00
parent bd87e94472
commit 53246af629
2 changed files with 5 additions and 2 deletions
File diff suppressed because one or more lines are too long
@@ -87,8 +87,11 @@ it('builds install script urls with the compose edge gateway artifacts and forwa
expect($script)->toContain('Installer failed during step ${CURRENT_STEP_CODE:-FAILED}: ${CURRENT_STEP:-unknown}');
expect($script)->toContain('Last request: ${CURRENT_METHOD} ${CURRENT_URL}');
expect($script)->toContain('Response body preview (first 400 bytes):');
expect($script)->toContain('begin_install_phase "REMOVE_EXISTING_INSTALL" "Removing existing edge gateway installation"');
expect($script)->toContain('run_step "Removing existing edge gateway installation" cleanup_existing_installation');
expect($script)->toContain('wait_for_gateway_claim "$CONFIG_PATH" "$HEARTBEAT_MARKER_PATH" "$INSTALL_STARTED_AT" 180');
expect($script)->toContain('wait_for_post_restart_heartbeat "$HEARTBEAT_MARKER_PATH" "$INSTALL_STARTED_AT" 180');
expect($script)->not->toContain('wait_for_post_restart_heartbeat "$HEARTBEAT_MARKER_PATH" "$INSTALL_STARTED_AT" 180');
expect($script)->not->toContain('Gateway reconnected using preserved credentials.');
expect($script)->toContain('"apiUrl":"https://api.truckwash.io:4433"');
expect($script)->toContain('"serviceName":"truckwash-edge-agent.service"');
expect($script)->toContain('"stackServiceName":"truckwash-edge-gateway-stack.service"');