Commit Graph

344 Commits

Author SHA1 Message Date
mike12345567 b68697002a Anoter fix. 2024-07-24 16:48:35 +01:00
mike12345567 e9d3c48ff4 Fixing images to use a locked SHA, this means that we shouldn't have issues with CI breaking due to using images which are receiving updates (we've experienced two CI breakages due to MariaDB and MS-SQL updates). 2024-07-24 16:31:13 +01:00
Adria Navarro 89b5770155 Change image 2024-07-24 15:22:37 +02:00
Adria Navarro 82c8be5f55 Fix mssql testcontaint wait strategy 2024-07-24 14:52:40 +02:00
Sam Rose c7c2cb48e8
wip 2024-07-23 14:41:34 +01:00
Martin McKeaveney a180ffa1a1 update test names 2024-07-23 11:42:21 +01:00
Martin McKeaveney d50c937c68 use oracle coalesce 2024-07-23 11:39:50 +01:00
Martin McKeaveney 8fbb978cca fix tests 2024-07-23 11:20:14 +01:00
Martin McKeaveney 12b5fc2a2b add test for notequal 2024-07-22 21:28:44 +01:00
Martin McKeaveney 537c92b371 tidy 2024-07-22 21:23:27 +01:00
Martin McKeaveney 88ea3fdc07 unit tests and logic added to prevent coalesce being used by oracle 2024-07-22 21:00:20 +01:00
mike12345567 378bf6d42f Updating tests. 2024-07-03 13:40:57 +01:00
mike12345567 580e36f301 Updating test case. 2024-06-20 10:46:52 +01:00
mike12345567 d121633d8e Updating queries to be a bit more flexible to updates in the SQL layers. 2024-06-19 17:29:33 +01:00
Sam Rose c107ab937d
Remove rawQuery entirely. 2024-06-17 16:15:51 +01:00
Sam Rose 16cacb3de7
Convert mysql.spec.ts away from rawQuery. 2024-06-17 15:48:58 +01:00
Sam Rose c2320e4f5b
Convert postgres.spec.ts to use Knex instead of rawQuery. 2024-06-14 17:20:08 +01:00
Sam Rose f3c82cbf38
Ensure that sort order is always lowercased. 2024-06-14 11:00:34 +01:00
Sam Rose 96efb17678
Fix lint. 2024-06-11 17:52:02 +01:00
Sam Rose 85c59c0350
Changing tactic to relying on stable container names to prevent duplication. 2024-06-11 17:41:48 +01:00
Sam Rose 6a54b58303
? 2024-06-11 16:00:04 +01:00
Sam Rose af60ff4da7
Can't use retries with the sync API. 2024-06-11 15:43:12 +01:00
Sam Rose eac6106b06
Try the sync versions? 2024-06-11 15:38:25 +01:00
Sam Rose 2e67ae115e
Attempt to use unluck we get back from lock. 2024-06-11 15:33:18 +01:00
Sam Rose af0802df30
Only hold the lock during container start. 2024-06-11 14:43:45 +01:00
Sam Rose 1d1ca694c8
Lock starting containers. 2024-06-11 14:39:44 +01:00
mike12345567 155de99b68 Streaming to disk before passing onto S3. 2024-06-03 11:46:20 +01:00
Sam Rose 1777ac4b04
Fix mariadb healthcheck. 2024-05-31 14:59:15 +01:00
mike12345567 821708e79a Merge branch 'master' of github.com:Budibase/budibase into feature/audit-log-sqs 2024-05-24 16:32:43 +01:00
mike12345567 b18ca2670a Merge branch 'master' of github.com:Budibase/budibase into feature/audit-log-sqs 2024-05-24 12:22:20 +01:00
mike12345567 62c407d846 Updating test cases. 2024-05-24 12:15:28 +01:00
Sam Rose ef60893df1
Fix tests (take 4). 2024-05-23 17:02:08 +01:00
Sam Rose 325819ebae
Fix tests (take 3). 2024-05-23 16:13:07 +01:00
Michael Drury d8870f1852
Merge branch 'master' into feature/audit-log-sqs 2024-05-23 10:44:39 +01:00
mike12345567 e90aa58242 Fixing REST test failure (?). 2024-05-22 16:09:19 +01:00
mike12345567 ff8684d9b4 Merge branch 'master' of github.com:Budibase/budibase into feature/audit-log-sqs 2024-05-22 15:23:24 +01:00
Sam Rose e53dddfdf0
Merge branch 'master' into delete-sql-spec-ts-2 2024-05-22 10:35:16 +01:00
Adria Navarro a920161e92 Fix tests 2024-05-21 22:02:47 +02:00
mike12345567 b533a1df8c Merge branch 'master' of github.com:Budibase/budibase into feature/audit-log-sqs 2024-05-21 18:17:47 +01:00
Sam Rose 7f7ed9f0cb
Move more tests out of sql.spec.ts. 2024-05-21 17:38:38 +01:00
Sam Rose bc63a11979
Move sort stability check to search.spec.ts. 2024-05-21 14:20:05 +01:00
Sam Rose 9c9b2ff48d
Move empty object range tests out of sql.spec.ts. 2024-05-21 14:15:17 +01:00
Sam Rose 682cdfffe8
Respond to PR feedback. 2024-05-21 14:03:07 +01:00
Sam Rose 6bd984ab9c
Making progress towards deleting sql.spec.ts. 2024-05-21 11:51:42 +01:00
mike12345567 40dbe52c2e Fixing some issues with test cases. 2024-05-20 18:22:46 +01:00
mike12345567 e320524c63 Test case. 2024-05-17 14:37:01 +01:00
mike12345567 a8e12dfb6b Some fixes for the rest test cases which mocked too widely. 2024-05-15 14:40:08 +01:00
mike12345567 fcb535efee Adding test cases for content-disposition hacks. 2024-05-15 14:03:31 +01:00
Adria Navarro c0a2482a4e Fix test 2024-05-09 19:57:27 +02:00
mike12345567 ed1f9f19a7 Updating test case to cover this scenario properly. 2024-05-08 16:12:24 +01:00
Peter Clement 1d300c2577
Remove aws sdk global mock and update tests (#13637)
* Remove aws sdk global mock and update tests

* add awaits

* Minio healthcheck in tests.

* Bind to 127.0.0.1 instead of 0.0.0.0

* Fix port fetching for minio container.

* Actually fix port mapping this time.

* Pull minio container before running tests.

* Enable testcontainers debug logging.

* Promote minio container to always running in tests, like CouchDB.

* Remove testcontainers debug logging.

---------

Co-authored-by: Sam Rose <hello@samwho.dev>
2024-05-08 14:08:34 +01:00
Sam Rose dd02224806
Restart testcontainers every day, and add a script to kill them. 2024-04-26 14:01:52 +01:00
Sam Rose 777b5b5f53
Make REUSE_CONTAINERS the default for running tests. 2024-04-26 11:35:23 +01:00
Peter Clement a4c0328c53
REST file handling and SMTP automation block attachments (#13403)
* handle files in rest connector

* fetch presigned url and return

* further updates to handle files in rest connector

* remove unused important and fix extension bug

* wrong expiry param

* tests

* add const for temp bucket

* handle ttl on bucket

* more bucket ttl work

* split out fileresponse and xmlresponse into utils

* lint

* remove log

* fix tests

* some pr comments

* update function naming and lint

* adding back needed response for frontend

* use fsp

* handle different content-disposition and potential path traversal

* add test container for s3 / minio

* add test case for filename* and ascii filenames

* move tests into separate describe

* remove log

* up timeout

* switch to minio image instead of localstack

* use minio image instead of s3 for testing

* stream file upload instead

* use streamUpload and update signatures

* update bucketcreate return

* throw real error

* tidy up

* pro

* pro ref fix?

* pro fix

* pro fix?

* move minio test provider to backend-core

* update email builder to allow attachments

* testing for sending files via smtp

* use backend-core minio test container in server

* handle different types of url

* fix minio test provider

* test with container host

* lint

* try different hostname?

* Revert "try different hostname?"

This reverts commit cfefdb8ded.

* fix issue with fetching of signed url with test minio

* update autoamtion attachments to take filename and url

* fix tests

* pro ref

* fix parsing of url object

* pr comments and linting

* pro ref

* fix pro again

* fix pro

* account-portal

* fix null issue

* fix ref

* ref

* When sending a file attachment in email fetch it directly from our object store

* add more checks to ensure we're working with a signed url

* update test to account for direct object store read

* formatting

* fix time issues within test

* update bucket and path extraction to regex

* use const in regex

* pro

* Updating TTL handling in upload functions (#13539)

* Updating TTL handling in upload functions

* describe ttl type

* account for ttl creation in existing buckets and update types

* fix tests

* pro

* pro
2024-04-22 15:30:57 +00:00
mike12345567 60ed4d8443 Updating how between/less than/greater than are handled for sqlite. 2024-04-17 17:12:26 +01:00
mike12345567 828d78f2af Fixing build after recent type updates. 2024-04-17 14:47:56 +01:00
Michael Drury 8b0fc5ed5d Making table required. 2024-04-16 17:22:17 +01:00
Michael Drury 7d2861718a Making meta required in query JSON. 2024-04-16 16:41:39 +01:00
mike12345567 ebb79c16fe Aliasing support for SQS. 2024-04-12 16:15:36 +01:00
Michael Drury 737adfdea9
Merge branch 'master' into labday/sqs 2024-04-08 17:52:09 +01:00
Sam Rose 83c7f08c5a
Fix sql.spec.ts 2024-04-08 11:11:06 +01:00
mike12345567 30c81e58ec Some typing and test fixes. 2024-04-04 18:16:23 +01:00
mike12345567 65fa317f9e Fixing yarn lock merge conflict. 2024-04-04 17:23:28 +01:00
mike12345567 d11c316572 Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-04-04 15:02:25 +01:00
Sam Rose b2ef045ecf
Merge master. 2024-04-03 15:17:38 +01:00
Sam Rose db877b7802
Create unique MongoDB databases. 2024-04-03 12:55:44 +01:00
Sam Rose 79184e70af
Remove CONTAINER_NAMESPACE, it wasn't the solution. 2024-04-03 12:32:29 +01:00
Sam Rose 8cffdeda56
Re-use containers and create namespaces for each test. 2024-04-03 11:33:39 +01:00
Sam Rose 90cfdd661d
Rework how we connect to containers. 2024-03-28 17:36:26 +00:00
Sam Rose eb33dac9b1
Make container reuse optional, disabled by default. 2024-03-27 16:40:41 +00:00
Sam Rose 831c174362
Give SQL integrations their own database when fetching a new datasource. 2024-03-27 15:25:37 +00:00
Sam Rose b84bbd6003
Migrate viewV2.spec.ts to new datasource providers. 2024-03-26 14:43:17 +00:00
Sam Rose 158964c4d2
Got container reuse strategy in place, need to convert tests now. 2024-03-26 11:22:40 +00:00
Sam Rose 869ed4256e
Merge master. 2024-03-25 14:13:48 +00:00
Michael Drury 37b4b756ea Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-25 13:31:31 +00:00
Sam Rose a9aa409d7c
Fix up tests. 2024-03-22 15:01:40 +00:00
mike12345567 3a05076c3e Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-21 15:01:20 +00:00
Sam Rose 78c878c3ea
Merge branch 'master' into remove-mongodb-mock 2024-03-21 11:35:09 +00:00
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 681c53156f
Merge master. 2024-03-20 15:52:44 +00:00
Sam Rose ff22db3d9f
Fold MongoDB unit tests into integration tests, delete MongoDB mocks. 2024-03-20 15:42:06 +00:00
mike12345567 9995f71871 Merge branch 'master' of github.com:Budibase/budibase into labday/sqs 2024-03-20 13:45:27 +00:00
mike12345567 8df38b8bb2 Merging in most recent changes, recent SQL aliasing changes caused some big differences. 2024-03-20 12:42:07 +00:00
Sam Rose 217b39c232
Reenable no-unused-vars 2024-03-20 11:46:39 +00:00
Sam Rose 476f84c6d1
Merge branch 'master' into reenable-no-useless-escape 2024-03-19 16:00:07 +00:00
Sam Rose 7dc9e4ef3f
Fix incorrect test. 2024-03-19 15:34:02 +00:00
Sam Rose 5749333fc7
Reenable no-useless-escape. 2024-03-19 11:14:16 +00:00
Sam Rose 7a63dc9830
Making progress on getting the eslint-jest plugin working. 2024-03-19 10:46:59 +00:00
Sam Rose 1f63f0bddf
Run auto fix. 2024-03-19 09:46:10 +00:00
Sam Rose ae0eda21a5
Remove uses of console in tests. 2024-03-18 13:43:43 +00:00
Sam Rose aff0209176
MariaDB tests passing. 2024-03-12 15:27:34 +00:00
Sam Rose ce209a16b3
Get tests running with SQL Server. Need to make them pass next. 2024-03-12 10:42:42 +00:00
mike12345567 851a423615 Some typing updates to fix some build issues which were occurring. 2024-03-06 18:07:46 +00:00
Michael Drury b72edc21ec Linting. 2024-03-05 17:46:09 +00:00
Michael Drury 0520c0c540 Adding tests to confirm when aliasing should be used. 2024-03-05 17:27:35 +00:00
mike12345567 86aefcfe1a Updating test values. 2024-03-04 17:00:34 +00:00
mike12345567 a7fcd7cca1 Attempting to fix issue with table name needing to be aliased. 2024-03-04 16:55:10 +00:00
mike12345567 02e3b36cd8 Adding missing files. 2024-03-04 15:47:27 +00:00
mike12345567 7b7d10d1ff Fixing an issue with returning statements in MS-SQL and MySQL, when creating, updating or deleting rows the response is not retrieved correctly when aliased. 2024-03-04 15:47:04 +00:00