Merge branch '3.0.x' into 3.1.x

Closes gh-37183
This commit is contained in:
Andy Wilkinson
2023-09-04 08:25:46 +01:00
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");