diff options
author | zm330 <zhangminyj@chinamobile.com> | 2020-05-25 16:48:01 +0800 |
---|---|---|
committer | zm330 <zhangminyj@chinamobile.com> | 2020-05-25 16:48:59 +0800 |
commit | 1cca8f22dcd731cc47b5a0b8fce8f756e45561ab (patch) | |
tree | cbe6690852905d073944493e611ea2fbc190515d | |
parent | 4269f0af38eb83c21128f84371a5b323a1a6b124 (diff) |
Update NSMF Update termination interface
Issue-ID: SO-2942
Signed-off-by: zm330 <zhangminyj@chinamobile.com>
Change-Id: I557c4f963999e9c78724a6dfc775bf4620073085
-rw-r--r-- | bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteCommunicationService.groovy | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteCommunicationService.groovy b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteCommunicationService.groovy index df034e6c8d..af8c4d965d 100644 --- a/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteCommunicationService.groovy +++ b/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DeleteCommunicationService.groovy @@ -213,10 +213,12 @@ class DeleteCommunicationService extends AbstractServiceTaskProcessor { """ requestBody.replaceAll("\\s+", "") - String msoKey = UrnPropertiesReader.getVariable("mso.msoKey", execution) - String basicAuth = UrnPropertiesReader.getVariable("mso.infra.endpoint.auth", execution) - String basicAuthValue = utils.encrypt(basicAuth, msoKey) - String encodeString = utils.getBasicAuth(basicAuthValue, msoKey) +// String msoKey = UrnPropertiesReader.getVariable("mso.msoKey", execution) +// String basicAuth = UrnPropertiesReader.getVariable("mso.infra.endpoint.auth", execution) +// String basicAuthValue = utils.encrypt(basicAuth, msoKey) +// String encodeString = utils.getBasicAuth(basicAuthValue, msoKey) + //Temporary Solution + String encodeString = "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==" HttpClient httpClient = getHttpClientFactory().newJsonClient(new URL(url), ONAPComponents.SO) httpClient.addAdditionalHeader("Authorization", encodeString) |