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
100100 roles: [],
101101 // The stub membership carries no role slug — normalization FAILS
102102 // CLOSED to plain member, so the executor binds workspace writes off.
103+ orgRoleModel: "organization",
103104 orgRole: "member",
104105 });
105106 }),
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
121121 roles: [],
122122 // The stub membership carries no role slug — normalization FAILS
123123 // CLOSED to plain member, so the executor binds workspace writes off.
124+ orgRoleModel: "organization",
124125 orgRole: "member",
125126 });
126127 }),