1
0
mirror of https://github.com/quay/quay.git synced 2025-07-28 20:22:05 +03:00

marketplace: check for terminated subscriptions when fetching details (PROJQUAY-7035) (#2834)

check for terminated subscriptions when fetching details
This commit is contained in:
Marcus Kok
2024-06-06 14:33:32 -04:00
committed by GitHub
parent ec2ee2f98e
commit 1cc6d5292d
5 changed files with 111 additions and 7 deletions

View File

@ -5205,6 +5205,14 @@ class TestOrganizationRhSku(ApiTestCase):
)
self.assertEqual(len(json), 0)
def test_terminated_attachment(self):
self.login(SUBSCRIPTION_USER)
user = model.user.get_user(SUBSCRIPTION_USER)
org = model.organization.get_organization(SUBSCRIPTION_ORG)
model.organization_skus.bind_subscription_to_org(22222222, org.id, user.id, 1)
json = self.getJsonResponse(OrgPrivateRepositories, params=dict(orgname=SUBSCRIPTION_ORG))
self.assertEqual(json["privateAllowed"], False)
class TestUserSku(ApiTestCase):
def test_get_user_skus(self):