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:
@ -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):
|
||||
|
Reference in New Issue
Block a user