1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00
Commit graph

81 commits

Author SHA1 Message Date
Sam Rose 545c67eac6
Remove mssql mock, unify SQL-based query tests. 2024-03-20 17:59:35 +00:00
Sam Rose a81a1b13ce
Remove mysql mocks. 2024-03-20 16:55:34 +00:00
Sam Rose 217b39c232
Reenable no-unused-vars 2024-03-20 11:46:39 +00:00
Sam Rose 9eeb04fa95
Fix broken mocks. 2024-03-19 16:50:48 +00:00
Sam Rose 80008a0739
Reenable no-inner-declarations. 2024-03-19 11:29:19 +00:00
Sam Rose aa20088274
Fix tests. 2024-03-06 16:57:29 +00:00
Sam Rose 8e9db069e5
Remove all uses of test.com in the code, replace them with example.com and create a lint rule to prevent this in future. 2024-02-08 16:32:14 +00:00
mike12345567 c4eae33b67 Fixing mock to cover getReadStream in object store. 2024-02-01 11:09:28 +00:00
Peter Clement 61b34b3ead mock out pro call 2024-01-16 16:58:13 +00:00
Adria Navarro db2c20e3ae eslint import/newline-after-import 2023-11-20 21:52:29 +01:00
mike12345567 41d99f6a58 Updating app backup exports to not include automation logs as these bloat the backups. 2023-10-30 17:41:08 +00:00
Rory Powell 79bec7d86d Add force exit, -e flag and streaming to tests (#10151)
* Add force exit, -e flag and streaming to tests

* Temp remove script usage from worker tests

* Revert "Temp remove script usage from worker tests"

This reverts commit 5e0ed2e92d.

* Always fail test

* Ignore server test package from coverage report

* Unscope server only

* Run all server tests again

* Update backend core test script to fail when any command fails and force exit

* Don't try to require client in test

* Port memory limit fix from develop

* Remove always failing test and commented out block for client require

* Fixing some issues with test cases.

* Revert assertions in internalSearch.spec.js

---------

Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2023-03-31 10:32:13 +01:00
adrinr f85ea527bd Add tests for adding/removing columns in a google spreadsheet 2023-02-27 17:25:48 +01:00
Adria Navarro 16e53957bc Merge branch 'develop' into feature/dependencies-image 2023-01-30 18:54:05 +00:00
adrinr 7027abeaa2 Fix issues with parallel tests and self/cloud modes 2023-01-26 18:20:21 +00:00
Adria Navarro Redo 13af7aa730 Add aws-sdk mock back 2023-01-26 18:20:21 +00:00
Adria Navarro 9371f19419 Remove mocks 2023-01-24 17:48:49 +00:00
mike12345567 03df57d077 Adding in basic implementation of variable usage, getting from pro and enriching through new datasource SDK. 2023-01-11 17:57:51 +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
mike12345567 72c9aadae0 Updating test cases - trying to get everything in order for merge. 2022-11-14 20:25:05 +00:00
melohagan cc44430638 Merge pull request #7521 from Budibase/feature/s3-bucket-connector
S3 bucket connector improvements
2022-11-01 09:56:47 +00:00
mike12345567 3d98acc28a Minor test rework after improving startup, a lot of mocks weren't being used correctly. 2022-10-27 15:15:08 +01:00
Mel O'Hagan d69abc4569 Merge branch 'develop' into feature/s3-bucket-connector 2022-10-26 16:37:11 +01:00
Mel O'Hagan b6eebad75f Fix types 2022-10-03 19:10:01 +01:00
mike12345567 f49d61bc5c Updating test cases to TS to get them working properly with the full TS implementations. 2022-08-31 19:21:45 +01:00
Mel O'Hagan 0e44703e95 Delete method S3 Bucket 2022-08-30 19:56:08 +01:00
Mel O'Hagan 088cf26b46 Create Bucket 2022-08-30 19:17:10 +01:00
melohagan 964e1a2d5e Merge pull request #6895 from Budibase/bug/sev2/mongodb-fixes
Support ObjectId in MongoDB operators
2022-08-10 14:54:47 +01:00
mike12345567 31e83b3f4c Adding unit tests for internal DB lucene syntax building. 2022-08-08 19:17:28 +01:00
Mel O'Hagan fe0163ac29 Bug fix findOneAndUpdate 2022-08-08 17:53:17 +01:00
Mel O'Hagan c289d72816 Add unit tests for ObjectId 2022-08-08 17:01:56 +01:00
Dean 28f722cf4b Fixes for Rest API request UI. Rest test fixes for XML API request body. Fix for raw XML api request body parsing issue. General fixes for query testing. 2022-06-17 12:00:42 +01:00
mike12345567 f0211a0ce8 Fixing mock. 2022-05-20 18:08:48 +01:00
Martin McKeaveney 6bc6000a14 remove postgres connection pooling 2022-04-28 23:24:52 +01:00
Martin McKeaveney 97db271fce firebase tests complete 2022-04-28 22:59:25 +01:00
Martin McKeaveney a91cf354b6 renamable buckets, started firebase tests, onboarding modal copy update 2022-04-26 17:12:47 +01:00
mike12345567 63bb4f34c4 Merge branch 'master' of github.com:Budibase/budibase into develop 2022-03-04 11:25:32 +00:00
Michael Drury 64e65e25ec Updating test case to handle new promise library. 2022-03-03 23:50:46 +00:00
Michael Drury 01bb56cbf4 Adding a testing system which generates the schema and compares against responses. 2022-02-24 23:21:10 +00:00
Maurits Lourens 2577a6631a run prettier + lint over typescript files as well 2022-01-20 09:17:08 +01:00
mike12345567 8d9db5c846 Adding test case to check that query dynamic variables are cached correctly and error scenario is handled. 2022-01-05 15:01:28 +00:00
mike12345567 44a8d36c91 Adding basic test cases for static and dynamic variables (backend). 2022-01-04 18:23:45 +00:00
mike12345567 b48c30a7c0 Updating mocks. 2021-12-09 14:12:01 +00:00
Rory Powell d58b90cac1 Merge branch 'oracle-datasource' into oracle-datatasource-plus 2021-11-22 10:50:34 +00:00
Rory Powell 345490fed3 Tests 2021-11-18 12:05:30 +00:00
Rory Powell 6ac31e0854 Merge pull request #3178 from Budibase/postgres-schema
Postgres: Use another schema other than 'public'
2021-11-10 10:03:25 +00:00
mike12345567 a78230e23b Reworking MS-SQL test case to be able to get the sql now with a request being made for each internal query, rather than just at connection. 2021-11-09 11:16:12 +00:00
Rory Powell 8b8c923541 Update tests 2021-10-27 17:21:29 +01:00
Martin McKeaveney 789cfa0768 fix tests 2021-10-21 18:05:18 +01:00