Aravinth Manivannan
78d85ab9a9
feat: annotate license headers using reuse on text source files
2023-07-03 23:19:51 +05:30
realaravinth
249b6461ee
chore: migrate tests to also run with mariadb
2022-07-23 11:59:42 +05:30
realaravinth
4cd4605266
chore: use local app ctx
2022-05-27 15:25:10 +05:30
realaravinth
a971d4209d
fix and chore: refactor tests to minimize initializing DB connections
...
SUMMARY
The test suite was spinning up way too many database connections that what's
strictly needed and so the test suite was failing with[0]:
code: "53300", message: "sorry, too many clients already"
EXPERIMENTS
Tried sharing database connection pool across all tests with
async_once[0] but faced:
- IO errors
The connections were probably getting dropped in between tests
- actix Actor errors
The actor was probably not getting initialized before a
a reference to the async_once initialized app
context(crate::data::Data) is retrieved and used
FIX
crate::tests was spinning up an App context
instance(crate::data::Data) for most utility functions, which was
unnecessarily excessive.
Each test now creates an instance of the application context at the
beginning and shared a reference with all test utility functions. So
number of database connections/app context instance = number of unit
tests.
[0]: permanently fixes #22
[1]: https://docs.rs/async_once/latest/async_once/
2022-05-14 12:55:56 +05:30
realaravinth
fc8a1670d2
update copyright notice
2022-01-08 22:16:05 +05:30
realaravinth
147f563ec8
demo user task
2021-08-09 11:56:25 +05:30
realaravinth
3c72d27b36
demo user
2021-08-09 10:37:19 +05:30
realaravinth
1b0a95e768
tests: get status code from err
2021-07-17 18:57:33 +05:30
realaravinth
8f87efeeb3
error correction, tests for err branches, rm get_token, get_token,
...
delete captcha
2021-07-17 17:43:53 +05:30
realaravinth
558dbef712
dupe email check and notifications table
2021-07-13 21:23:08 +05:30
realaravinth
47cca5c9a7
notifications view
2021-07-12 21:22:26 +05:30
realaravinth
b7ec1bca22
duplicate email check and address clippy warnings
2021-07-11 21:46:50 +05:30
realaravinth
d5aceb60b4
sign in with email
2021-06-29 19:42:07 +05:30
realaravinth
6cd477e227
multipart form was a bad idea
2021-06-28 19:58:01 +05:30
realaravinth
cc17f2048f
errorable and seperated runner methods for auth
2021-06-28 19:16:59 +05:30
realaravinth
91ca00ea79
get notifications
2021-05-10 15:38:09 +05:30
realaravinth
812b0ff2c9
add site key form
2021-05-03 20:24:03 +05:30
realaravinth
9d6b27a95b
pages use const routes
2021-05-02 18:11:56 +05:30
realaravinth
76ae2b03e9
migrated auth, account and meta to use const routes
2021-05-02 16:11:01 +05:30
realaravinth
4f27e1ab8d
using constants for routes
2021-05-02 12:39:37 +05:30
realaravinth
c7bac9e623
server-side password validation
2021-05-02 10:32:22 +05:30
realaravinth
a82d61ed27
api endpoints migrated to use auth middleware
2021-05-01 23:39:52 +05:30
realaravinth
7058af84d6
static dir renamed and cookie auth middleware
2021-05-01 11:28:39 +05:30
realaravinth
6e63771868
frontend: logout and add sitekey
2021-04-30 17:30:40 +05:30
realaravinth
06815469b7
set email
2021-04-14 09:45:59 +05:30
realaravinth
d32350e2b6
email optional
2021-04-12 11:14:21 +05:30
realaravinth
bbf182a918
changes to test suite to use new routes
2021-04-11 23:50:53 +05:30
realaravinth
08ec215709
update user secret
2021-04-10 21:44:08 +05:30
realaravinth
52ab947e3b
get user secret
2021-04-10 21:15:31 +05:30
realaravinth
4e7e8da574
rm domains and added authorization check at all endpoints
2021-04-09 16:52:05 +05:30
realaravinth
a3a118927e
swagger ui
2021-03-30 20:49:09 +05:30
realaravinth
8cc3146389
uname & email check
2021-03-30 15:32:32 +05:30
realaravinth
40dd7a2009
token update
2021-03-27 13:03:57 +05:30
realaravinth
e5dd22679f
domain verification
2021-03-27 12:39:20 +05:30
realaravinth
51764817f9
domain verification
2021-03-26 22:18:01 +05:30
realaravinth
ee548588a8
refactoring
2021-03-24 17:57:29 +05:30
realaravinth
e5ae38472d
levels, duration and tests
2021-03-13 23:50:14 +05:30