Add access tests for the logs API

This commit is contained in:
Joseph Schorr 2013-12-02 15:36:39 -05:00
parent 3fd7626ef1
commit 32efd9d635

View file

@ -382,6 +382,12 @@ def build_specs():
TestSpec(url_for('get_subscription'), 401, 200, 200, 200), TestSpec(url_for('get_subscription'), 401, 200, 200, 200),
TestSpec(url_for('get_org_subscription', orgname=ORG)), 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),
] ]