1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00
Commit graph

58 commits

Author SHA1 Message Date
mike12345567
cca1b59c76 Final server test fixes, after all updates to context/removal of context faking. 2022-11-15 19:04:39 +00:00
mike12345567
3faac89c7a Some updates for currentapp.spec.js test case. 2022-11-15 17:35:17 +00:00
mike12345567
1af47003c5 Updating test cases - trying to get everything in order for merge. 2022-11-14 20:25:05 +00:00
mike12345567
fd624e097a Typescript conversions, as well as updating context to just use an object map. 2022-11-10 17:38:26 +00:00
Peter Clement
a5d0b8c74b fixing bug on multi tenant environment 2022-07-22 10:12:16 +01:00
mike12345567
95bcb1ca9c Fixing issue with db init as part of the jest require. 2022-04-26 18:28:37 +01:00
Rory Powell
0f29b0cb03 Test fixes 2022-04-26 15:07:21 +01:00
mike12345567
fe846f86a5 Fixing issues with test cases - a lot of test cases didn't setup tenancy in any format, which now means that the API endpoints they call would not have access to a Global DB instance. Also had to disable the closing of the database in test as this was removing the database from memory, meaning future calls would find an empty database when they opened it. 2022-04-21 14:56:14 +01:00
Rory Powell
769f48f935 Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
Rory Powell
bcc84bf1fd Link app context with tenancy, remove app tenancy middleware 2022-03-24 13:04:49 +00:00
mike12345567
76e24018be Merge branch 'develop' of github.com:Budibase/budibase into lab-day/refactor-app-db 2022-01-31 14:09:07 +00:00
mike12345567
417bf98ec9 Tests updating, all now passing, fixed some issues discovered by them. 2022-01-28 15:43:51 +00:00
Rory Powell
5cb6e19274 Add CSRF Token 2022-01-25 22:54:50 +00:00
Rory Powell
66a84e8fe6 Calculate total rows in migration, centralise quota enabled logic and tidy to use env vars only 2022-01-17 12:44:53 +00:00
mike12345567
d89cf66343 Merge branch 'develop' of github.com:Budibase/budibase into fix/sync-apps-reset-rows-quotas 2022-01-12 13:20:22 +00:00
mike12345567
6817d6cf46 Fixing test mocking. 2022-01-12 11:50:14 +00:00
mike12345567
5d9b3af332 Refactoring core library usage in monorepo, make it a bit cleaner/easier to search/more standardised. 2022-01-12 11:32:14 +00:00
Rory Powell
5671244274 Merge branch 'develop' into fix/sync-apps-reset-rows-quotas 2022-01-12 09:34:14 +00:00
Rory Powell
76463bc368 Enable migration 2022-01-11 18:38:18 +00:00
mike12345567
836a2f5863 Switching out @budibase/auth to @budibase/backend-core. 2022-01-10 19:33:00 +00:00
mike12345567
624ab3648c Fixing issue where database wasn't accessible in authorized test. 2021-11-15 15:57:02 +00:00
Rory Powell
fc81644255 Fix unit tests 2021-10-12 14:03:47 +01:00
Martin McKeaveney
6681542ab5 fix tests 2021-09-30 10:35:53 +01:00
Martin McKeaveney
5b1ae778da fallback SMTP configuration for cloud 2021-09-27 14:57:22 +01:00
mike12345567
2bee348721 Fixing test cases. 2021-07-08 00:30:55 +01:00
mike12345567
19da122425 Updating tests to use latest version of jest, which broke a lot of things, but was necessary to get proper ts-jest support. 2021-06-25 13:46:02 +01:00
Martin McKeaveney
b1b73e1380 fixing various babel issues within tests 2021-06-01 17:09:26 +01:00
mike12345567
397a4d883f Fixing server test cases. 2021-05-27 15:40:55 +01:00
mike12345567
f56250824c Adding a debounced updated at timestamp to applications. 2021-05-21 13:07:10 +01:00
mike12345567
fba63134d1 Fixing some issues found when testing. 2021-05-20 20:48:24 +01:00
mike12345567
2d0122f7d6 A general re-work of some parts of the auth lib, as well as moving roles/permissions around to make it possible to build an admin API which has role knowledge. 2021-05-14 15:43:41 +01:00
mike12345567
d985d338ec Updating test cases and some re-work of the email system. 2021-04-23 18:07:39 +01:00
mike12345567
bb5dbf27aa Some re-work of the auth package, making it a bit easier to use/less likely to make a mistake. 2021-04-21 16:42:44 +01:00
mike12345567
ade007482c Updating the server to remove use of the email in the user ID. 2021-04-19 16:26:33 +01:00
mike12345567
d0bdd113e1 Removing the lookup of _id in usage quota when in dev/self host for performance reasons as part of usage quota, re-writing some bits of fetch self for cleaner implementation, fixing some issues with updating/saving users from within app. 2021-04-13 17:11:55 +01:00
mike12345567
7e6855262b Fixing some issues with the ctx.user, this was previously filled in by the old auth middleware. 2021-04-13 15:27:47 +01:00
mike12345567
f219b4e4fb Removing test cases which are no longer valid. 2021-04-13 13:37:54 +01:00
mike12345567
df55363133 Merge branch 'feature/global-user-management' of github.com:Budibase/budibase into feature/global-user-management 2021-04-13 13:35:21 +01:00
mike12345567
a209606739 Adding test cases for current app middleware as well as removing some old middlewares that were no longer used. 2021-04-13 13:32:09 +01:00
Martin McKeaveney
b728fc1a3c currentapp being set correctly for user 2021-04-13 13:26:13 +01:00
mike12345567
2aa26a2302 Some work towards implementing the current app cookie, removing some old dead code and re-working some of the different middlewares involved. 2021-04-12 18:31:58 +01:00
mike12345567
eed1228803 Updating snapshot for middleware test. 2021-04-12 11:09:06 +01:00
mike12345567
dccd559b56 Updating some test cases to work with new system. 2021-04-09 17:33:21 +01:00
mike12345567
29787032f0 Fixing an issue with builder auth, adding a temporary endpoint which the server can set builder token on. 2021-04-07 16:08:29 +01:00
mike12345567
18ce4a1e19 Updating authorization test case to remove check for builder security and removing builder security while auth is being worked on - added an option to start stack without server so that user can start it in a debug mode if desired. 2021-04-07 11:54:51 +01:00
Andrew Kingston
23641a5d56 Update URLs to use builder instead of _builder 2021-04-01 10:06:22 +01:00
mike12345567
73cf53d149 Getting rid of the CLOUD environment variable, this makes no sense anymore, now there is isDev() and isProd() which will work out the current state of the cluster. 2021-03-24 18:21:23 +00:00
mike12345567
e715423544 Fixing some test cases that were affected by file system refactor. 2021-03-23 18:04:53 +00:00
mike12345567
571ac3cf06 Testing some of the automation actions (still a few to complete) and adding quick test case for the self host stuff. 2021-03-11 18:29:48 +00:00
mike12345567
d9217b1148 Updating row tests, reducing console logging during tests for speed and clarity, testing some misc endpoints and updating search functionality to use a starts with operator when working with strings on rows. 2021-03-10 17:55:42 +00:00