diff options
author | Remigiusz Janeczek <remigiusz.janeczek@nokia.com> | 2020-11-17 09:54:08 +0100 |
---|---|---|
committer | Remigiusz Janeczek <remigiusz.janeczek@nokia.com> | 2020-11-18 08:51:16 +0000 |
commit | b46951a48fb48748c61029c1fa3d4cca374ec48c (patch) | |
tree | 2884b12bc3d5278cfd71d9ea0a68929d93dc7aa2 /certServiceClient/src | |
parent | 99498718d782fe435feded438de76cacc93090ed (diff) |
[CLIENT] Change certService client to use comma as SANS delimiter
Issue-ID: OOM-2632
Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
Change-Id: I12a39cd514261a555081addb333ef1a99a481424
Diffstat (limited to 'certServiceClient/src')
2 files changed, 3 insertions, 3 deletions
diff --git a/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactory.java b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactory.java index 3f87be52..d050a2a3 100644 --- a/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactory.java +++ b/certServiceClient/src/main/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactory.java @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory; public class CsrConfigurationFactory implements ConfigurationFactory<CsrConfiguration> { private static final Logger LOGGER = LoggerFactory.getLogger(CsrConfigurationFactory.class); - private static final String SANS_DELIMITER = ":"; + private static final String SANS_DELIMITER = ","; private final EnvsForCsr envsForCsr; private final ValidatorsFactory validatorsFactory; diff --git a/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java index 238b979d..cdcefe2e 100644 --- a/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java +++ b/certServiceClient/src/test/java/org/onap/oom/certservice/client/configuration/factory/CsrConfigurationFactoryTest.java @@ -41,8 +41,8 @@ import static org.onap.oom.certservice.client.api.ExitStatus.CSR_CONFIGURATION_E public class CsrConfigurationFactoryTest { private static final String COMMON_NAME_VALID = "onap.org"; - private static final List<String> SANS_SPLITTED_VALID = List.of("test-name"); - private static final String SANS_VALID = "test-name"; + private static final List<String> SANS_SPLITTED_VALID = List.of("test-name", "test-name-1"); + private static final String SANS_VALID = "test-name,test-name-1"; private static final String COUNTRY_VALID = "US"; private static final String LOCATION_VALID = "San-Francisco"; private static final String ORGANIZATION_VALID = "Linux-Foundation"; |