Initialize PROMPT environment and ces-control deployment pipeline
PROMPT CI and deployment / verify-and-deploy (push) Successful in 3m53s
PROMPT CI and deployment / verify-and-deploy (push) Successful in 3m53s
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { test } from "node:test";
|
||||
import { healthResponse } from "../src/lib/health";
|
||||
|
||||
test("health identifies the deployed release", () => {
|
||||
assert.deepEqual(healthResponse("GET", "abc123"), {
|
||||
statusCode: 200,
|
||||
body: { status: "ok", service: "prompt", release: "abc123" },
|
||||
});
|
||||
});
|
||||
|
||||
test("HEAD is supported and mutations are rejected", () => {
|
||||
assert.equal(healthResponse("HEAD").statusCode, 200);
|
||||
assert.equal(healthResponse("POST").statusCode, 405);
|
||||
});
|
||||
Reference in New Issue
Block a user