Commit Graph

70 Commits

Author SHA1 Message Date
Benjamin Dauvergne df316ade0a tests: change expected http error on authentication failure (#81376)
gitea/petale/pipeline/head This commit looks good Details
Previous expectation of a 403 status code was dependant upon
django-webtest preprending its own django-rest-framework authentication
backend in the settings, this behaviour changed in django-webtest
1.9.11. Previously the tests were testing the behaviour of
django-webtest more than the one from petale.
2023-09-20 11:11:27 +02:00
Valentin Deniaud 1dd4eda05f misc: apply double-quote-string-fixer (#79788) 2023-08-16 11:53:10 +02:00
Benjamin Dauvergne 972ce33d5d dj32: remove use of force_text (#72942) 2023-01-10 18:57:15 +01:00
Benjamin Dauvergne 9e1e43b1da dj32: adjust UI strings in admin interface tests (#72942) 2023-01-10 18:56:48 +01:00
Frédéric Péters 9e7d2f1640 misc: always set a timeout on requests (#68471) 2022-08-29 08:22:20 +02:00
Benjamin Dauvergne 75ce199ce1 Fix tests... 2022-05-02 12:15:34 +02:00
Benjamin Dauvergne 9f183d7e0a clean: remove files and take partner's info on command line 2022-04-29 23:40:50 +02:00
Benjamin Dauvergne aed59546fc misc: fix typo PETALE_AUTHENTIC_CREDS -> PETALE_AUTHENTIC_AUTH (#646950 2022-04-29 11:51:45 +02:00
Benjamin Dauvergne b49f8dc0c8 misc: add clean command (#60348)
Delete CUT and Petal models for deleted GLC accounts.
2022-03-17 19:03:31 +01:00
Benjamin Dauvergne 2ce0cf927e tox: add code-style target 2022-03-10 17:01:25 +01:00
Nicolas Roche 01c0e80fc0 tests: add context managers required by python3 (#60657) 2022-01-14 10:59:09 +01:00
Benjamin Dauvergne 97c483172a Jenkinsfile: use virtualenv and pg_virtualenv 2020-05-16 12:31:03 +02:00
Benjamin Dauvergne 9a2c6b23ed tests: test concurrent GET / PUT (#41379)
Also check we do not leak petal files during PUT.
2020-04-09 13:09:57 +02:00
Nicolas Roche e030f6723f python3: pass strings to json.loads, for py3.5 compatibility (#41302) 2020-04-06 14:41:10 +02:00
Benjamin Dauvergne 4524cb32e0 misc: python3 compatibility (#41302) 2020-04-06 14:06:40 +02:00
Benjamin Dauvergne 51585f6290 tests: remove warning on Element.getchildren() (#41302) 2020-04-06 14:06:40 +02:00
Emmanuel Cazenave 9a4569cd12 add Jenkinsfile 2019-10-02 13:19:23 +02:00
Benjamin Dauvergne d45aa69837 tests: test admin pages 2018-03-30 12:06:05 +02:00
Benjamin Dauvergne 74087001d0 tests: fix urllib3 warning about unverified HTTPS request 2017-10-18 16:35:17 +02:00
Benjamin Dauvergne 10dd95879c tests: fix deprecation warning 2017-10-18 16:33:47 +02:00
Benjamin Dauvergne 3ad3bb14d3 models: use kilobytes in size limits, use bigintegerfield for partner.size (fixes #19497)
Make test on partner size limits clearer by nost using JSON, and just sending
plain text documents of the needed sizes.
2017-10-18 16:32:15 +02:00
Benjamin Dauvergne a968380ae5 ensure concurrent PUT does not raise an IntegrityError (fixes #19384) 2017-10-11 18:23:13 +02:00
Benjamin Dauvergne 2a1cec8205 api_views: test if file exists before returning the StreamingHttpResponse 2017-09-27 17:26:59 +02:00
Benjamin Dauvergne 430a9d0fbc renvoyer key-not-found sur un GET d'une clé inconnue d'un pétale existant (fixes #17810) 2017-07-26 16:11:21 +02:00
Benjamin Dauvergne 558d2f7a5f enlarge CUT.uuid to accomodate encrypted pairwise subs (less thant 100 bytes usually) 2017-07-21 14:17:33 +02:00
Josue Kouka fc3b6e5ae1 add idp based cut control (#14976) 2017-07-21 10:53:43 +02:00
Josue Kouka cde0489217 api: add cut's petals purge (#17605) 2017-07-19 17:00:45 +02:00
Josue Kouka 577ae9e5d5 fix: RP client saving after proxy authentication (#17548) 2017-07-12 10:20:45 +02:00
Josue Kouka a47fa1b264 deleguate authentication to authentic (#16579) 2017-06-14 00:21:10 +02:00
Josue Kouka 481e058420 return 404 if cut uuid length over 32 (#16649) 2017-06-01 12:34:34 +02:00
Benjamin Dauvergne 7b242a4fc5 api: fix extraction of If-Match header in DELETE endpoint (fixes #15791) 2017-04-07 10:14:00 +02:00
Benjamin Dauvergne 94248822cf tests: clean temporary MEDIA_ROOT 2017-03-31 17:12:16 +02:00
Benjamin Dauvergne efe31c8e3b add french locale 2017-03-30 01:03:54 +02:00
Benjamin Dauvergne a3a56dbb0f never returns cut-not-found until we really check against authentic 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 6b88debc9c move implementation of limit checks and mail sending in models 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 43f74d45f5 do not load full request body into memory 2017-03-30 00:15:32 +02:00
Benjamin Dauvergne 561ee48423 add migrations, rename model and fields
CUTIdentifier is renamed CUT.
partner_id is renamed partner and cut_id is renamed cut.
2017-03-29 23:21:53 +02:00
Benjamin Dauvergne 74c9ac409b clean everything 2017-03-29 17:17:11 +02:00
Benjamin Dauvergne d11cbee413 filter keys by ACLs (fixes #15503) 2017-03-20 10:56:37 +01:00
Benjamin Dauvergne 00026cfd17 rename parameter ?filter= to ?prefix= (fixes #15510) 2017-03-20 10:35:59 +01:00
Josue Kouka 5d6345b89d misc: fix jenkins tests 2017-03-16 15:39:28 +01:00
Josue Kouka 4efbefe7bf return Content-Length in GET response (#15274) 2017-03-15 17:25:01 +01:00
Josue Kouka 2d324f1572 handle allowed methods in PetalPermission 2017-03-15 17:24:46 +01:00
Josue Kouka a74235367a misc: strip etags content 2017-03-14 18:34:50 +01:00
Josue Kouka 1d35d73c7f enforce size limitation control (#15350) 2017-03-14 16:50:49 +01:00
Josue Kouka 038c6e8203 improve caching handling (#14974) 2017-03-13 17:25:38 +01:00
Josue Kouka f6afe05058 return bad request error if content-type is missing 2017-03-13 14:16:22 +01:00
Josue Kouka c15f89b1f4 return 404 on HEAD if key not found (#15385) 2017-03-10 17:26:43 +01:00
Josue Kouka a38617a3e8 add head method (#15368) 2017-03-10 10:13:36 +01:00
Josue Kouka ff22efb1a4 log API requests and responses (#15366) 2017-03-09 20:14:06 +01:00