Add access tests for the logs API
This commit is contained in:
parent
3fd7626ef1
commit
32efd9d635
1 changed files with 7 additions and 1 deletions
|
@ -382,6 +382,12 @@ def build_specs():
|
|||
TestSpec(url_for('get_subscription'), 401, 200, 200, 200),
|
||||
|
||||
TestSpec(url_for('get_org_subscription', orgname=ORG)),
|
||||
|
||||
TestSpec(url_for('repo_logs_api', repository=PUBLIC_REPO), 401, 403, 403, 403),
|
||||
TestSpec(url_for('repo_logs_api', repository=ORG_REPO), 401, 403, 403, 200),
|
||||
TestSpec(url_for('repo_logs_api', repository=PRIVATE_REPO), 401, 403, 403, 200),
|
||||
|
||||
TestSpec(url_for('org_logs_api', orgname=ORG), 401, 403, 403, 200),
|
||||
]
|
||||
|
||||
|
||||
|
@ -541,4 +547,4 @@ def build_index_specs():
|
|||
NO_REPO, 403, 403, 403, 204).set_method('DELETE'),
|
||||
IndexTestSpec(url_for('delete_repository_tags', repository=ORG_REPO),
|
||||
NO_REPO, 403, 403, 403, 204).set_method('DELETE'),
|
||||
]
|
||||
]
|
||||
|
|
Reference in a new issue