This commit is contained in:
Phillip Webb
2024-12-03 14:45:25 -08:00
parent 3e37a50b1e
commit 7a4e071709

View File

@@ -108,14 +108,14 @@ class SslAutoConfigurationTests {
.run((context) -> {
assertThat(context).hasSingleBean(SslBundles.class);
SslBundles bundles = context.getBean(SslBundles.class);
SslBundle first = bundles.getBundle("custom");
assertThat(first).isNotNull();
assertThat(first.getStores()).isNotNull();
assertThat(first.getManagers()).isNotNull();
assertThat(first.getKey().getAlias()).isEqualTo("alias1");
assertThat(first.getKey().getPassword()).isEqualTo("secret1");
assertThat(first.getStores().getKeyStore().getType()).isEqualTo("PKCS12");
assertThat(first.getStores().getTrustStore().getType()).isEqualTo("PKCS12");
SslBundle bundle = bundles.getBundle("custom");
assertThat(bundle).isNotNull();
assertThat(bundle.getStores()).isNotNull();
assertThat(bundle.getManagers()).isNotNull();
assertThat(bundle.getKey().getAlias()).isEqualTo("alias1");
assertThat(bundle.getKey().getPassword()).isEqualTo("secret1");
assertThat(bundle.getStores().getKeyStore().getType()).isEqualTo("PKCS12");
assertThat(bundle.getStores().getTrustStore().getType()).isEqualTo("PKCS12");
});
}