mirror of
https://github.com/quay/quay.git
synced 2025-07-30 07:43:13 +03:00
Implement experimental support for OCI manifests (#279)
* Implement OCI manifest and index support * Remove unnecessary data model check in registry protocol fixtures * Implement OCI testing * Add migration for adding OCI content types * Remove unused supports_schema2 * Add OCI_NAMESPACE_WHITELIST and reformat with black * Catch errors in legacy image population and raise appropriately * Add support for registration of additional artifact types This change adds the infrastructure to support artifacts in OCI manifests, but does not yet register any types * Add a feature flag for enabling experimental Helm support via OCI See: https://helm.sh/docs/topics/registries/
This commit is contained in:
@ -2526,14 +2526,12 @@ class TestGetRepository(ApiTestCase):
|
||||
def test_get_largerepo(self):
|
||||
self.login(ADMIN_ACCESS_USER)
|
||||
|
||||
offset = 0 if registry_model.supports_schema2(ADMIN_ACCESS_USER) else 2
|
||||
|
||||
# base + repo + is_starred + tags
|
||||
with assert_query_count(BASE_LOGGEDIN_QUERY_COUNT + 4 + offset + 1):
|
||||
with assert_query_count(BASE_LOGGEDIN_QUERY_COUNT + 4 + 1):
|
||||
self.getJsonResponse(Repository, params=dict(repository=ADMIN_ACCESS_USER + "/simple"))
|
||||
|
||||
# base + repo + is_starred + tags
|
||||
with assert_query_count(BASE_LOGGEDIN_QUERY_COUNT + 4 + offset + 1):
|
||||
with assert_query_count(BASE_LOGGEDIN_QUERY_COUNT + 4 + 1):
|
||||
json = self.getJsonResponse(
|
||||
Repository, params=dict(repository=ADMIN_ACCESS_USER + "/gargantuan")
|
||||
)
|
||||
|
Reference in New Issue
Block a user