diff --git a/packages/bus/tests/grant-host.test.mjs b/packages/bus/tests/grant-host.test.mjs index ed4e88597..70a70a237 100644 --- a/packages/bus/tests/grant-host.test.mjs +++ b/packages/bus/tests/grant-host.test.mjs @@ -102,6 +102,15 @@ test('G1, R4: the grant takes exactly method, agent, host, commands and rotateBy assert.ok(rotateBy); }); +test('row 236 (#1742): a gitea grant on a broker with no Gitea path refuses gitea-not-configured, and nothing is stored', async (t) => { + const f = setup(t); + const before = f.decisions(); + const refused = f.refusals().length; + await refusesWith(f.raise({ method: 'gitea' }), 'gitea-not-configured'); + assert.equal(f.decisions(), before); + assert.deepEqual(f.refusals().slice(refused), ['gitea-not-configured']); +}); + test('G2: an agent whose definition lacks host refuses host-not-declared, and an unknown agent unknown-role', async (t) => { const f = setup(t); const before = f.decisions();