History

Update cloud principal contract tests

Rhys Sullivan committed 2 months ago

Commit f38570d1 parent ea31cbe2 files · +2 −0Browse files

Unified · Split

2 files
  1. apps/cloud/src/api/protected-api-key-auth.node.test.ts +1 −0
  2. apps/cloud/src/api/protected-jwt-auth.node.test.ts +1 −0
apps/cloud/src/api/protected-api-key-auth.node.test.ts+1−0
@@ -100,6 +100,7 @@ describe("protected API key auth", () => { · 99 unmodified lines
100 roles: [],100 roles: [],
101 // The stub membership carries no role slug — normalization FAILS101 // The stub membership carries no role slug — normalization FAILS
102 // CLOSED to plain member, so the executor binds workspace writes off.102 // CLOSED to plain member, so the executor binds workspace writes off.
103 orgRoleModel: "organization",
103 orgRole: "member",104 orgRole: "member",
104 });105 });
105 }),106 }),
apps/cloud/src/api/protected-jwt-auth.node.test.ts+1−0
@@ -121,6 +121,7 @@ describe("protected JWT (device-login) auth", () => { · 120 unmodified lines
121 roles: [],121 roles: [],
122 // The stub membership carries no role slug — normalization FAILS122 // The stub membership carries no role slug — normalization FAILS
123 // CLOSED to plain member, so the executor binds workspace writes off.123 // CLOSED to plain member, so the executor binds workspace writes off.
124 orgRoleModel: "organization",
124 orgRole: "member",125 orgRole: "member",
125 });126 });
126 }),127 }),