mike12345567
ada052e043
Merging in develop - fixing some test cases which broke in the process.
2023-04-12 10:56:21 +01:00
adrinr
f882993091
Name and its fields are optional
2023-04-11 16:12:18 +01:00
Rory Powell
976b3a55ca
Update logging to support dd trace attributes ( #10086 )
...
* Update logging middleware to integrate with pino for console logging
* Remove elastic apm references, use updated core middlewares
* Remove redundant LOG_LEVEL definitions
* Remove no longer needed jest logging overrides
* lint
* Backwards compat between console log helpers and pino
* Configurable DISABLE_HTTP_LOGGING
* Don't log 4xx as errors
* Remove redundant ENABLE_4XX_HTTP_LOGGING
* Cleanup migrations and event logging
* Improve bb-alert logging
* Add DISABLE_HTTP_LOGGING to helm chart
* Add ops endpoints for testing
* Disable http logging in dev
* Backwards compatible tracing implementation
* Naming update on http logging env var
* lint
* Update packages/backend-core/src/environment.ts
Co-authored-by: Adria Navarro <adria@revityapp.com>
* Merge
* Lint
* Fix console.warn failing mock by replacing with alerts mock instead
* Lint
---------
Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-04-04 15:08:46 +01:00
Adria Navarro
e1669c8260
Merge pull request #10022 from Budibase/feature/scim
...
Feature - SCIM endpoints
2023-04-03 13:22:01 +02:00
Adria Navarro
cfb93063b2
Merge pull request #10153 from Budibase/budi-6803-delete-users-when-group-removed
...
BUDI-6803 - Remove users that should not be there anymore when syncGlobalUsers
2023-03-31 13:15:11 +02:00
mike12345567
b19df9da22
Some final updates to get event spyOn working again.
2023-03-30 17:15:49 +01:00
mike12345567
24fc72657d
Fixing all broken test cases after breaking out context fully from jestSetup/backend-core jest loading.
2023-03-30 16:35:25 +01:00
mike12345567
47897c8afa
Basic moving around of assets.
2023-03-30 16:07:59 +01:00
mike12345567
d6f38bc0ba
Merge branch 'develop' of github.com:Budibase/budibase into test/coverage-bckend-core
2023-03-30 14:14:25 +01:00
Mateus Badan de Pieri
02f33b59bb
changing url
2023-03-30 13:42:04 +01:00
Rory Powell
38e6d61709
Explictly check for google datasource configured ( #10165 )
...
* Explictly check for google datasource configured
* Unit tests for getGoogleDatasourceConfig
* Update /api/global/configs/public test + lint
2023-03-30 13:40:59 +01:00
Mateus Badan de Pieri
0c10803cd9
Create file and function to AddTenantToUrl
2023-03-30 13:38:17 +01:00
adrinr
efff31e181
Test user groups
2023-03-29 17:02:56 +01:00
adrinr
62cd6a43f2
Remove "duplicated" events
2023-03-28 16:46:23 +01:00
adrinr
31eaa36883
Unify create events
2023-03-28 16:46:23 +01:00
adrinr
26f077cc1c
Event on delete
2023-03-28 16:46:23 +01:00
adrinr
cbadf69a29
Dispatch event on user update
2023-03-28 16:46:23 +01:00
adrinr
7840470d83
Add create test
2023-03-28 16:46:23 +01:00
adrinr
344a34ac7c
Fix build errors
2023-03-28 16:46:23 +01:00
adrinr
4ac682a3c2
Move creators to structures
2023-03-28 16:46:22 +01:00
adrinr
beb4118582
Renames
2023-03-28 16:46:22 +01:00
adrinr
f62647f284
Feature tests
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
adrinr
4d854ea5a7
Merge remote-tracking branch 'origin/develop' into bug/budi-5901-usage-quota-document-conflicts-can-cause
2023-03-07 12:41:58 +01:00
Rory Powell
51b5dc98b4
Account portal no passwords sso ( #9861 )
...
* Structures and types updates for account-portal-no-passwords-sso
* lint
2023-03-02 14:38:15 +00:00
adrinr
dded8beaeb
Fix writethrough falling behind
2023-03-01 13:16:57 +01:00
adrinr
c254c565e4
Use redlock for writethrough
2023-02-28 14:54:34 +01:00
mike12345567
6fac00b3de
Attempting to fix issues where wrong port is picked for test containers, occurred a lot locally.
2023-02-27 21:19:07 +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
d6b0b7610a
Fixing circular dependencies which were blocking tests.
2023-02-24 17:31:58 +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
d3a7286711
Configs updates: remove circular deps, dedicated module, typing improvements, reduce db reads
2023-02-23 13:41:35 +00:00
Rory Powell
940de8b6a0
Run CI steps in parallel ( #9760 )
...
* Parallel CI
* Add build to integration test
* Add checkout to top of each run
* Revert branch update for ci job
* Experiment with --runInBand for CI
* Fix intermittent backend-core migration test failure
* Fix hanging worker redis connection
* Update naming from reset to newTenant
2023-02-21 17:13:24 +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
eb5aa8786d
Merge pull request #9670 from Budibase/budi-6559-enable-higher-concurrency-and-resiliency
...
Enable higher concurrency and resiliency in worker tests
2023-02-13 14:31:14 +00:00
Rory Powell
07e5598538
Enable use of redis container in worker tests
2023-02-13 12:09:16 +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
Mateus Badan de Pieri
89bad2d45a
Merge branch 'develop' into tests/environment-variables
2023-02-07 16:15:57 +00:00
Adria Navarro
4908cc5387
Spin up postgres only on the postgres test
2023-02-06 19:43:08 +00:00
adrinr
7d3c24d257
Add pg test container
2023-02-06 13:07:21 +00:00
adrinr
11a7742d90
Cleanup
2023-02-03 19:23:36 +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
e6dda787ae
Fix possible nulls
2023-02-01 15:02:31 +00:00
mike12345567
263d588191
Environment variable test base.
2023-01-31 15:27:16 +00:00