-
Notifications
You must be signed in to change notification settings - Fork 541
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
Add check for image name length to not exceed 255 #2585
Add check for image name length to not exceed 255 #2585
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #2585 (2024-01-31T05:48:17Z) ⚙️ JKube E2E Tests (7721727748)
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2585 +/- ##
=============================================
+ Coverage 59.36% 70.33% +10.97%
- Complexity 4586 4962 +376
=============================================
Files 500 480 -20
Lines 21211 19308 -1903
Branches 2830 2495 -335
=============================================
+ Hits 12591 13580 +989
+ Misses 7370 4499 -2871
+ Partials 1250 1229 -21 ☔ View full report in Codecov by Sentry. |
Hi @rohanKanojia Thank you so much for your guidance...I have opened this pull request because it was easier than resolving conflicts |
...age/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameDistributionReferenceTest.java
Outdated
Show resolved
Hide resolved
jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameTest.java
Outdated
Show resolved
Hide resolved
jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameTest.java
Outdated
Show resolved
Hide resolved
jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameTest.java
Show resolved
Hide resolved
jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameTest.java
Outdated
Show resolved
Hide resolved
jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameTest.java
Outdated
Show resolved
Hide resolved
.as("Too long image name should fail") | ||
.isThrownBy(() -> new ImageName(tooLongName)) | ||
.withMessageContaining("Repository name must not be more than 255 characters"); | ||
|
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.
@Devashishbasu : It's very close to getting merged. Could you please squash your commits into one commit (with some meaningful message)? |
author Devashishbasu <devashishbasu587@gmail.com> 1706601678 +0530 committer Devashishbasu <devashishbasu587@gmail.com> 1706679085 +0530 fixes eclipse-jkube#2542 Adding suggested changes Adding suggested changes Update jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameDistributionReferenceTest.java Co-authored-by: Rohan Kumar <rohan.kumar.kanojia@gmail.com> Update jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameTest.java Co-authored-by: Rohan Kumar <rohan.kumar.kanojia@gmail.com> Update jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/ImageNameTest.java Co-authored-by: Rohan Kumar <rohan.kumar.kanojia@gmail.com>
eb7a824
to
9674d9e
Compare
|
ImageName throws exception when image repository name length is greater than 255
Fixes #2542
Type of change
Checklist