Add new Quay pricing plans
This commit is contained in:
parent
0a176d0abe
commit
097cbbeaae
2 changed files with 133 additions and 35 deletions
|
@ -440,14 +440,14 @@ class TestGetUserPrivateAllowed(ApiTestCase):
|
|||
self.login(ADMIN_ACCESS_USER)
|
||||
|
||||
# Change the subscription of the namespace.
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='personal-30'))
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='personal-2018'))
|
||||
|
||||
json = self.getJsonResponse(PrivateRepositories)
|
||||
assert json['privateCount'] >= 6
|
||||
assert not json['privateAllowed']
|
||||
|
||||
# Change the subscription of the namespace.
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='bus-large-30'))
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='bus-large-2018'))
|
||||
|
||||
json = self.getJsonResponse(PrivateRepositories)
|
||||
assert json['privateAllowed']
|
||||
|
@ -2019,7 +2019,7 @@ class TestChangeRepoVisibility(ApiTestCase):
|
|||
self.assertEquals(True, json['is_public'])
|
||||
|
||||
# Change the subscription of the namespace.
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='personal-30'))
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='personal-2018'))
|
||||
|
||||
# Try to make private.
|
||||
self.postJsonResponse(RepositoryVisibility, params=dict(repository=self.SIMPLE_REPO),
|
||||
|
@ -3166,11 +3166,11 @@ class TestUserSubscription(ApiTestCase):
|
|||
self.assertEquals('free', sub['plan'])
|
||||
|
||||
# Change the plan.
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='bus-large-30'))
|
||||
self.putJsonResponse(UserPlan, data=dict(plan='bus-large-2018'))
|
||||
|
||||
# Verify
|
||||
sub = self.getSubscription()
|
||||
self.assertEquals('bus-large-30', sub['plan'])
|
||||
self.assertEquals('bus-large-2018', sub['plan'])
|
||||
|
||||
|
||||
class TestOrgSubscription(ApiTestCase):
|
||||
|
@ -3190,11 +3190,11 @@ class TestOrgSubscription(ApiTestCase):
|
|||
|
||||
# Change the plan.
|
||||
self.putJsonResponse(OrganizationPlan, params=dict(orgname=ORGANIZATION),
|
||||
data=dict(plan='bus-large-30'))
|
||||
data=dict(plan='bus-large-2018'))
|
||||
|
||||
# Verify
|
||||
sub = self.getSubscription()
|
||||
self.assertEquals('bus-large-30', sub['plan'])
|
||||
self.assertEquals('bus-large-2018', sub['plan'])
|
||||
|
||||
|
||||
class TestUserRobots(ApiTestCase):
|
||||
|
|
Reference in a new issue