Speed up ImageReference.of when path contains upper-case chars

Closes gh-35657
This commit is contained in:
Andy Wilkinson
2023-09-04 08:17:44 +01:00
parent 49cf62d97c
commit fadc58679d
2 changed files with 19 additions and 1 deletions

View File

@@ -180,6 +180,14 @@ class ImageReferenceTests {
.withMessageContaining("Unable to parse image reference");
}
@Test
void ofWhenContainsUpperCaseThrowsException() {
assertThatIllegalArgumentException()
.isThrownBy(() -> ImageReference
.of("europe-west1-docker.pkg.dev/aaaaaa-bbbbb-123456/docker-registry/bootBuildImage:0.0.1"))
.withMessageContaining("Unable to parse image reference");
}
@Test
void forJarFile() {
assertForJarFile("spring-boot.2.0.0.BUILD-SNAPSHOT.jar", "library/spring-boot", "2.0.0.BUILD-SNAPSHOT");