Commit Graph

20 Commits

Author SHA1 Message Date
3wc
ecc8f885fa Basic testing using flask-testing
This commit makes it possible to override settings during tests, by
switching capsulflask/__init__.py to a "create_app" pattern, and using
`dotenv_values` instead of `load_dotenv`.

The create_app() method returns a Flask app instance, to give
more control over when to initialise the app. This allows setting
environment variables in test files.

Then, use dotenv_values to override loaded .env variables with ones from
the environment, so that tests can set `POSTGRES_CONNECTION_PARAMETERS`
and `SPOKE_MODEL` (possibly others in future..).

Inital tests for the "landing" pages, and login / activation, are
included.
2021-07-23 03:02:15 +02:00
74d77224f7 finishing touches and fixes on managed IPs database migration 16 2021-07-09 14:35:23 -05:00
862b14545b more managed ips work: cli sql improvements, added admin panel 2021-07-09 14:13:28 -05:00
e685c8a773 start working on managed IPs 2021-07-08 14:10:14 -05:00
bdabd61057 fix defaults for running locally and make email server not required. 2021-07-07 13:47:21 -05:00
eba3bd6a5a fixing bugs with email ignore case feature 2020-12-29 19:03:37 -06:00
ff38858c74 fixing login email case sensitivity issues 2020-12-29 18:42:38 -06:00
fd7dd7390f implement anti-csrf measures in all posted forms 2020-05-22 16:04:47 -05:00
62a062fff2 fix bug when created query string is not present 2020-05-16 23:28:21 -05:00
5c1a977a87 remove query string XSS from login token 2020-05-16 23:05:45 -05:00
j3s
bae9c2311d Remove HTML part and 90 spaces from sent login email 2020-05-12 00:46:08 -05:00
231d1ed7c0 create capsul and capsuls list page working 2020-05-11 15:13:20 -05:00
18e6a1b141 starting to build console controller and views 2020-05-11 01:47:14 -05:00
7932db90d5 added FAQ, Changelog, and Support static pages 2020-05-10 22:55:16 -05:00
426fad7b10 first try at creating VirtualizationInterface 2020-05-10 18:59:30 -05:00
7fe0d9a9c5 fine-tuning login 2020-05-10 13:51:54 -05:00
e6fcb847f0 validate email address 2020-05-09 23:45:20 -05:00
3406ff3358 login is working 2020-05-09 23:32:13 -05:00
64bca1fd97 it sends a magic link when you log in 2020-05-09 22:59:22 -05:00
246ef00540 broken auth WIP 2020-05-09 20:36:14 -05:00