Skip to content

Commit f0705e8

Browse files
committed
✨ Added sslBundle to AEM Configuration
This will be used to designate the SSLBundle name that will be used when contacting AEM.
1 parent 4abf7d0 commit f0705e8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

spring/fluentforms-spring-boot-autoconfigure/src/main/java/com/_4point/aem/fluentforms/spring/AemConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public record AemConfiguration(
2222
Integer port, // "aem.port"
2323
String user, // "aem.user"
2424
String password, // "aem.password"
25-
@DefaultValue("false") Boolean useSsl // "aem.useSsl"
25+
@DefaultValue("false") Boolean useSsl, // "aem.useSsl"
26+
@DefaultValue("aem") String sslBundle // "aem.sslBundle" - Spring SSL Bundle for trust store
2627
) {
2728

2829
public String url() {

spring/fluentforms-spring-boot-autoconfigure/src/test/java/com/_4point/aem/fluentforms/spring/AemConfigurationTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,19 @@ void testGetUrl() {
6868
assertEquals("http://" + EXPECTED_SERVERNAME + ":" + EXPECTED_PORT + "/", underTest.url());
6969
}
7070

71+
@Test
72+
void testGetSslBundle() {
73+
assertEquals("aem", underTest.sslBundle());
74+
}
75+
7176
@SpringBootTest(classes = {com._4point.aem.fluentforms.spring.AemConfigurationTest.TestApplication.class},
7277
properties = {
7378
"fluentforms.aem.servername=" + EXPECTED_SERVERNAME,
7479
"fluentforms.aem.port=" + AemConfigurationTests2.EXPECTED_PORT,
7580
"fluentforms.aem.user=" + EXPECTED_USER,
7681
"fluentforms.aem.password=" + EXPECTED_PASSWORD,
7782
"fluentforms.aem.useSsl=true",
83+
"fluentforms.aem.sslBundle=notAem"
7884
})
7985
static class AemConfigurationTests2 {
8086
protected static final int EXPECTED_PORT = 80;
@@ -98,7 +104,10 @@ void testGetUrl() {
98104
assertEquals("https://" + EXPECTED_SERVERNAME + "/", underTest.url());
99105
}
100106

101-
107+
@Test
108+
void testGetSslBundle() {
109+
assertEquals("notAem", underTest.sslBundle());
110+
}
102111
}
103112

104113
@SpringBootApplication

0 commit comments

Comments
 (0)