1
0
mirror of https://github.com/quay/quay.git synced 2025-07-12 17:41:46 +03:00

marketplace: add a check for masterEndSystemName when fetching subscriptions (PROJQUAY-6905) (#2775)

* add a check for masterEndSystemName when fetching subscriptions
* allow old SKUs to be used in org attachments
This commit is contained in:
Marcus Kok
2024-03-25 13:47:22 -04:00
committed by GitHub
parent 09df48b5ee
commit 131d66d13f
3 changed files with 40 additions and 3 deletions

View File

@ -5191,6 +5191,20 @@ class TestOrganizationRhSku(ApiTestCase):
json = self.getJsonResponse(OrgPrivateRepositories, params=dict(orgname=SUBSCRIPTION_ORG))
self.assertEqual(json["privateAllowed"], False)
def test_reconciled_attachment(self):
self.login(SUBSCRIPTION_USER)
self.postResponse(
resource_name=OrganizationRhSku,
params=dict(orgname=SUBSCRIPTION_ORG),
data={"subscriptions": [{"subscription_id": 87654321, "quantity": 1}]},
expected_code=401,
)
json = self.getJsonResponse(
resource_name=OrganizationRhSku,
params=dict(orgname=SUBSCRIPTION_ORG),
)
self.assertEqual(len(json), 0)
class TestUserSku(ApiTestCase):
def test_get_user_skus(self):