1
0
Fork 0
mirror of synced 2024-09-21 20:01:32 +12:00
Commit graph

147 commits

Author SHA1 Message Date
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
adrinr
651c367f75 Fix worker tests 2023-01-27 17:59:14 +00:00
mike12345567
75df57c3d1 Merge branch 'develop' of github.com:Budibase/budibase into feature/test-image 2023-01-11 10:31:57 +00:00
Rory Powell
fba7ef26ad Replace ts-jest with swc/jest (#9289)
- Add swc dependencies
- Add transform change to jest.config.ts
- Replace `export =` with `export default` in src code to enable code coverage to work with swc transformer
- Restructure backend-core errors package to allow for exporting error classes with ESM syntax
- Update backend-core to no longer use `export =`, export individual packages instead of replacing with `export default` for backwards compatibility
- Update event publishers to use `export default` - this was required for the `jest.spyOn` usage inside backend-core common mocks
- Restructure some jest.mock usages where declaring the jest.fn as a variable outside of the package mock threw an error
2023-01-11 09:37:37 +00:00
mike12345567
ea5b515783 Playing around with getting tests working. 2023-01-04 19:47:56 +00:00
Rory Powell
786039055e File authentication using presigned URLs (#8883)
* file auth wip

* Private plugin bucket wip

* Add etag to logo request, fix circular dependency

* Resolve cyclic dependency

* Ensure browser doesn't cache custom component

* Global file fixes

* File fixes / remove permaUrl

* Add ctx local storage

* Enable presigned url to work from any host

* Test fix

* Self hosting w/ S3 + other fixes

* Fix for serving dev app in multi tenant

* Fix backup restore and import attachment url processing, never store attachment urls

* Test fixes

* Unit tests WIP

* Replace file path with base64 encoded private key

* Multi tenancy tests for files

* Environment files fixes

* Post-merge build and test fixes

* Add debug conditional to all jest logging and revert/fix prod minio proxy_pass

* Re-add default '/' minio route :(

* Rename iconFile -> iconFileName

* Add cloudfront vars to k8s templates

* Remove public bucket policy

* Remove duplicated test
2022-12-15 11:35:22 +00:00
Peter Clement
9d841bc947 Server and Worker tests (#8928)
* automation unit tests

* row processor tests

* update executeQuery test

* update groups assertion

* some more worker tests

* plugin tests and tidying up

* linting

* temporarily disable group tests

* more tests

* fix import

* fix backup tests

* add pro mocks to worker

* check for app existence in import test

* test new tsconfig

* testing changes

* Pro test utils (#9020)

* Pro test utils changes

* Add test fixes

* Remove ts-ignore

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
Co-authored-by: Rory Powell <rory.codes@gmail.com>
2022-12-12 22:02:32 +00:00
Rory Powell
7a7bbd1857 Merge branch 'master' into develop 2022-12-01 14:39:05 +00:00
Mel O'Hagan
6fe2c38bce Move custom rbac from controller to routes 2022-11-30 09:29:56 +00:00
Mel O'Hagan
d0909392d7 Added unit tests 2022-11-29 16:11:53 +00:00
Mel O'Hagan
89db22858a lint 2022-11-29 15:14:29 +00:00
Mel O'Hagan
c476b20ac1 Fix unit tests 2022-11-29 15:13:58 +00:00
mike12345567
d6e9380c06 General work after running some tests in CI - general refactoring as well. 2022-11-28 17:54:04 +00:00
mike12345567
29dd98a7fc Merge branch 'develop' of github.com:Budibase/budibase into feature/replace-pouch 2022-11-16 18:12:31 +00:00
mike12345567
535fab7997 Some major reworks towards higher levels of typescript. 2022-11-16 17:23:12 +00:00
Rory Powell
adbf90887e Test fixes 2022-11-16 13:06:30 +00:00
Rory Powell
9c169087e6 Add copy button to sso callback urls, e2e unit testing for OIDC, stub out other auth tests 2022-11-16 11:34:16 +00:00
Rory Powell
1612044dc1 Merge branch 'develop' into subdomain-tenancy 2022-11-15 16:18:59 +00:00
Rory Powell
f48ff01045 ensure fetch and aws are always mocked 2022-11-15 15:50:15 +00:00
Rory Powell
9973f2e161 Bump jest and ts-jest to be consistent across backend packages to fix CI issue, test config updates 2022-11-14 22:55:47 +00:00
Rory Powell
c6fba4de3d Test fixes 2022-11-11 15:43:41 +00:00
Rory Powell
72562278c0 Support path variable tenancy detection, add /api/system/* tests, update no tenancy matchers to be more accurate 2022-11-11 11:10:07 +00:00
mike12345567
f07ea5cc7e Updating user API to user a single bulk endpoint rather than case sensitive named endpoints. 2022-09-21 18:05:45 +01:00
Rory Powell
276c455a11 Merge branch 'develop' into feature/day-pass-pricing 2022-09-01 15:26:16 +01:00
Rory Powell
0f724f34b5 Apply validation to invite users by email + results modal 2022-09-01 07:58:05 +01:00
Rory Powell
0d396c326e Update user creation UI 2022-08-25 22:56:58 +01:00
Rory Powell
59a53736ac update bulk create and bulk delete backend 2022-08-25 19:41:47 +01:00
Rory Powell
d591acf2d3 User fixes wip 2022-08-23 09:37:13 +01:00
Peter Clement
dca37a61da adding tests and pr comments 2022-07-27 10:20:39 +01:00
Rory Powell
7ebfaf8a31 Failover protection with event cache 2022-05-31 21:04:41 +01:00
Rory Powell
e98e659346 user / rbac events + tests 2022-04-08 01:28:22 +01:00
Rory Powell
8a08e9322f org settings events + tests + stub license events 2022-04-06 22:53:33 +01:00
Rory Powell
befb61c915 smtp events + centralise worker test config 2022-04-06 17:00:17 +01:00