Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(control-api): match signed-identity fixture to binding contract

Alfredo Lopeze9110db80c71
diff --git a/control-api/package-lock.json b/control-api/package-lock.json
index 681d569f4..3a52cd988 100644
--- a/control-api/package-lock.json
+++ b/control-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-api",
- "version": "0.1.682",
+ "version": "0.1.683",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-api",
- "version": "0.1.682",
+ "version": "0.1.683",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",
diff --git a/control-api/package.json b/control-api/package.json
index e82aab44f..a552b0270 100644
--- a/control-api/package.json
+++ b/control-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-api",
- "version": "0.1.682",
+ "version": "0.1.683",
"description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets",
"main": "dist/main.js",
"engines": {
diff --git a/control-api/test/routes.rpcAccessUsersSignedIdentity.test.ts b/control-api/test/routes.rpcAccessUsersSignedIdentity.test.ts
index 456d512d0..cd91fbb20 100644
--- a/control-api/test/routes.rpcAccessUsersSignedIdentity.test.ts
+++ b/control-api/test/routes.rpcAccessUsersSignedIdentity.test.ts
@@ -75,7 +75,13 @@ function buildApp() {
updateResource: vi.fn(),
deleteResource: vi.fn(),
}
- const bindingService = { bind: vi.fn(async () => undefined) }
+ const bindingService = {
+ bind: vi.fn(async (input: { runId: string }) => ({
+ runId: input.runId.toLowerCase(),
+ status: 'created' as const,
+ createdAt: new Date().toISOString(),
+ })),
+ }
const app = express()
app.use(createRpcAccessUsersRouter(gateway as unknown as K8sGateway, { bindingService }))
return { app, gateway, bindingService }