fix server creation run binding

This commit is contained in:
npc0-hue
2026-08-04 17:14:28 +08:00
parent 980f1786dd
commit 5fbe8092b9
13 changed files with 80 additions and 53 deletions
@@ -116,13 +116,17 @@ describe("ServerDeploymentWorkflow", () => {
pluginId: "game.runtime",
name: "Custom Runtime Server",
idempotencyKey: "web:create:server-custom-runtime-server-17:17",
runEndpointId: undefined,
deployment: {
mode: "custom-command",
serverRoot: "/srv/custom-runtime",
startCommand: "./start-runtime.sh"
}
});
expect(submitted && "runEndpointId" in submitted).toBe(false);
expect(submitted && "profileKey" in submitted).toBe(false);
expect(submitted && "bindings" in submitted).toBe(false);
expect(submitted?.deployment && "profileKey" in submitted.deployment).toBe(false);
expect(submitted?.deployment && "runtimeBindings" in submitted.deployment).toBe(false);
});
});