Commit Graph

37 Commits

Author SHA1 Message Date
Frédéric Péters 7dbb469a4f tests: don't make theme_base go through dedicated hobo code path 2019-02-08 15:09:48 +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
Frédéric Péters 6b6f4dc4b3 tests: adapt mocked requests.get to accept all args (#30052) 2019-02-04 15:07:01 +01:00
Frédéric Péters 673f8c21e0 turn home page into a list of services + status (#26761) 2018-12-04 21:17:42 +01:00
Frédéric Péters d5984fa6c3 add caching to health API (#26836) 2018-11-29 08:13:01 +01:00
Christophe Siraut 2f6af6bd39 api: return health data as a dictionary with service slugs as keys (#26835) 2018-11-23 15:45:36 +01:00
Frédéric Péters e84ba975b4 tests: add missing global fixtures 2018-09-28 16:07:19 +02:00
Christophe Siraut a6df6bdcd6 general: provide a health api (#23823) 2018-09-28 15:52:36 +02:00
Emmanuel Cazenave c336821d54 allow string or boolean kind for attribute definition (#23306) 2018-06-05 17:05:49 +02:00
Frédéric Péters ffda2774d8 tests: run with templates debugging turned on to get template sources 2018-04-04 15:52:15 +02:00
Emmanuel Cazenave 2fde2a61b8 tests: update checks of response location 2018-04-04 15:14:23 +02:00
Emmanuel Cazenave 5affc1bdf5 tests: update checks for shared template source 2018-04-04 15:14:23 +02:00
Emmanuel Cazenave 8c29354aef tests: add ALLOWED_HOSTS to tests settings 2018-04-04 15:14:23 +02:00
Frédéric Péters 734e0c14a4 tests: don't check for a single request as the thread may have been running 2017-09-08 14:17:41 +02:00
Frédéric Péters 8837b45973 misc: add multi-page theme skeleton cache (#17311) 2017-08-11 14:18:56 +02:00
Frédéric Péters fae9989858 tests: add required OZWILLO_SECRET to test settings 2017-06-10 21:09:18 +02:00
Frédéric Péters 4ff02f33a0 tests: include hobo.contrib.ozwillo in INSTALLED_APPS
So at least syntax errors will be spotted early on.
2017-06-10 20:54:08 +02:00
Jean-Baptiste Jaillet 5c37a4a6bc environment: test slugs are unique (#9154)
test if slugs are unique between different services
2017-03-23 14:14:23 +01:00
Benjamin Dauvergne 47f6d108b0 tox.ini: add a nomigrations option 2016-03-16 16:08:10 +01:00
Benjamin Dauvergne dc7382d828 basic tests do not need a TENANT_BASE (fixes #8956) 2015-11-16 09:52:47 +01:00
Benjamin Dauvergne 00df1122a4 signature: import signature module from passerelle (fixes #8892)
Also add tests and use SystemRandom instead of the twister PRNG.
2015-11-06 13:36:05 +01:00
Frédéric Péters 67ea16718c general: reorg home with links to passerelle/profile/variables/sites (#7854) 2015-10-24 18:08:27 +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
Benjamin Dauvergne 556b74bd12 multitenant: monkeypatch threading class directly referencing the old and new Thread class (#7933)
Those classes should use super() but are certainly older.
2015-10-05 16:36:32 +02:00
Benjamin Dauvergne fe411a6df3 tests: test multitenant cache (#7659) 2015-07-23 18:57:32 +02:00
Benjamin Dauvergne 29f2cc4b71 multitenant: create a tenant aware Thread class and monkeypatch the official class (#7659, #7635) 2015-07-23 18:57:32 +02:00
Benjamin Dauvergne 9467a61e3e multitenant: implement multitenant settings wihout middleware (fixes #7659)
The new implementation places itself inside the django.conf.settings
object when the ready() method of the hobo.multitenant app object is
called. It intercepts getattr/setattr/delattr calls, retrieves the
current tenant from django.db.connection.tenant and load settings into
UserSettingsHolder() using existing settings loaders.

TenantSettingsMiddleware is removed.
2015-07-23 18:57:32 +02:00
Frédéric Péters d1363c004c settings: make local variables overwrite global ones (#7771) 2015-07-05 09:37:37 +02:00
Frédéric Péters 443b9589bc tests: disable apt_cache when testing version middleware 2015-06-08 22:24:31 +02:00
Frédéric Péters 2a5c82e8b4 tests: add a basic test of the version middleware 2015-06-08 22:08:54 +02:00
Frédéric Péters b24d30aa82 general: distribute profile in hobo.json (#7171)
This adds hobo/deploy/, in charge of creating the hobo.json content and
distributing it to agents (via a post_save signal calling to celery).
2015-05-08 12:25:20 +02:00
Frédéric Péters e385ea8363 tests: fix typo in test name 2015-05-08 10:26:13 +02:00
Frédéric Péters fcff02368f tests: add tests for CORSSettings settings loader 2015-04-26 14:02:16 +02:00
Frédéric Péters 497d783ff8 tests: add tests for settings loaders 2015-04-26 13:57:12 +02:00
Frédéric Péters 4db3c685be tests: starting multitenant tests 2015-04-26 10:14:21 +02:00
Frédéric Péters 5811a2028c tests: move existing test case to py.test format 2015-04-25 20:58:26 +02:00
Frédéric Péters f807911ec2 tests: initial manager tests 2015-04-25 20:58:26 +02:00