Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test repo docker tagging #436

Closed
6 tasks
daviddavis opened this issue Nov 16, 2016 · 2 comments
Closed
6 tasks

Test repo docker tagging #436

daviddavis opened this issue Nov 16, 2016 · 2 comments

Comments

@daviddavis
Copy link
Contributor

daviddavis commented Nov 16, 2016

Per pulp/pulp_docker#184 (https://pulp.plan.io/issues/2189), we added the ability to create or update docker tags in docker repositories. Suppose you have a busybox repo with a tag latest that points to manifest with digest sha256:2824fe048727a69da66cf1be00cebd3bb9cfe1f238473693aa9358b411208527 and you wanted to point it to a manifest with digest sha256:c152ddeda2b828fbb610cb9e4cb121e1879dd5301d336f0a6c070b2844a0f56d, here's how you'd do that:

pulp-admin -v docker repo tag --repo-id busybox --tag-name latest --manifest-digest sha256:c152ddeda2b828fbb610cb9e4cb121e1879dd5301d336f0a6c070b2844a0f56d

You can also create new tags with the command like this would create a 'pulp' tag and point it to the same manifest:

pulp-admin -v docker repo tag --repo-id busybox --tag-name pulp --manifest-digest sha256:c152ddeda2b828fbb610cb9e4cb121e1879dd5301d336f0a6c070b2844a0f56d

Test Plan

Given a docker repo, update an existing tag by pointing it to the manifest.

  • Validate that the tag was updated and is now pointing to the correct manifest.
  • Check correct tag count in the repo ( should not change)

Given a docker repo, create a new tag and point it to a manifest.

  • Validate that the tag now exists and is pointing to the correct manifest.
  • Check correct tag count in the repo ( should increase by 1)

Point a tag to a digest that doesn't have a manifest with the particular digest in pulp

  • Check that an error is displayed to the user.

Point a tag to a manifest digest in another repo

  • Check that an error is displayed to the user
@ipanova
Copy link
Member

ipanova commented Nov 16, 2016

Point a tag to a manifest digest that exists(but not in the repo you are pointing the tag)

  • Check that an error is displayed to the user

@daviddavis
Copy link
Contributor Author

@ipanova thanks. I updated the test plan.

@preethit preethit added this to the Coverage for 2.12 milestone Jan 19, 2017
elyezer added a commit to elyezer/pulp-smash that referenced this issue Feb 2, 2017
elyezer added a commit to elyezer/pulp-smash that referenced this issue Feb 2, 2017
Ensure that Pulp is able to create and update Docker tags, also ensure
that it can't create a tag to a manifest digest from another repository
and create a tag from an invalid manifest digest.

Close pulp#436
Ichimonji10 pushed a commit that referenced this issue Feb 3, 2017
Ensure that Pulp is able to create and update Docker tags, also ensure
that it can't create a tag to a manifest digest from another repository
and create a tag from an invalid manifest digest.

Close #436
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants