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:
1 parent
e40b74bebc
commit
bd5f11dedd
1 file changed
+9
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user