passerelle/tests
Benjamin Dauvergne 941d080094 allow ressources to disable error logging in requests wrapper (#31114)
- modify ProxyLogger to get request from the "extra" parameter like Django, it
  incurs that we need to clean extra from non JSON-serializable values
  before using it in the ResourceLog model.

- modify to_json() so that request is passed to every log calls as
  before commit 5286592cf, now we will get error mails containing Django
  request details.

- resource can set "log_requests_errors = False" so that the Request
  wrapper never log at the error/warning level.

- small annoyance: requests errors are logged two times, at the INFO
  level and the ERROR level.

- connector MDPH13 is adapted to use all this.
2019-03-07 18:12:59 +01:00
..
data tests: non-regression (#30995) 2019-03-01 15:58:02 +01:00
__init__.py general: don't log anything for connectors that are down (#25611) 2018-08-17 14:51:05 +02:00
conftest.py tests: clear cache between tests (#30458) 2019-03-01 17:55:02 +01:00
settings.py add MDPH13 connector (#30692) 2019-03-05 15:12:07 +01:00
test_actesweb.py tests: non-regression (#30995) 2019-03-01 15:58:02 +01:00
test_adict.py utils: rename utils.LoggedRequest as utils.Request (#20789) 2017-12-19 10:22:15 +01:00
test_agoraplus.py agoraplus: do not consider seconds in test (#21865) 2019-01-16 09:32:00 +01:00
test_airquality.py utils: rename utils.LoggedRequest as utils.Request (#20789) 2017-12-19 10:22:15 +01:00
test_api_access.py general: use full path to modules (#15689) 2017-12-20 12:17:41 +01:00
test_api_particulier.py api_particulier: new test system (#30708) 2019-02-15 15:38:27 +01:00
test_arcgis.py move ArcGIS from contrib to apps (#17763) 2018-11-06 11:42:10 +01:00
test_arcgis_nancy.py move ArcGIS from contrib to apps (#17763) 2018-11-06 11:42:10 +01:00
test_arpege_ecp.py arpege_ecp: mark demands as readable (#30380) 2019-02-04 22:52:26 +01:00
test_atos_genesys.py atos-genesys: do not use threads (#29320) 2018-12-24 08:47:15 +01:00
test_availability.py manage availability check through the UI (#29965) 2019-02-20 11:07:55 +01:00
test_base_adresse.py tests: mark some base_adresse tests as expected to fail (#30458) 2019-03-01 17:55:02 +01:00
test_cartads_cs.py add connector for Cart@DS CS (#27144) 2019-02-20 13:36:32 +01:00
test_cityweb.py tests: pass open file to etree.parse() in cityweb tests 2019-02-27 09:33:27 +01:00
test_clicrdv.py general: use full path to modules (#15689) 2017-12-20 12:17:41 +01:00
test_cmis.py cmis: use 'filename' parameter for wcs compliance (#22409) 2018-03-13 18:57:02 +01:00
test_cron.py general: use full path to modules (#15689) 2017-12-20 12:17:41 +01:00
test_csv_datasource.py tests: fix null character in charfield (#30458) 2019-03-01 17:55:02 +01:00
test_dpark.py dpark: fix typo in tests (#28438) 2018-11-28 17:12:01 +01:00
test_fake_family.py tests: use django-webtest instead of webtest.TestApp (#19881) 2017-11-06 15:02:51 +01:00
test_family.py family: fix family members retrieval (#22585) 2018-03-26 16:42:56 +02:00
test_feeds.py utils: rename utils.LoggedRequest as utils.Request (#20789) 2017-12-19 10:22:15 +01:00
test_gdema.py utils: rename utils.LoggedRequest as utils.Request (#20789) 2017-12-19 10:22:15 +01:00
test_generic_endpoint.py tests: do not create a fake ressource model (#30221) 2019-02-12 15:17:59 +01:00
test_grenoble_gru.py tests: fix grenoble_gru tests inconsistencies (#30458) 2019-03-01 17:55:02 +01:00
test_import_export.py general: move logging parameters to its own model (#27162) 2018-11-19 12:14:44 +01:00
test_iparapheur.py iparapheur: add endpoint to display raw wsdl (#30257) 2019-03-04 14:34:28 +01:00
test_iws.py iws: accept optionnal 17th char on STI code (#29632) 2019-01-15 09:38:00 +01:00
test_jobs.py general: add basic asynchronous job infrastructure (#12469) 2019-02-20 11:31:48 +01:00
test_jsondatastore.py jsondatastore: also filter on name id when it's the empty string (#27510) 2018-10-23 08:51:54 +02:00
test_jsonresponse.py tests: adapt to logging changes 2018-08-17 15:22:25 +02:00
test_manager.py manage availability check through the UI (#29965) 2019-02-20 11:07:55 +01:00
test_mdel.py actesweb: don't escape characters in demands (#30924) 2019-02-27 09:33:27 +01:00
test_mdph13.py allow ressources to disable error logging in requests wrapper (#31114) 2019-03-07 18:12:59 +01:00
test_meyzieu_newsletters.py tests: use django-webtest instead of webtest.TestApp (#19881) 2017-11-06 15:02:51 +01:00
test_misc.py general: add possibility to override trace emails recipients (#24591) 2018-12-05 15:23:33 +01:00
test_nancypoll.py nancy poll: use APIError instead of custom Exceptions (#13726) 2016-10-25 10:25:46 +02:00
test_okina.py okina: do not crash on 401/403 responses (#26012) 2018-09-04 22:24:24 +02:00
test_opengis.py tests: fix inconsistencies in opengis tests (#30458) 2019-03-01 17:55:02 +01:00
test_phonecalls.py add phone calls connector (#29829) 2019-01-21 17:31:31 +01:00
test_planitech.py planitech: filter place referential with custom attributes (#29666) 2019-01-15 09:41:38 +01:00
test_proxylogger.py utils: fix logging details of http errors (#30069) 2019-01-24 15:47:00 +01:00
test_requests.py utils: fix logging details of http errors (#30069) 2019-01-24 15:47:00 +01:00
test_sms.py sms: improve SMSGatewayMixin.clean_numbers() (fixes #6867) 2017-03-30 23:05:58 +02:00
test_soap.py misc: don't use zeep settings module (#25065) 2018-07-05 10:53:37 +02:00
test_solis.py solis: try to convert files to PDF (#21997) 2018-02-21 14:29:04 +01:00
test_solis_apa.py utils: rename utils.LoggedRequest as utils.Request (#20789) 2017-12-19 10:22:15 +01:00
test_strasbourg_eu.py strasbourg: don't crash on unauthorized errors (#25031) 2018-07-04 10:11:00 +02:00
test_tcl.py utils: rename utils.LoggedRequest as utils.Request (#20789) 2017-12-19 10:22:15 +01:00
test_teamnet_axel.py teamnet axel: use GenericConnectorView (#23593) 2018-06-19 10:25:31 +02:00
test_tlmcom.py tlmcom: test new query string params (#15444) 2017-04-24 17:23:23 +02:00
test_utils_xml.py add xml utility functions (#26333) 2018-09-26 11:01:53 +02:00
test_vivaticket.py tests: fix vivaticket tests inconsistencies (#30458) 2019-03-01 17:55:02 +01:00
utils.py ovh: use BaseResource.requests instead of requests (#23677) 2018-05-31 17:21:04 +02:00