diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-11-18 10:18:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-11-18 10:18:51 +0000 |
commit | 944cae91430e83ddd801386a80b5333f2bff6775 (patch) | |
tree | 95120a1deb1c32cc03f29ee3d6742426b456b14b /certServiceClient/src | |
parent | 951051407917716a241026bb11659e3ceb5cb8c2 (diff) | |
parent | b46951a48fb48748c61029c1fa3d4cca374ec48c (diff) |
Merge "[CLIENT] Change certService client to use comma as SANS delimiter"
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"; |