Skip to content

Commit be6eb58

Browse files
committed
Merge branch '3.3.x' into 3.4.x
2 parents 2c35851 + 7d01c94 commit be6eb58

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactoryTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -662,12 +662,12 @@ void whenServerIsShuttingDownARequestOnAnIdleConnectionResultsInConnectionReset(
662662
}
663663

664664
@Test
665+
@WithPackageResources({ "1.crt", "1.key", "2.crt", "2.key" })
665666
void shouldUpdateSslWhenReloadingSslBundles() throws Exception {
666667
TomcatServletWebServerFactory factory = getFactory();
667668
addTestTxtFile(factory);
668669
DefaultSslBundleRegistry bundles = new DefaultSslBundleRegistry("test",
669-
createPemSslBundle("classpath:org/springframework/boot/web/embedded/tomcat/1.crt",
670-
"classpath:org/springframework/boot/web/embedded/tomcat/1.key"));
670+
createPemSslBundle("classpath:1.crt", "classpath:1.key"));
671671
factory.setSslBundles(bundles);
672672
factory.setSsl(Ssl.forBundle("test"));
673673
this.webServer = factory.getWebServer();
@@ -679,8 +679,7 @@ void shouldUpdateSslWhenReloadingSslBundles() throws Exception {
679679
assertThat(getResponse(getLocalUrl("https", "/test.txt"), requestFactory)).isEqualTo("test");
680680
assertThat(verifier.getLastPrincipal()).isEqualTo("CN=1");
681681
requestFactory = createHttpComponentsRequestFactory(tlsSocketStrategy);
682-
bundles.updateBundle("test", createPemSslBundle("classpath:org/springframework/boot/web/embedded/tomcat/2.crt",
683-
"classpath:org/springframework/boot/web/embedded/tomcat/2.key"));
682+
bundles.updateBundle("test", createPemSslBundle("classpath:2.crt", "classpath:2.key"));
684683
assertThat(getResponse(getLocalUrl("https", "/test.txt"), requestFactory)).isEqualTo("test");
685684
assertThat(verifier.getLastPrincipal()).isEqualTo("CN=2");
686685
}

0 commit comments

Comments
 (0)