Benjamin Dauvergne
5e1b5a1169
tests_multitenant: add test on settings.json reloading ( #33563 )
2019-06-04 16:41:54 +02:00
Benjamin Dauvergne
570722b01a
code style ( #33563 )
2019-06-04 16:41:54 +02:00
Benjamin Dauvergne
2263f59679
multitenant: wrap schema creation in atomic() ( #23119 )
2019-03-18 15:01:11 +01:00
Benjamin Dauvergne
f76a6a84e8
use BRANCH_NAME for naming test databases ( #31337 )
2019-03-18 11:53:15 +01:00
Frédéric Péters
7aa49fcf12
misc: look for portal agent associated to user OU when in Authentic ( #29658 )
2019-02-06 10:30:11 +01:00
Benjamin Dauvergne
ffaeb45057
debian: add journald support to debian_config_common ( fixes #23471 )
2019-01-15 00:15:18 +01:00
Benjamin Dauvergne
8b45ce4986
hobo: add setting loader for variables ( #28930 )
...
Variables must be prefixed with SETTING_, suffix .extend and .update are
supported.
Ex.: SETTING_LDAP_AUTH_SETTINGS.extend = [{...}]
2019-01-14 10:36:04 +01:00
Frédéric Péters
20da13f842
multitenant: use environment to get application name ( #29323 )
2018-12-24 09:20:00 +01:00
Frédéric Péters
c9e094fb1c
tests: adapt multitenant tests to pass whatever their order
2018-11-12 21:42:38 +01:00
Frédéric Péters
44dbfbeed8
multitenant: add loader to get settings from theme ( #26636 )
2018-11-12 20:13:34 +01:00
Benjamin Dauvergne
c37e528757
multitenant: implement .extend and .update suffix for key in settings.json ( #24700 )
2018-07-03 16:14:01 +02:00
Benjamin Dauvergne
ffa42d25cf
Revert "misc: update for pytest 3.3, pytest-catchlog is no longer required"
...
pytest 3.4 restored previous behaviour of having only one root logger
handler.
This reverts commit 9dd347f926
.
2018-06-18 11:48:18 +02:00
Emmanuel Cazenave
fe017d9deb
tests: dynamically change ALLOWED_HOSTS in multitenants tests
2018-04-04 15:14:23 +02:00
Benjamin Dauvergne
72ca424f10
multitenant: shorten schema names to stay within postgresql limits ( #22494 )
2018-03-13 16:57:50 +01:00
Frédéric Péters
9dd347f926
misc: update for pytest 3.3, pytest-catchlog is no longer required
2017-11-29 23:50:11 +01:00
Frédéric Péters
652683f737
settings loaders: update settings with unique cookie names ( #18550 )
2017-09-09 13:49:29 +02:00
Thomas NOËL
4643f93bbc
hobo_notify: sync is_staff with is_superuser ( #15977 )
2017-05-17 11:36:03 +02:00
Frédéric Péters
1b306f5139
debian: add support for TEMPLATES in settings ( #15958 )
2017-05-02 15:56:34 +02:00
Jean-Baptiste Jaillet
1e1ee079bd
multitenant: add delete_tenant command ( #15513 )
2017-03-31 12:34:41 +02:00
Benjamin Dauvergne
ee4c8da606
tests: replace pytest-capturelog by pytest-catchlog
...
catchlog is a maintained fork of capturelog.
2017-03-22 23:36:23 +01:00
Frédéric Péters
4eaecb2f34
tests: declare new "secondary" key as expected ( #13838 )
2016-12-09 16:00:54 +01:00
Benjamin Dauvergne
96a60945e8
tests: stop checking for defaults parameters to Command.handle()
...
It depends on the version of Django, so it's better to ignore it.
2016-09-26 10:39:32 +02:00
Benjamin Dauvergne
66665d94ff
tests: use a transactional db for multitenant tests
2016-09-26 10:39:25 +02:00
Frédéric Péters
3332602182
tests: check log record IP against the correct value ( #13299 )
2016-09-25 17:29:18 +02:00
Benjamin Dauvergne
c710098857
tests: make test conform to log filter ( fixes #11326 )
2016-06-13 19:45:41 +02:00
Benjamin Dauvergne
5786f886a3
common: provisiong roles by their name not their uuid ( fixes #11298 )
2016-06-13 07:35:34 +02:00
Benjamin Dauvergne
a7f8b9ffbe
add RequestContextFilter log filter ( fixes #10309 )
...
It adds tenant, ip, request_id, user, user_email, user_uuid,
user_name, user_uuid to log records. It depends upon StoreRequestMiddleware
to get to request and user variables.
2016-03-16 16:08:10 +01:00
Benjamin Dauvergne
95cb7b6e6f
add XForwardedForMiddleware ( fixes #10307 )
...
To activate it set USE_X_FORWARDED_FOR = True.
2016-03-16 16:08:10 +01:00
Benjamin Dauvergne
86e0b000bf
tests: prevent ImproperlyConfigured exception from django-mellon
2016-03-02 20:56:30 +01:00
Serghei Mihai
f36985e242
settings_loaders: compute a symmetric shared secret for services ( #8580 )
...
Secret is computed by appying xor to the SHA-256 hash of each service
secret, making it insensible to the ordering of the two secrets.
Tests of the basic properties of the shared_secret() function are added.
2016-01-26 03:11:42 +01:00
Benjamin Dauvergne
4359db0c35
tests_multitenant: restore default settings after modifying them ( #8580 )
2016-01-26 03:11:42 +01:00
Benjamin Dauvergne
f23bd9e70a
agent/authentic2: provision the is_superuser attribute ( fixes #9230 )
2016-01-11 22:10:33 +01:00
Thomas NOËL
4996f592ec
settings: replace - by _ in $slug_url TEMPLATE_VARS ( #8827 )
2015-11-02 16:05:33 +01:00
Benjamin Dauvergne
474df92c0a
add option --all-tenants to tenant_command ( fixes #8811 )
2015-10-29 11:14:51 +01:00
Benjamin Dauvergne
af772167d3
agent/common: add user provisionning and tests for common agent ( #8440 )
2015-10-13 11:46:52 +02:00
Benjamin Dauvergne
6c29ea93cf
agent/authentic2: make objects homogenous in a provisionning message ( #8440 )
...
In order to support 'full' provisionning of different kinds of objects,
we impose that in the same message all objects are of the same type.
2015-10-12 22:28:48 +02:00
Benjamin Dauvergne
0b0ef397b8
tests: add tests for the multitenant framework ( #8425 )
...
tests/test_settings.py is moved in this new test suite. Tested are the
hobo_notify script and the simple creation of user objects.
2015-10-05 19:19:33 +02:00