fix: use internal caserun API orchestration URL
This commit is contained in:
@@ -27,7 +27,7 @@ test("cloud-api exposes web CaseRun cases, run status, events and aggregate", as
|
||||
};
|
||||
const server = createCloudApiServer({
|
||||
accessController,
|
||||
env: { PATH: process.env.PATH, HWLAB_CASERUN_CASE_REPO: root, HWLAB_CASERUN_STATE_DIR: stateRoot },
|
||||
env: { PATH: process.env.PATH, HWLAB_CASERUN_CASE_REPO: root, HWLAB_CASERUN_STATE_DIR: stateRoot, HWLAB_ENVIRONMENT: "v03", HWLAB_CLOUD_API_PORT: "6667" },
|
||||
caseRunExecutor: async (context: any, emit: any) => {
|
||||
seen.push(context.parsed);
|
||||
await emit("prepared", { runDir: context.parsed.runDir });
|
||||
@@ -60,11 +60,13 @@ test("cloud-api exposes web CaseRun cases, run status, events and aggregate", as
|
||||
assert.equal(startResponse.status, 202);
|
||||
assert.ok(["queued", "running"].includes(startPayload.status));
|
||||
assert.match(startPayload.runId, /^web-d601-f103-v2-compile-/u);
|
||||
assert.equal(startPayload.runtimeApiUrl, serverUrl(server));
|
||||
|
||||
const runPayload = await waitForRun(server, startPayload.runId, "completed");
|
||||
assert.equal(runPayload.summary.jobId, "job-test");
|
||||
assert.equal(seen[0].noCaseRepoRecord, true);
|
||||
assert.equal(seen[0].caseRepo, root);
|
||||
assert.equal(seen[0].apiUrl, "http://hwlab-cloud-api.hwlab-v03.svc.cluster.local:6667");
|
||||
|
||||
const eventsResponse = await fetch(`${serverUrl(server)}/v1/caserun/runs/${startPayload.runId}/events`);
|
||||
const eventsPayload = await eventsResponse.json();
|
||||
|
||||
Reference in New Issue
Block a user