-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allow CAPS in image tag #393
Allow CAPS in image tag #393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add another test case in tests/test_image.py
, or tell me if I should do the changes :) thank you very much for your support!
I added a test case for tag using uppercase letter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsuchan lgtm!
Could you adjust the commit message to follow the semantic and conventional commits as described in the contributing guide. Should be something along the lines:
fix: allow CAPS in image tag
fixes #392
We would then need rebase to develop
again, sign it and could probably merge it.
Thanks for contributing 🙏
I did rebase to develop. Let me know if I did it correctly. |
tests/test_image.py
Outdated
"image", | ||
"Tag", | ||
None, | ||
None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None, | |
"library", |
This needs to be the repository value which is "library" in your case, as given in line 8 though I admit the description is a bit confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just copying the previous test ("docker.io/Library/image:tag") and changed the test case.
I also noticed that the repository was set to "None" but reasoned that any Image under docker.io/library can be called by it's short name:
docker pull docker.io/library/nginx
docker pull library/nginx
docker pull nginx
Let me know if you want me to change the repository to "library"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the suggested change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean. That is, however, only a unit test that does not take the docker.io specifics into account. I agree that specifically choosing library
as a repo name in the previous example is confusing though.
thanks, looks good now.
I also signed my commit. |
Codecov Report
@@ Coverage Diff @@
## develop #393 +/- ##
========================================
Coverage 96.68% 96.68%
========================================
Files 21 21
Lines 1057 1057
========================================
Hits 1022 1022
Misses 35 35
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsuchan great work 🙏
I briefly fixed the minor test issue. looks perfect now 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to sign the commit previously 😅
will merge now 🚀
Only tags can have uppercase characters.
Excluding tags from lowercase comparison.