Merge pull request #247 from coreos-inc/extratest
Extra list repos test to mimic the conditions of a known issue with a customer
This commit is contained in:
commit
d21251c910
1 changed files with 10 additions and 0 deletions
|
@ -1297,6 +1297,16 @@ class TestListRepos(ApiTestCase):
|
||||||
json = self.getJsonResponse(RepositoryList, params=dict(last_modified=True, popularity=True))
|
json = self.getJsonResponse(RepositoryList, params=dict(last_modified=True, popularity=True))
|
||||||
self.assertTrue(len(json['repositories']) > 2)
|
self.assertTrue(len(json['repositories']) > 2)
|
||||||
|
|
||||||
|
def test_listrepos_allparams(self):
|
||||||
|
self.login(ADMIN_ACCESS_USER)
|
||||||
|
json = self.getJsonResponse(RepositoryList,
|
||||||
|
params=dict(namespace=ORGANIZATION,
|
||||||
|
public=False,
|
||||||
|
last_modified=True))
|
||||||
|
|
||||||
|
for repo in json['repositories']:
|
||||||
|
self.assertEquals(ORGANIZATION, repo['namespace'])
|
||||||
|
|
||||||
|
|
||||||
class TestViewPublicRepository(ApiTestCase):
|
class TestViewPublicRepository(ApiTestCase):
|
||||||
def test_normalview(self):
|
def test_normalview(self):
|
||||||
|
|
Reference in a new issue