0
Fork 0
mirror of https://github.com/oblien/openship.git synced 2026-11-16 06:57:12 +00:00
openship/apps/cli/test/unit
Sibil Sarjam Soren 731e83d7c7
fix(cli): keep the running service's ports when openship up runs again (#1743)
* fix(cli): keep the running service's ports when `openship up` runs again

startService resolved ports without telling resolvePorts which ones the
running service already holds, so on a re-run they looked busy. It waited
out waitPortFree on each port (about 12s) and then moved the install to
the next pair, rewriting ports.json (7100/7200 became 7101/7201).

While the service is running, pass its stored ports as reclaimable, the
same way the compose path does with composeHeldPorts.

Refs #1570

* fix(cli): verify service-owned ports and align dry-run

---------

Co-authored-by: Hydra <abdelhamedmo59@gmail.com>
History 2026-11-13 19:00:35 +02:00
..
api-client.test.ts ship sdk, intial scale panel 2026-09-14 01:34:59 +03:00
cache-download.test.ts fix(cli): recover failed updates and gate installed VPS releases (#1662) 2026-11-08 14:27:31 +02:00
caps.test.ts ship sdk, intial scale panel 2026-09-14 01:34:59 +03:00
compose-docker-config-mount.test.ts fix(cli): refuse unresolved database storage before writing configuration 2026-09-16 05:24:02 +03:00
compose-edge-name-conflict.test.ts update patch v0.6.8 2026-08-23 14:49:18 +03:00
compose-env-preserve.test.ts fix(updates): restore Compose readiness and preflight security actions 2026-10-24 19:51:21 +03:00
compose-secret-rotation.test.ts fix(cli): refuse unresolved database storage before writing configuration 2026-09-16 05:24:02 +03:00
compose-source-build.test.ts fix(cli): refuse unresolved database storage before writing configuration 2026-09-16 05:24:02 +03:00
custom-domain-endpoint.test.ts fix(cli): route domains added from the CLI 2026-10-15 03:33:04 +03:00
edge-preflight.test.ts patch 0.6.2 2026-08-10 16:27:29 +03:00
ensure-docker-refusal.test.ts finish dns auto configure and fix docker hang 2026-08-11 17:31:39 +03:00
github-releases.test.ts test(cli): cover the self-host gate and release URL helpers 2026-07-24 05:42:04 +05:30
headless-provision-domain.test.ts complete patch v0.6.6 2026-08-17 07:21:58 +03:00
heal.test.ts finalizing app module, migration server-to-server, notifications channels, cli initial check 2026-07-25 23:22:06 +03:00
host-channel-preflight.test.ts patch 0.6.2 2026-08-10 16:27:29 +03:00
host-ssh-authorized-keys.test.ts continue patch v0.6.7 2026-08-20 15:22:26 +03:00
instance-provision.test.ts edge handoff harding, export / import fix, app to project relation fix 2026-07-26 04:34:25 +03:00
internal-token.test.ts complete patch v0.6.6 2026-08-17 07:21:58 +03:00
loopback-internal-fetch.test.ts complete patch v0.6.6 2026-08-17 07:21:58 +03:00
node-entry-gate.test.ts feat(observability): unify structured error reporting 2026-10-09 08:10:45 +03:00
output.test.ts test(cli): set up vitest runner and shared test harness 2026-07-24 05:41:55 +05:30
ports.test.ts fix port conflict on host, harden mcp prompts, fix ssl flow 2026-07-30 05:14:51 +03:00
service-held-ports.test.ts fix(cli): keep the running service's ports when openship up runs again (#1743) 2026-11-13 19:00:35 +02:00
service-sync-mapping.test.ts feat(updates): add scoped host patches and observable advisory scans (#1566) 2026-11-03 19:37:18 +02:00
source-install.test.ts cli dev mode to install from repo 2026-07-26 13:04:51 +03:00
sse.test.ts ship sdk, intial scale panel 2026-09-14 01:34:59 +03:00
token-grant.test.ts feat(permissions): fine-grained token capabilities beside read/write/admin 2026-10-17 03:41:40 -04:00
up-plan.test.ts patch 0.6.2 2026-08-10 16:27:29 +03:00
up-rerun-ports.test.ts fix(cli): keep the running service's ports when openship up runs again (#1743) 2026-11-13 19:00:35 +02:00
update-host-channel.test.ts patch 0.6.2 2026-08-10 16:27:29 +03:00
update-recovery.test.ts fix(cli): recover failed updates and gate installed VPS releases (#1662) 2026-11-08 14:27:31 +02:00
update-reexec.test.ts fix live stream from edge 2026-08-07 12:55:43 +03:00
welcome.test.ts fix(cli): authenticate local administrators and guide remote login 2026-10-07 21:12:58 +03:00