Fix V1 push URL to match Docker and fix registry tests
This commit is contained in:
parent
6402049c38
commit
accc576a98
2 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ def update_user(username):
|
||||||
abort(403)
|
abort(403)
|
||||||
|
|
||||||
|
|
||||||
@v1_bp.route('/repositories/<repopath:repository>', methods=['PUT'])
|
@v1_bp.route('/repositories/<repopath:repository>/', methods=['PUT'])
|
||||||
@process_auth
|
@process_auth
|
||||||
@parse_repository_name
|
@parse_repository_name
|
||||||
@generate_headers(scope=GrantType.WRITE_REPOSITORY, add_grant_for_status=201)
|
@generate_headers(scope=GrantType.WRITE_REPOSITORY, add_grant_for_status=201)
|
||||||
|
|
|
@ -321,7 +321,7 @@ class V1RegistryPushMixin(V1RegistryMixin):
|
||||||
|
|
||||||
# PUT /v1/repositories/{namespace}/{repository}/
|
# PUT /v1/repositories/{namespace}/{repository}/
|
||||||
expected_code = _get_expected_code(expect_failure, 1, 201)
|
expected_code = _get_expected_code(expect_failure, 1, 201)
|
||||||
self.conduct('PUT', '/v1/repositories/%s' % repo_name,
|
self.conduct('PUT', '/v1/repositories/%s/' % repo_name,
|
||||||
data=json.dumps(images), auth=auth,
|
data=json.dumps(images), auth=auth,
|
||||||
expected_code=expected_code)
|
expected_code=expected_code)
|
||||||
|
|
||||||
|
|
Reference in a new issue