redash/tests
Omer Lachish 5afd0554d0
Add support for CSRF tokens (#5055)
* add flask-wtf

* add CSRF tokens to all static forms

* add CSRF tokens to all axios requests

* disable CSRF validation in unit tests

* support CSRF-protected requests in *most* cypress tests

* don't enfroce CSRF checks by default

* avoid CSRF enforcement in unit tests

* remove redundant spread

* some camel casing hiccups

* always yield the CSRF cookie, but avoid enforcing it if CSRF toggle is off

* Restyled by prettier (#5056)

Co-authored-by: Restyled.io <commits@restyled.io>

* set a CSRF header only if cookie is present

* enforce CSRF in CI

* install lodash directly for Cypress

* install request-cookies directly for Cypress. We should probably start loading package.json deps

* enable CSRF support when logout and login happen within the same spec

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
2020-08-09 15:47:00 +03:00
..
extensions Fix bundle-extensions script to work on recent importlib-resources. (#5050) 2020-07-16 23:05:22 +03:00
handlers Dashboard URL does not show new name when dashboard name is updated (#1009) 2020-07-16 23:03:59 +03:00
metrics Add additional statsd metrics for worker/scheduler (#4884) 2020-05-20 14:35:55 -07:00
models allow comparison with strings containing numbers as alert values (#4705) 2020-03-04 12:40:23 +02:00
query_runner Update requests usages not to allow redirects (#4924) 2020-05-31 12:49:39 +03:00
serializers Support download as TSV File (#4445) 2019-12-26 16:16:48 +02:00
tasks Delete locks for cancelled queries (#5006) 2020-06-29 13:09:01 +03:00
utils Nest query ACL to dropdowns (#3544) 2019-03-20 09:16:10 +02:00
__init__.py Add support for CSRF tokens (#5055) 2020-08-09 15:47:00 +03:00
factories.py Use lambda on options for destinations factory (#4912) 2020-05-24 22:22:01 +03:00
test_authentication.py Get rid of six and fix str/unicode types regression that became active on Python 3. (#4533) 2020-01-14 12:51:36 +02:00
test_cli.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_configuration.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_handlers.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_models.py refresh_queries shouldn't break because of a single query having a bad schedule object (#4163) 2020-03-01 11:02:46 +02:00
test_permissions.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_utils.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00