bus: row 236, a gitea grant raise on a broker with no Gitea path refuses gitea-not-configured (sage-2559, #1742)

This commit is contained in:
jason.woltje committed 2026-10-22 03:59:40 -05:00
1 parent e40b74bebc
commit bd5f11dedd
1 file changed
+9
+9
View File
@@ -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();