Benjamin Dauvergne
75dc1f103b
api_views: use atomicwrites for writing petale content ( #41379 )
2020-04-09 13:09:57 +02:00
Benjamin Dauvergne
7b292a2c17
api_views: use loop to prevent NFS errors on GET ( #41379 )
...
File can disapear more frequently on NFS as open() is not atomic (NFS filehandle
refers to an inode but they don't lock it like an open file descriptor).
2020-04-09 13:09:57 +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
Benjamin Dauvergne
763559042f
release 1.2
2020-04-08 13:41:18 +02:00
Benjamin Dauvergne
37a0101e38
debian: prevent install of python-petale ( #41302 )
2020-04-07 21:02:54 +02:00
Benjamin Dauvergne
571965f35e
debian: adapt debian_config.py for Python 3 ( #41302 )
2020-04-07 21:01:14 +02:00
Benjamin Dauvergne
93ccbc1c39
debian: python3 packaging ( #41374 )
2020-04-07 10:17:56 +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
b1e015a398
misc: style ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
4524cb32e0
misc: python3 compatibility ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
f7d4dc6b1b
dj111: use MIDDLEWARE ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
3100df5004
dj111: do not use include ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
34d434e557
dj111: set on_delete=models.CASCADE ( #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
Benjamin Dauvergne
80bdcd9c09
tox.ini: add py3 run ( #41302 )
2020-04-06 14:06:30 +02:00
Frédéric Péters
4283c9817b
tox: limit tests to django 1.11 ( #41290 )
2020-04-03 09:00:00 +02:00
Emmanuel Cazenave
9a4569cd12
add Jenkinsfile
2019-10-02 13:19:23 +02:00
Frédéric Péters
327919c0fe
tox.ini: limit to pytest-django<3.4.6
...
See #30307 and https://github.com/pytest-dev/pytest-django/issues/698
2019-02-03 21:57:35 +01:00
Emmanuel Cazenave
ed84f65f9b
pin django-webtest ( #23608 )
2018-05-04 15:53:59 +02:00
Benjamin Dauvergne
15115b197c
jenkins.sh: add Django to compile translations
2018-03-30 14:21:03 +02:00
Benjamin Dauvergne
d45aa69837
tests: test admin pages
2018-03-30 12:06:05 +02:00
Benjamin Dauvergne
8849b47fe8
admin: do not link to petale view on the partner name use the id
2018-03-30 12:00:13 +02:00
Benjamin Dauvergne
b7adc1dda6
debian: load settings from settings.d
2018-03-30 11:56:09 +02:00
Benjamin Dauvergne
c3dbb781a9
add setting to disable UUID check on authentic ( fixes #21453 )
2018-01-26 22:24:06 +01:00
Benjamin Dauvergne
963582bfcf
django 1.11 support ( fixes #21116 )
2018-01-26 18:46:33 +01:00
Benjamin Dauvergne
d04235f7a4
models: change path construction in petal_directory ( fixes #21111 )
...
Use an md5 hash of the CUT.uuid instead of the first 4 characters which
are constant now.
2018-01-26 18:20:26 +01:00
Benjamin Dauvergne
c39bf2773e
debian: add systemd service file and replace gunicorn by uwsgi ( fixes #21114 )
2018-01-26 18:20:26 +01:00
Benjamin Dauvergne
d8887ad7a8
tox.ini: remove pytest-catchlog now part of pytest ( fixes #21113 )
2018-01-11 15:07:42 +01:00
Benjamin Dauvergne
9f8b843a35
pylint.sh: remove debugging statements ( #21113 )
2018-01-11 15:07:33 +01:00
Benjamin Dauvergne
15dffd5bfb
make Cut.uuid unique ( fixes #21002 )
2018-01-10 14:19:53 +01:00
Benjamin Dauvergne
726a22daaf
setup.py: constrain djangorestframework version ( fixes #21072 )
2018-01-10 14:19:53 +01:00
Benjamin Dauvergne
567731d6bd
fix pylint warnings as exercise
2017-10-18 16:53:51 +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
3613646820
tox.ini: replace capturelog by catchlog
...
capturelog is deprecated.
2017-09-27 17:28:50 +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
45f8b4bc9c
debian: crée /var/lib/petale/media
2017-07-26 16:14:13 +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
078242c3d3
api_views: create CUT object when CUT is known from authentic but not from petale
2017-07-26 00:08:47 +02:00
Benjamin Dauvergne
9a632a505e
debian_config: remove sentry support
2017-07-21 14:58:10 +02:00
Benjamin Dauvergne
bdb0dc7e07
debian_config: simplify log format since we do not have hobo log filters
2017-07-21 14:57:59 +02:00
Benjamin Dauvergne
550120441b
api_views: do not check SSL certificate of authentic, we are in a walled garden
2017-07-21 14:57:05 +02:00
Benjamin Dauvergne
f974052a2b
api_views: log when a CUT id is unknown
2017-07-21 14:56:45 +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
Benjamin Dauvergne
8be9cea025
api_views: use received credentials when checking cut_id on authentic
2017-07-21 14:16:25 +02:00
Benjamin Dauvergne
0e65ac6b9f
authentication: log more, return error from authentic on credentials check
2017-07-21 14:15:53 +02:00
Benjamin Dauvergne
5fc1335637
authentication: do not check SSL certificate, we are in a closed garden
2017-07-21 14:14:54 +02:00
Josue Kouka
fc3b6e5ae1
add idp based cut control ( #14976 )
2017-07-21 10:53:43 +02:00