From 32efd9d635d8048ad003a1547baaef3c3e6e117e Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 2 Dec 2013 15:36:39 -0500 Subject: [PATCH] Add access tests for the logs API --- test/specs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/specs.py b/test/specs.py index 100e4ba41..9b819d4af 100644 --- a/test/specs.py +++ b/test/specs.py @@ -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'), - ] \ No newline at end of file + ]