execution.setVariable('DELVfModVol_volumeParams', utils.getNodeXml(request, 'volume-params'))\r
execution.setVariable('DELVfModVol_cloudRegion', utils.getNodeText1(request, 'aic-cloud-region'))\r
\r
- try {\r
- // Catalog DB headers Authorization\r
- String basicAuthValueDB = execution.getVariable("URN_mso_adapters_db_auth")\r
- utils.log("DEBUG", " Obtained BasicAuth userid password for Catalog DB adapter: " + basicAuthValueDB, isDebugLogEnabled)\r
- \r
- def encodedString = utils.getBasicAuth(basicAuthValueDB, execution.getVariable("URN_mso_msoKey"))\r
- execution.setVariable("BasicAuthHeaderValueDB",encodedString)\r
- } catch (IOException ex) {\r
- String dataErrorMessage = " Unable to encode Catalog DB user/password string - " + ex.getMessage()\r
- utils.log("DEBUG", dataErrorMessage, isDebugLogEnabled)\r
- exceptionUtil.buildAndThrowWorkflowException(execution, 2500, dataErrorMessage)\r
- }\r
+ setBasicDBAuthHeader(execution, isDebugLogEnabled)\r
\r
logDebug('Request: ' + createVolumeIncoming, isDebugLogEnabled)\r
}\r
public void prepareDBRequest (Execution execution, isDebugLogEnabled) {\r
\r
WorkflowException workflowExceptionObj = execution.getVariable("WorkflowException")\r
-\r
+ ExceptionUtil exceptionUtil = new ExceptionUtil();\r
def requestId = execution.getVariable('DELVfModVol_requestId')\r
def volOutputs = execution.getVariable('DELVfModVol_volumeOutputs')\r
def statusMessage = "VolumeGroup successfully deleted"\r
requestStatus = "FAILURE"\r
progress = ""\r
}\r
-\r
+ \r
String updateInfraRequest = """\r
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"\r
xmlns:req="http://org.openecomp.mso/requestsdb">\r