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

defaults: Update defaults in config and schema (PROJQUAY-2425) (#923)

- Update defaults in config.pu
This commit is contained in:
Jonathan King
2021-10-12 14:47:40 -07:00
committed by GitHub
parent f50f37a393
commit a29f3e0eea
5 changed files with 44 additions and 13 deletions

View File

@ -2015,13 +2015,19 @@ class TestCreateRepo(ApiTestCase):
def test_invalidreponame(self):
self.login(ADMIN_ACCESS_USER)
json = self.postJsonResponse(
RepositoryList,
data=dict(repository="some/repo", visibility="public", description=""),
expected_code=400,
)
self.assertEqual("Invalid repository name", json["detail"])
if app.config["FEATURE_EXTENDED_REPOSITORY_NAMES"]:
json = self.postJsonResponse(
RepositoryList,
data=dict(repository="some/repo", visibility="public", description=""),
expected_code=201,
)
else:
json = self.postJsonResponse(
RepositoryList,
data=dict(repository="some/repo", visibility="public", description=""),
expected_code=400,
)
self.assertEqual("Invalid repository name", json["detail"])
def test_duplicaterepo(self):
self.login(ADMIN_ACCESS_USER)