Skip to content

Commit 4b8a08e

Browse files
committed
test(abac): use non-empty identifiers in abac/users/sync e2e tests
1 parent 01857a8 commit 4b8a08e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • apps/meteor/tests/end-to-end/api

apps/meteor/tests/end-to-end/api/abac.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ const addAbacAttributesToUserDirectly = async (userId: string, abacAttributes: I
14551455
await request
14561456
.post(`${v1}/abac/users/sync`)
14571457
.set(credentials)
1458-
.send({ usernames: [] })
1458+
.send({ ids: ['no-such-user-id'] })
14591459
.expect(400)
14601460
.expect((res) => {
14611461
expect(res.body.error).to.include('error-abac-not-enabled');
@@ -1852,11 +1852,11 @@ const addAbacAttributesToUserDirectly = async (userId: string, abacAttributes: I
18521852
await updateSetting('ABAC_Enabled', false);
18531853
});
18541854

1855-
it('responds 200 with success:true when ABAC_Enabled=true and PDP type=local (empty usernames)', async () => {
1855+
it('responds 200 with success:true when ABAC_Enabled=true and PDP type=local (no-match id)', async () => {
18561856
await request
18571857
.post(`${v1}/abac/users/sync`)
18581858
.set(credentials)
1859-
.send({ usernames: [] })
1859+
.send({ ids: ['no-such-user-id'] })
18601860
.expect(200)
18611861
.expect((res) => {
18621862
expect(res.body).to.have.property('success', true);

0 commit comments

Comments
 (0)