( target: TargetShape, member: Identity, label: string, method: string, path: string, body?: unknown, )
| 68 | ); |
| 69 | |
| 70 | const 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. */ |
| 85 | export const workspaceWritePermissions = (target: TargetShape, admin: Identity, member: Identity) => |
no test coverage detected