File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
securedrop/debian/app-code/etc/apparmor.d Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# Journalist API v2
22
3- This package implements and documents the synchronization strategy for the v2
3+ This package (in ` securedrop/journalist_app/api2 ` ) implements and documents the synchronization strategy for the v2
44Journalist API.
55
66| File | Contents |
Original file line number Diff line number Diff line change 33"""
44
55import json
6+ import time
67from pathlib import Path
78
89import pytest
@@ -72,6 +73,8 @@ def test_weak_submission_key(host):
7273 # Install a weak key
7374 set_public_key (host , WEAK_KEY_CONTENTS )
7475 assert host .run ("systemctl restart apache2" ).rc == 0
76+ # give the interfaces a chance to come up - a TODO could be polling here
77+ time .sleep (10 )
7578 # Now try to hit the JI
7679 response = host .run ("curl -Li http://localhost:8080/" ).stdout
7780 assert "HTTP/1.1 500 Internal Server Error" in response
Original file line number Diff line number Diff line change 179179 /var/www/securedrop/journalist_app/__init__.py r,
180180 /var/www/securedrop/journalist_app/account.py r,
181181 /var/www/securedrop/journalist_app/admin.py r,
182+ /var/www/securedrop/journalist_app/api2/ r,
183+ /var/www/securedrop/journalist_app/api2/__init__.py r,
184+ /var/www/securedrop/journalist_app/api2/events.py r,
185+ /var/www/securedrop/journalist_app/api2/shared.py r,
186+ /var/www/securedrop/journalist_app/api2/types.py r,
182187 /var/www/securedrop/journalist_app/api.py r,
183188 /var/www/securedrop/journalist_app/col.py r,
184189 /var/www/securedrop/journalist_app/decorators.py r,
You can’t perform that action at this time.
0 commit comments