MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / expectForbidden

Function expectForbidden

e2e/src/workspace-write-permissions.ts:70–82  ·  view source on GitHub ↗
(
  target: TargetShape,
  member: Identity,
  label: string,
  method: string,
  path: string,
  body?: unknown,
)

Source from the content-addressed store, hash-verified

68 );
69
70const expectForbidden = (
71 target: TargetShape,
72 member: Identity,
73 label: string,
74 method: string,
75 path: string,
76 body?: unknown,
77): Effect.Effect<void> =>
78 request(target, member, method, path, body).pipe(
79 Effect.map((response) => {
80 expect(response.status, `${label} is denied at the HTTP boundary`).toBe(403);
81 }),
82 );
83
84/** Exercise the complete workspace-write authorization matrix for one host boot. */
85export const workspaceWritePermissions = (target: TargetShape, admin: Identity, member: Identity) =>

Callers 1

Calls 1

requestFunction · 0.70

Tested by

no test coverage detected