Skip to content

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

TypeScript

test(control-api): use the shared real-Postgres helpers in the replace-inviter suites

Jose Gabriel Ramirez Encinasd44c0c682a56
diff --git a/control-api/package-lock.json b/control-api/package-lock.json
index c590eda6b..f95b80ddd 100644
--- a/control-api/package-lock.json
+++ b/control-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-api",
- "version": "0.1.644",
+ "version": "0.1.645",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-api",
- "version": "0.1.644",
+ "version": "0.1.645",
"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 f6e9dac46..f86280923 100644
--- a/control-api/package.json
+++ b/control-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-api",
- "version": "0.1.644",
+ "version": "0.1.645",
"description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets",
"main": "dist/main.js",
"engines": {
diff --git a/control-api/test/services.adminAuthDelete.realPostgres.integration.test.ts b/control-api/test/services.adminAuthDelete.realPostgres.integration.test.ts
index a87ff234d..3480fdb51 100644
--- a/control-api/test/services.adminAuthDelete.realPostgres.integration.test.ts
+++ b/control-api/test/services.adminAuthDelete.realPostgres.integration.test.ts
@@ -20,7 +20,7 @@ function quoteIdent(value: string): string {
describeRealPostgres('deleteControlAdmin on real PostgreSQL', () => {
const database = `admin_auth_delete_${randomBytes(6).toString('hex')}`
const connectionString = databaseUrl(
- adminUrl ?? 'postgresql://[email protected]/postgres',
+ adminUrl ?? 'postgresql://[email protected]/postgres',
database
)
let adminPool: Pool
diff --git a/control-api/test/services.controlAdminReplaceInviter.realPostgres.integration.test.ts b/control-api/test/services.controlAdminReplaceInviter.realPostgres.integration.test.ts
index 365fce583..5cb5ce91d 100644
--- a/control-api/test/services.controlAdminReplaceInviter.realPostgres.integration.test.ts
+++ b/control-api/test/services.controlAdminReplaceInviter.realPostgres.integration.test.ts
@@ -36,7 +36,7 @@ function uniqueEmail(label: string): string {
describeRealPostgres('control admin replace-inviter invitations on real PostgreSQL', () => {
const database = `control_admin_replace_${randomBytes(6).toString('hex')}`
const connectionString = databaseUrl(
- adminUrl ?? 'postgresql://[email protected]/postgres',
+ adminUrl ?? 'postgresql://[email protected]/postgres',
database
)
let adminPool: Pool
@@ -268,7 +268,7 @@ describeRealPostgres('control admin replace-inviter invitations on real PostgreS
sessionVersion: 2,
})
await expect(
- passwordLoginData({ email: inviter.email, password: 'irrelevant' })
+ passwordLoginData({ email: inviter.email, password: 'example-password' })
).resolves.toEqual({ error: 'user_retired' })
const desktop = await testPool.query(