1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00
Commit graph

82 commits

Author SHA1 Message Date
adrinr
baca156a17 Implement delete endpoint 2023-03-28 16:46:22 +01:00
adrinr
6de4588fc1 Implement find endpoint 2023-03-28 16:46:22 +01:00
adrinr
8196277a01 Add scim group api test tools 2023-03-28 16:46:22 +01:00
adrinr
ad2a23d113 Test filtering by user name 2023-03-28 16:46:22 +01:00
adrinr
e568c5756f Fix tests 2023-03-28 16:46:22 +01:00
adrinr
2fda1bb5d1 Clean tests 2023-03-28 16:46:22 +01:00
adrinr
86d848458e Test second page 2023-03-28 16:46:22 +01:00
adrinr
e679cc3987 Add multifetch test 2023-03-28 16:46:22 +01:00
adrinr
f8959aacb0 Fix merge conflicts 2023-03-28 16:46:22 +01:00
adrinr
fbd53d5fd3 Add delete test 2023-03-28 16:46:22 +01:00
adrinr
4f9b5a6aea Patch endpoint 2023-03-28 16:46:22 +01:00
adrinr
89957f5490 Fix merge conflicts 2023-03-28 16:46:22 +01:00
adrinr
3500aabc8a Patch endpoint 2023-03-28 16:46:22 +01:00
adrinr
a509dc1739 Add find endpoint tests 2023-03-28 16:46:22 +01:00
adrinr
afdefce55d Add find endpoint tests 2023-03-28 16:46:22 +01:00
adrinr
9c64f54fa9 Rename types 2023-03-28 16:46:22 +01:00
adrinr
81e086680d Test 403s 2023-03-28 16:46:22 +01:00
adrinr
7fef377e1d Improve test helpers 2023-03-28 16:46:22 +01:00
adrinr
b120fce5dd Add tests 2023-03-28 16:46:22 +01:00
adrinr
4068faf9f3 Add scaffolding 2023-03-28 16:46:22 +01:00
mike12345567
cf5316ec8d General fixes for open handles, attempting to find and close all issues in server which are stopping shutdown of Jest suite. 2023-03-27 19:38:49 +01:00
mike12345567
82286d519f Fixing some issues with test cases. 2023-03-21 17:27:31 +00:00
Rory Powell
e116941750 Rotatable secrets (#9982)
* Rotatable secrets

* Set new api encryption key var

* Lint

* Use fallback keys instead of array

* Point api encryption key to dedicated value

* Add API_ENCRYPTION_KEY to cli

* Lint + add api encryption key to env files
2023-03-13 15:02:59 +00:00
Dean
ec9e570ac2 Test updates 2023-03-07 14:21:55 +00:00
Rory Powell
c83684ed83 Prevent showing user exists for password disabled actions 2023-03-01 14:49:44 +00:00
mike12345567
2fb33e2cf3 Merge branch 'develop' of github.com:Budibase/budibase into feature/audit-logs 2023-02-27 14:51:33 +00:00
Rory Powell
2c46109e7d Enforceable SSO (#9787)
* Add ENFORCEABLE_SSO feature flag

* First draft of enforce sso configuration / show single sign on url

* Reading and writing isSSOEnforced + integration with login page

* Enable CI + lint

* Set correct base branch for CI

* Test fix for expected string changed

* Use tenant aware platform url as SSO link

* Bring in latest pro changes

* Lint

* Add useEnforceableSSO mock helper function

* Update configs.spec.ts with coverage for public settings

* Update users.spec.ts with additional tests for isPreventPasswordActions

* Lint

* Update refresh OAuthToken to use correct enum and add case statement
2023-02-27 13:42:51 +00:00
mike12345567
0b48075688 Implementing a few basic tests to create and search the audit logs. 2023-02-23 17:23:06 +00:00
Rory Powell
2d993adec8 Fix for real email tests failing silently 2023-02-23 13:42:10 +00:00
Rory Powell
cacf275a99 Prevent SSO users from setting / resetting a password (#9672)
* Prevent SSO users from setting / resetting a password

* Add support for ENABLE_SSO_MAINTENANCE_MODE

* Add typing to self api and build out user update sdk

* Integrate sso checks with user sdk. Integrate user sdk with self api

* Test fixes

* Move self update into SDK

* Lock down maintenance mode to admin user

* Fix typo

* Add health status response and return type signature to accounts.getStatus

* Remove some unnecessary comments

* Make sso save user function non optional

* Remove redundant check on sso auth details provider

* Update syncProfilePicture function name to getProfilePictureUrl

* Update packages/worker/src/sdk/users/events.ts

Co-authored-by: Adria Navarro <adria@revityapp.com>

* Add ENABLE_EMAIL_TEST_MODE flag

* Fix for logging in as sso user when existing user has password already

* Hide password update and force reset from ui for sso users

* Always disable sso maintenance mode in cloud

---------

Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-02-21 08:23:53 +00:00
Rory Powell
cc7eb64a3b Rename LOG_4XX to ENABLE_4XX_HTTP_LOGGING and enable by default 2023-02-13 14:39:24 +00:00
Rory Powell
0e3a17ab18 Merge pull request #9669 from Budibase/budi-6558-configurable-test-log-levels-and-common
Configurable test log levels and common error handling
2023-02-13 14:31:43 +00:00
Rory Powell
ae9979929a Enable higher concurrency and resiliency in worker tests 2023-02-13 11:57:30 +00:00
Rory Powell
5cd6cb166a Configurable test log levels and common error handling 2023-02-13 11:53:01 +00:00
Rory Powell
c05b063f10 Bump CI default unit test timeout to 10s 2023-02-09 09:19:31 +00:00
adrinr
2e29ac9ec7 Rename name for id 2023-02-03 12:09:56 +00:00
adrinr
5d58fc5948 Dry 2023-02-03 11:28:27 +00:00
adrinr
74fe4ead31 Remove addTenantToGlobalDb from helpers 2023-02-03 09:59:57 +00:00
adrinr
34278349c3 Merge branch 'develop' into feature/dependencies-image 2023-02-01 10:56:22 +00:00
adrinr
abe3e2921f Race conditions 2023-01-31 22:50:52 +00:00
adrinr
9c04ae5f85 Expose beforeall error 2023-01-31 11:48:58 +00:00
adrinr
dd2a05fdcb Looking for testcontainer config 2023-01-31 11:23:26 +00:00
adrinr
2b8190418c Log as error 2023-01-31 10:30:57 +00:00
adrinr
fb9657872b Log global 2023-01-31 10:18:51 +00:00
adrinr
d160430ac8 Start race condition 2023-01-30 18:51:22 +00:00
adrinr
b2db582f02 Use docker compose for test-containers 2023-01-30 18:15:29 +00:00
adrinr
60c3e522fe Add retry to prevent race conditions 2023-01-30 18:12:06 +00:00
adrinr
55de45e86b Fix tenancy issues 2023-01-30 16:45:04 +00:00
adrinr
e074030a0f Fix test after patch 2023-01-30 16:39:15 +00:00
Dean
df84839ca6 Updated the user invite test to include the required firstName 2023-01-27 20:32:06 +00:00