Merge pull request #2465 from coreos-inc/force_push
Allow force push for app
This commit is contained in:
commit
0ce68706ee
4 changed files with 53 additions and 55 deletions
|
@ -196,7 +196,6 @@ def push(namespace, package_name):
|
|||
{"package": reponame, "scopes": ['create']})
|
||||
Package.create_repository(reponame, private, owner)
|
||||
|
||||
|
||||
if not ModifyRepositoryPermission(namespace, package_name).can():
|
||||
raise UnauthorizedAccess("Unauthorized access for: %s" % reponame,
|
||||
{"package": reponame, "scopes": ['push']})
|
||||
|
|
|
@ -187,10 +187,6 @@ class TestQuayModels(CnrTestModels):
|
|||
def load_db(self, appconfig):
|
||||
return appconfig
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_save_package_exists_force(self, newdb, package_b64blob):
|
||||
CnrTestModels.test_save_package_exists_force(self, newdb, package_b64blob)
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_channel_delete_releases(self, db_with_data1):
|
||||
""" Can't remove a release from the channel, only delete the channel entirely """
|
||||
|
|
Reference in a new issue