add download to issued cert

This commit is contained in:
2025-09-08 17:32:28 -03:00
parent b327b6c177
commit ac07ee0101
15 changed files with 94 additions and 400 deletions

View File

@@ -210,3 +210,22 @@ def test_cancel_enrollment(
PartitionKey(ComposeKey('cJtK9SsnJhKPyxESe7g3DG', 'vacancies'))
)
assert len(vacancies['items']) == 2
def test_download(
mock_app,
http_api_proxy: HttpApiProxy,
lambda_context: LambdaContext,
):
r = mock_app.lambda_handler(
http_api_proxy(
raw_path='/enrollments/f58c8fa1-d14c-4c17-955b-b47b82963f40/download',
method=HTTPMethod.GET,
headers={'X-Tenant': '*'},
),
lambda_context,
)
assert r['statusCode'] == HTTPStatus.OK
data = json.loads(r['body'])
assert 'presigned_url' in data