Add an "insane" test repo
This commit is contained in:
parent
e7625491d6
commit
5841c1237e
2 changed files with 39 additions and 1 deletions
38
initdb.py
38
initdb.py
|
@ -325,6 +325,44 @@ def populate_database():
|
|||
(5, [], 'v4.0'),
|
||||
(1, [(1, [], 'v5.0'), (1, [], 'v6.0')], None)],
|
||||
None))
|
||||
|
||||
__generate_repository(new_user_1, 'insane', None, False, [],
|
||||
(2, [(3, [], 'v2.0'),
|
||||
(1, [(1, [(1, [], ['latest', 'prod'])],
|
||||
'staging'),
|
||||
(1, [], None)], None),
|
||||
(20, [], 'v3.0'),
|
||||
(22, [(14, [], 'v3.11')], 'v3.1'),
|
||||
(20, [], 'v3.2'),
|
||||
(28, [], 'v3.3'),
|
||||
(16, [(14, [], 'v3.41'), (18, [], 'v3.42'), (12, [], 'v3.43')], 'v3.4'),
|
||||
(21, [(6, [], 'v3.51'), (18, [], 'v3.52')], 'v3.5'),
|
||||
(21, [(7, [], 'v3.61'), (17, [], 'v3.62')], 'v3.6'),
|
||||
(21, [(8, [], 'v3.71'), (16, [], 'v3.72')], 'v3.7'),
|
||||
(21, [(9, [], 'v3.81'), (15, [], 'v3.82')], 'v3.8'),
|
||||
(21, [(10, [], 'v3.91'), (14, [], 'v3.92'), (11, [], 'v3.92')], 'v3.9'),
|
||||
(5, [], 'v4.0'),
|
||||
(5, [], 'v4.1'),
|
||||
(5, [], 'v4.2'),
|
||||
(5, [], 'v4.3'),
|
||||
(5, [], 'v4.4'),
|
||||
(5, [], 'v4.5'),
|
||||
(5, [], 'v4.6'),
|
||||
(5, [], 'v4.7'),
|
||||
(5, [], 'v4.8'),
|
||||
(5, [], 'v4.10'),
|
||||
(5, [], 'v4.11'),
|
||||
(5, [], 'v4.12'),
|
||||
(5, [], 'v4.13'),
|
||||
(5, [], 'v4.14'),
|
||||
(5, [], 'v4.15'),
|
||||
(5, [], 'v4.16'),
|
||||
(5, [], 'v4.17'),
|
||||
(5, [], 'v4.18'),
|
||||
(5, [], 'v4.19'),
|
||||
(5, [], 'v4.20'),
|
||||
(1, [(1, [], 'v5.0'), (1, [], 'v6.0')], None)],
|
||||
None))
|
||||
|
||||
__generate_repository(new_user_2, 'publicrepo',
|
||||
'Public repository pullable by the world.', True,
|
||||
|
|
|
@ -217,7 +217,7 @@ class TestGetUserPrivateAllowed(ApiTestCase):
|
|||
def test_allowed(self):
|
||||
self.login(ADMIN_ACCESS_USER)
|
||||
json = self.getJsonResponse(PrivateRepositories)
|
||||
assert json['privateCount'] == 6
|
||||
assert json['privateCount'] >= 6
|
||||
assert json['privateAllowed']
|
||||
|
||||
|
||||
|
|
Reference in a new issue