n8n/packages/cli/test/integration
OlegIvaniv e5620ab1e4
feat(API): Implement users account quota guards (#6434)
* feat(cli): Implement users account quota guards

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Remove comment

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Address PR comments

- Getting `usersQuota` from `Settings` repo
- Revert `isUserManagementEnabled` helper
- Fix FE listing of users

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Refactor isWithinUserQuota getter and fix tests

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Revert testDb.ts changes

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Cleanup & improve types

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Fix duplicated method

* Fix failing test

* Remove `isUserManagementEnabled` completely

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Check for globalRole.name to determine if user is owner

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Fix unit tests

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Set isInstanceOwnerSetUp in specs

* Fix SettingsUserView UM

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* refactor: License typings suggestions for users quota guards (#6636)

refactor: License typings suggestions

* Update packages/cli/src/Ldap/helpers.ts

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Update packages/cli/test/integration/shared/utils.ts

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Address PR comments

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Use 403 for all user quota related errors

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

---------

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
2023-07-12 14:11:46 +02:00
..
audit refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362) 2023-06-22 20:03:47 +02:00
commands feat: Migrate integer primary keys to nanoids (#6345) 2023-06-20 19:13:18 +02:00
environments feat: Migrate integer primary keys to nanoids (#6345) 2023-06-20 19:13:18 +02:00
ldap refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362) 2023-06-22 20:03:47 +02:00
publicApi refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362) 2023-06-22 20:03:47 +02:00
saml feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
shared feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
auth.api.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
auth.mw.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
credentials.ee.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
credentials.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
eventbus.test.ts refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362) 2023-06-22 20:03:47 +02:00
license.api.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
me.api.test.ts ci: Refactor cli tests to speed up CI (no-changelog) (#5718) 2023-03-17 17:24:05 +01:00
nodes.api.test.ts feat(core): Remove all floating promises. Enforce @typescript-eslint/no-floating-promises (#6281) 2023-05-24 02:01:45 +02:00
owner.api.test.ts refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362) 2023-06-22 20:03:47 +02:00
passwordReset.api.test.ts ci: Expand ESLint to tests in BE packages (no-changelog) (#6147) 2023-05-02 10:37:19 +02:00
users.api.test.ts refactor(core)!: Remove basic-auth, external-jwt-auth, and no-auth options (#6362) 2023-06-22 20:03:47 +02:00
variables.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
workflows.controller.ee.test.ts feat(API): Implement users account quota guards (#6434) 2023-07-12 14:11:46 +02:00
workflows.controller.test.ts feat: Migrate integer primary keys to nanoids (#6345) 2023-06-20 19:13:18 +02:00