We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55a1b64 commit e315af5Copy full SHA for e315af5
spring-vault-core/src/test/java/org/springframework/vault/support/VaultCertificateRequestUnitTests.java
@@ -15,6 +15,8 @@
15
*/
16
package org.springframework.vault.support;
17
18
+import java.util.Arrays;
19
+
20
import org.junit.jupiter.api.Test;
21
22
import static org.assertj.core.api.Assertions.*;
@@ -64,4 +66,15 @@ void shouldBuildFullyConfiguredRequest() {
64
66
assertThat(request.getPrivateKeyFormat()).isEqualTo("der");
65
67
}
68
69
+ @Test
70
+ void shouldConsiderOtherSansList() {
71
72
+ VaultCertificateRequest request = VaultCertificateRequest.builder() //
73
+ .commonName("hello.com") //
74
+ .otherSans(Arrays.asList("foo", "bar")) //
75
+ .build();
76
77
+ assertThat(request.getOtherSans()).contains("foo", "bar");
78
+ }
79
80
0 commit comments