add download to issued cert
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user