fix(case2): give the case2 fixture host the request-host ops (#1873)
test-case2.sh failed 8 of 21 steps on base from S3b on. Bisect names
f23a998ee (#797, "close project archive admission races") as the first
bad commit: it made every launch call request.admission and updated each
in-process launcher fixture except scripts/case2/launch.mjs. The fixture
host refused the op with invalid-host-request, so no launch started; the
S6/S7 "unauthenticated" and S8/S10 reds followed from the missing launch
capability, not from a separate session change.
The fixture now spreads requestHostOps from packages/cli/tests, the shared
map every other fixture uses, so it tracks the production protocol.
This commit is contained in:
1 parent
99ce579e3c
commit
e3577e9d31
1 file changed
+4
@@ -8,6 +8,7 @@ import { startBroker } from '../../packages/bus/src/runtime.mjs';
|
||||
import { grantDecision } from '../../packages/bus/tests/host-fixtures.mjs';
|
||||
import { launchDoc } from '../../packages/organization/tests/helpers.mjs';
|
||||
import { fakeHarnesses, fixture } from '../../packages/cli/tests/helpers.mjs';
|
||||
import { requestHostOps } from '../../packages/cli/tests/request-host-ops.mjs';
|
||||
import { bootConfig, loadSystem } from '../../packages/cli/src/config.mjs';
|
||||
import { createLauncher } from '../../packages/cli/src/launcher.mjs';
|
||||
import { SESSION_CREDENTIALS } from '../../packages/seat/src/session.mjs';
|
||||
@@ -101,6 +102,9 @@ export async function launchFixture(root, entry, { fetchToken, seatToken, humanT
|
||||
landHeld: m => runtime.landHeld(m.record), landHolders: m => runtime.landHolders(m.business),
|
||||
landRelease: m => runtime.landRelease(m.record), sessionClears: m => runtime.sessionClears(m.business),
|
||||
lifecycleRequests: m => runtime.lifecycleRequests(m.business),
|
||||
// f23a998ee (#797) made every launch call request.admission; this fixture was the one host
|
||||
// left without the request ops, so S3b's launch was refused. Shared with the cli fixtures.
|
||||
...requestHostOps(runtime),
|
||||
};
|
||||
const wrap = fn => async value => {
|
||||
try { return await fn(value); }
|
||||
|
||||
Reference in new issue
Block a user