Fix registry V1 push test

This commit is contained in:
Joseph Schorr 2015-09-28 15:44:18 -04:00
parent 2e694dd3f0
commit d45975051d

View file

@ -218,7 +218,7 @@ class V1RegistryPushMixin(V1RegistryMixin):
self.v1_ping()
# PUT /v1/repositories/{namespace}/{repository}/
data = [{"id": image['id']} for image in images]
data = [{"id": image_id} for image_id, _ in images.iteritems()]
self.conduct('PUT', '/v1/repositories/%s/%s' % (namespace, repository),
data=json.dumps(data), auth=auth,
expected_code=201)