From cf4b15ab00249af6f4d05afd75d16bec689f3241 Mon Sep 17 00:00:00 2001 From: Skip Wonnell Date: Tue, 15 Aug 2017 21:18:04 -0500 Subject: Initial add of appc-directed-graph bundles Directed Graph library Additional JIRA Issues: APPC-66, APPC-71, APPC-74 Issue-ID: APPC-65 Change-Id: I1bd643f7675dec19e562e99db65bafa0dcda6ef4 Signed-off-by: Skip Wonnell --- .../CheckConfigStatus_Failure.properties | 41 +++++++ .../CheckConfigStatus_Success.properties | 41 +++++++ .../APPC/CheckConfigStatus/MaxRetries.properties | 31 ++++++ .../CheckConfigStatus/ParseErrorLogFail.properties | 34 ++++++ .../ParseErrorLogSuccess.properties | 36 ++++++ .../APPC_method_CommonConfiguration_TC2.properties | 54 +++++++++ .../GetConfigParamsFail.properties | 40 +++++++ .../ISBCTemplateSuccess.properties | 122 +++++++++++++++++++++ .../InvalidRequestAction.properties | 38 +++++++ .../ConfigBlockConfigure_Failure.properties | 51 +++++++++ .../ConfigBlockConfigure_Success.properties | 48 ++++++++ .../APPC/Configure/Configure_Failure.properties | 52 +++++++++ .../APPC/Configure/Configure_Success.properties | 50 +++++++++ .../Configure/GenerateConfig_Failure.properties | 45 ++++++++ .../GenerateTemplateConfig_Failure.properties | 47 ++++++++ .../APPC/Configure/GetTemplate_Failure.properties | 32 ++++++ .../DownloadCliConfig_Adaptor_Failure.properties | 40 +++++++ .../DownloadCliConfig_DB_Failure.properties | 38 +++++++ .../DownloadCliConfig_Success.properties | 69 ++++++++++++ .../ConfigFile_Failure.properties | 33 ++++++ .../DownloadIsbcConfig_Success.properties | 45 ++++++++ .../APPC/DownloadIsbcConfig/Put_Failure.properties | 39 +++++++ .../GenerateConfigNoParams.properties | 31 ++++++ .../GenerateConfigWithParams.properties | 30 +++++ .../GenerateTemplateConfigNoParams.properties | 30 +++++ .../GenerateTemplateConfigWithParams.properties | 29 +++++ .../APPC/GetAaiInfo/GetInfoSuccess.properties | 32 ++++++ .../APPC/GetAaiInfo/GetVServerFail.properties | 34 ++++++ .../APPC/GetAaiInfo/GetVnfFail.properties | 27 +++++ .../APPC/GetConfigParams/CliJson.properties | 49 +++++++++ .../APPC/GetConfigParams/CliString.properties | 52 +++++++++ .../GetConfigParams/CommonConfigFail.properties | 47 ++++++++ .../GetConfigParams/DefaultTemplate.properties | 46 ++++++++ .../GetConfigParams/Json2DGContextFail.properties | 38 +++++++ .../APPC/GetConfigParams/Restore.properties | 53 +++++++++ .../APPC/GetConfigParams/TemplateName.properties | 46 ++++++++ .../GetDeviceRunningConfig/Chef_Failure.properties | 34 ++++++ .../GetDeviceRunningConfig/Chef_Others.properties | 34 ++++++ .../GetDeviceRunningConfig/Chef_Success.properties | 34 ++++++ .../GetDeviceRunningConfig/XML_Success.properties | 34 ++++++ .../GetVfModuleInfo_Failure.properties | 44 ++++++++ .../GetVfModuleInfo_Success.properties | 43 ++++++++ .../GetInstarParamsFail.properties | 30 +++++ .../GetPDFail.properties | 26 +++++ .../MergeParamsFail.properties | 36 ++++++ .../NoInstarParams.properties | 28 +++++ .../ProcessPD.properties | 43 ++++++++ .../SaveMdsalFail.properties | 45 ++++++++ .../PublishConfig_Failure.properties | 36 ++++++ .../PublishConfig_Success.properties | 34 ++++++ .../SaveRunningConfig_Failure.properties | 66 +++++++++++ .../SaveRunningConfig_Success.properties | 63 +++++++++++ .../UploadConfig_Failure.properties | 67 +++++++++++ .../APPC/SetStatus/SetStatus_AaiFailure.properties | 32 ++++++ .../SetStatus_SaveRunningFailure.properties | 31 ++++++ .../APPC/SetStatus/SetStatus_Success.properties | 31 ++++++ .../APPC/UpdateAaIInfo/GetVnfcRef_Fail.properties | 28 +++++ .../APPC/UpdateAaIInfo/Update_Fail.properties | 31 ++++++ .../APPC/UpdateAaIInfo/Update_Success.properties | 28 +++++ .../APPC_method_CommonConfiguration_TC1.properties | 27 +++++ .../APPC_method_CommonConfiguration_TC2.properties | 54 +++++++++ ...d_configuration-document-request_TC1.properties | 23 ++++ .../properties/tcfile/cli_config_content.txt | 5 + .../resources/properties/tcfile/config_chef.txt | 5 + .../tcfile/download_cli_config_template.txt | 18 +++ .../resources/properties/tcfile/instar_values.json | 25 +++++ .../properties/tcfile/isbc_config_parameters.json | 60 ++++++++++ .../properties/tcfile/noinstarparams_pd.yaml | 92 ++++++++++++++++ .../properties/tcfile/payload_cli_config.json | 98 +++++++++++++++++ .../properties/tcfile/payload_json_config.json | 104 ++++++++++++++++++ .../tcfile/payload_parameters_config.json | 95 ++++++++++++++++ .../properties/tcfile/payload_restore_config.json | 54 +++++++++ .../properties/tcfile/payload_template_config.json | 56 ++++++++++ .../src/test/resources/properties/tcfile/pd.yaml | 75 +++++++++++++ .../resources/properties/tcfile/request-param.json | 21 ++++ .../resources/properties/tcfile/vdbe_data.json | 27 +++++ .../resources/properties/tcfile/vdbe_template.xml | 45 ++++++++ 77 files changed, 3332 insertions(+) create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/MaxRetries.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogSuccess.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/APPC_method_CommonConfiguration_TC2.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/GetConfigParamsFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/ISBCTemplateSuccess.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/InvalidRequestAction.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateConfig_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateTemplateConfig_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GetTemplate_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Adaptor_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_DB_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/ConfigFile_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/DownloadIsbcConfig_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/Put_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigNoParams.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigWithParams.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigNoParams.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigWithParams.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetInfoSuccess.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVServerFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVnfFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliJson.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliString.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CommonConfigFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/DefaultTemplate.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Json2DGContextFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Restore.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/TemplateName.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Others.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/XML_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetInstarParamsFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetPDFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/MergeParamsFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/NoInstarParams.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/ProcessPD.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/SaveMdsalFail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/UploadConfig_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_AaiFailure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_SaveRunningFailure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/GetVnfcRef_Fail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Fail.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Success.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC1.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC2.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/ASDC-MESSAGE_method_configuration-document-request_TC1.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/cli_config_content.txt create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/config_chef.txt create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/download_cli_config_template.txt create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/instar_values.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/isbc_config_parameters.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/noinstarparams_pd.yaml create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_cli_config.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_json_config.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_parameters_config.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_restore_config.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_template_config.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/pd.yaml create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/request-param.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_data.json create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_template.xml (limited to 'appc-directed-graph/appc-dgraph/provider/src/test/resources/properties') diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Failure.properties new file mode 100644 index 000000000..644b0298d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Failure.properties @@ -0,0 +1,41 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap + + + + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.outCome=failure +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.params.assertEquals.host=135.1.1.1 +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.params.assertEquals.loginId=root +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.params.assertEquals.password=!bootstrap + + + + + +assertEquals.error-code=401 +assertEquals.error-message=Configuration Failed. No configuration success or error file found on the device +assertEquals.i=9 + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Success.properties new file mode 100644 index 000000000..4d622b212 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/CheckConfigStatus_Success.properties @@ -0,0 +1,41 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap + + +input.configfilereference-success.TARGET-FILE-PATH=/tmp +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.outCome=success +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.params.assertEquals.host=135.1.1.1 +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.params.assertEquals.loginId=root +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.params.assertEquals.password=!bootstrap + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.params.assertEquals.fullPathFileName=/tmp + + + + +assertEquals.error-code=400 +assertEquals.error-message=SUCCESS - request has been processed successfully +assertEquals.i=1 + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/MaxRetries.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/MaxRetries.properties new file mode 100644 index 000000000..0d5ddc8db --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/MaxRetries.properties @@ -0,0 +1,31 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configfilereference-success.TARGET-FILE-PATH=SuccessFile +input.configfilereference-failure.TARGET-FILE-PATH=FailureFile + +input.vnf-host-ip-address=135.2.2.2 + + + +assertEquals.error-code=401 +assertEquals.error-message=Configuration Failed. No configuration success or error file found on the device + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogFail.properties new file mode 100644 index 000000000..2f5d42c94 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogFail.properties @@ -0,0 +1,34 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configfilereference-success.TARGET-FILE-PATH=SuccessFile +input.configfilereference-failure.TARGET-FILE-PATH=FailureFile +input.configfilereference-log.TARGET-FILE-PATH=FailureLogFile +input.vnf-host-ip-address=135.1.1.1 +input.fileContents=ERRORLOG +org.openecomp.sdnc.config.generator.pattern.PatternNode.parseErrorLog.outCome=failure +org.openecomp.sdnc.config.generator.pattern.PatternNode.parseErrorLog.params.assertEquals.logData=ERRORLOG + +org.openecomp.sdnc.config.generator.pattern.PatternNode.parseErrorLog.tmp.patternNode.error-message=Unable to parse Error Log + +assertEquals.error-code=401 +assertEquals.error-message=Unable to parse Error Log + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogSuccess.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogSuccess.properties new file mode 100644 index 000000000..c40d93f96 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CheckConfigStatus/ParseErrorLogSuccess.properties @@ -0,0 +1,36 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configfilereference-success.TARGET-FILE-PATH=SuccessFile +input.configfilereference-failure.TARGET-FILE-PATH=FailureFile +input.configfilereference-log.TARGET-FILE-PATH=FailureLogFile +input.vnf-host-ip-address=135.1.1.1 + +input.fileContents=ERRORLOG +org.openecomp.sdnc.config.generator.pattern.PatternNode.parseErrorLog.outCome=success +org.openecomp.sdnc.config.generator.pattern.PatternNode.parseErrorLog.tmp.patternNode.parsedError=Download Failure +org.openecomp.sdnc.config.generator.pattern.PatternNode.parseErrorLog.params.assertEquals.logData=ERRORLOG + +assertEquals.error-code=401 +assertEquals.error-message=Configuration has failed.Download Failure + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/APPC_method_CommonConfiguration_TC2.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/APPC_method_CommonConfiguration_TC2.properties new file mode 100644 index 000000000..c1eb82f07 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/APPC_method_CommonConfiguration_TC2.properties @@ -0,0 +1,54 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_json_config.json + + +# Property for org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo Execute Action +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.commonConfigInfo.status=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.configureactiondg.CONFIGURE-ACTION-DG-ID = 8 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.configureactiondg.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.configureactiondg.DOWNLOAD-CONFIG-DG = DownloadIsbcConfig + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=success + + +# DG APPC.DownloadIsbcConfig properties +APPC.DownloadIsbcConfig.outCome=success +#APPC.DownloadIsbcConfig.outCome=not-found + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/GetConfigParamsFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/GetConfigParamsFail.properties new file mode 100644 index 000000000..12ea74d92 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/GetConfigParamsFail.properties @@ -0,0 +1,40 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=isbc +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_parameters_config.json + + + +APPC.GetConfigParams.outCome=failure +APPC.SetStatus.outCome=failure + +input.error-code=401 +input.error-message=GetConfigParams Failed + + +assertEquals.output.status.code=401 +assertEquals.output.status.message=GetConfigParams Failed +assertNull.output.payload.upload-config-id diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/ISBCTemplateSuccess.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/ISBCTemplateSuccess.properties new file mode 100644 index 000000000..8e0000bc6 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/ISBCTemplateSuccess.properties @@ -0,0 +1,122 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=isbc +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_parameters_config.json + + +#GetConfigParams +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.configureactiondg.DOWNLOAD-CONFIG-DG=DownloadIsbcConfig + +#Configure +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.config-template.file-content=tcfile://vdbe_template.xml +org.openecomp.appc.data.services.node.ConfigResourceNode.saveTemplateConfig.outCome=success + + +org.openecomp.appc.config.generator.node.ConfigResourceNode +#DownloadISBCConfig +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFileReference.outCome=success +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.outCome=success + +configfilereference-success.TARGET-FILE-PATH=SuccessFile +configfilereference-failure.TARGET-FILE-PATH=FailureFile +configfilereference-log.TARGET-FILE-PATH=FailureLogFile + +#CheckConfigStatus +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.get.outCome=success + +#SetStatus + + + +#GetDeviceRunningConfig +config-template.outCome=SUCCESS +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.GetCliRunningConfig.outCome=success +input.cliOutput=DEVICERUNNINGCONFIG + + +#SaveRunningConfig +org.openecomp.appc.data.services.node.ConfigResourceNode.updateUploadConfig.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.updateUploadConfig.tmp.uploadconfigmax.uploadconfigid=100 + +org.openecomp.appc.dg.common.JsonDgUtil.generateOutputPayloadFromContext.outCome=success +org.openecomp.appc.dg.common.JsonDgUtil.generateOutputPayloadFromContext.output.payload={ \\"upload-config-id\\" : [100] } + + +#GetAaiInfo +APPC.GetAaiInfo.outCome=success + +#ProcessParameterDefinition +APPC.ProcessParameterDefinition.outCome=success + + +#UpdateAAIInfo + +tmp.aai-data-vm.outCome=SUCCESS +tmp.aai-data-vm.vserver-id=vserverid +tmp.aai-data-vm.tenant-id=tenantid +tmp.aai-data-vm.cloud-region-id=cloudregionid + + +tmp.aai-data-vm.relationship-list.relationship_length=2 +tmp.aai-data-vm.relationship-list.relationship[0].related-to=vserver +tmp.aai-data-vm.relationship-list.relationship[1].related-to=vf-module + +tmp.aai-data-vm.relationship-list.relationship[0].relationship-data_length=2 +tmp.aai-data-vm.relationship-list.relationship[1].relationship-data_length=2 + +tmp.aai-data-vm.relationship-list.relationship[0].relationship-data[0].relationship-key=vnfc +tmp.aai-data-vm.relationship-list.relationship[0].relationship-data[1].relationship-key=generic-vnf + + + +tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[0].relationship-key=vnfc +tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[1].relationship-key=vf-module.vf-module-id + +tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[1].relationship-value=100 + +tmp.aai-data-vnfc.outCome=NOT_FOUND +tmp.vnfc-sys-controller.outCome=SUCCESS + +assertEquals.error-code=400 +assertEquals.error-message=SUCCESS - request has been processed successfully +assertEquals.output.status.code=400 +assertEquals.output.status.message=SUCCESS - request has been processed successfully +#assertEquals.output.payload={ \\"upload-config-id\\" : [100] } diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/InvalidRequestAction.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/InvalidRequestAction.properties new file mode 100644 index 000000000..4a9398b25 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/InvalidRequestAction.properties @@ -0,0 +1,38 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=isbc +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=ModifyConfig +input.request-action=ModifyConfig + + + +APPC.GetConfigParams.outCome=success +APPC.SetStatus.outCome=failure + + + +assertEquals.output.status.code=401 +assertEquals.output.status.message=Invalid action ModifyConfig +assertNull.output.payload.upload-config-id diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Failure.properties new file mode 100644 index 000000000..f7866ca95 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Failure.properties @@ -0,0 +1,51 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-type= +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +input.tmp.configureactiondg.DOWNLOAD-CONFIG-DG=DownloadIsbcConfig + + +#ProcessParameterDefinition +APPC.ProcessParameterDefinition.outCome=success + +input.error-code=401 +input.error-message=ISBC Config Failed +# DG properties +APPC.DownloadIsbcConfig.outCome=failure +APPC.GenerateConfig.outCome=success + + +assertEquals.host-ip-address=135.1.1.1 +assertEquals.device-login=root + +assertEquals.device-password=!bootstrap +assertEquals.port-number=22 +assertEquals.protocol=CLI +assertEquals.device-config=DUMMYFILECONTENT +assertEquals.tmp.message=Download Failure : 401 : ISBC Config Failed + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Success.properties new file mode 100644 index 000000000..a6d9f747f --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/ConfigBlockConfigure_Success.properties @@ -0,0 +1,48 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-type= +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +input.tmp.configureactiondg.DOWNLOAD-CONFIG-DG=DownloadIsbcConfig + + + +# DG properties +APPC.DownloadIsbcConfig.outCome=success +APPC.GenerateConfig.outCome=success +#ProcessParameterDefinition +APPC.ProcessParameterDefinition.outCome=success + +assertEquals.error-code=400 +assertEquals.host-ip-address=135.1.1.1 +assertEquals.device-login=root + +assertEquals.device-password=!bootstrap +assertEquals.port-number=22 +assertEquals.protocol=CLI +assertEquals.device-config=DUMMYFILECONTENT + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Failure.properties new file mode 100644 index 000000000..057e77782 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Failure.properties @@ -0,0 +1,52 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-type=template +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +input.tmp.configureactiondg.DOWNLOAD-CONFIG-DG=DownloadIsbcConfig + +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.params.assertEquals.fileCategory=config_template + + +input.error-code=401 +input.error-message=ISBC Config Failed +# DG properties +APPC.DownloadIsbcConfig.outCome=failure +APPC.GenerateTemplateConfig.outCome=success +#ProcessParameterDefinition +APPC.ProcessParameterDefinition.outCome=success + +assertEquals.host-ip-address=135.1.1.1 +assertEquals.device-login=root + +assertEquals.device-password=!bootstrap +assertEquals.port-number=22 +assertEquals.protocol=CLI +assertEquals.device-config=DUMMYFILECONTENT +assertEquals.tmp.message=Download Failure : 401 : ISBC Config Failed + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Success.properties new file mode 100644 index 000000000..3e8398ac3 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/Configure_Success.properties @@ -0,0 +1,50 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-type=template +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +input.tmp.configureactiondg.DOWNLOAD-CONFIG-DG=DownloadIsbcConfig + +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.params.assertEquals.fileCategory=config_template + + +# DG properties +APPC.DownloadIsbcConfig.outCome=success +APPC.GenerateTemplateConfig.outCome=success +#ProcessParameterDefinition +APPC.ProcessParameterDefinition.outCome=success + +assertEquals.error-code=400 +assertEquals.host-ip-address=135.1.1.1 +assertEquals.device-login=root + +assertEquals.device-password=!bootstrap +assertEquals.port-number=22 +assertEquals.protocol=CLI +assertEquals.device-config=DUMMYFILECONTENT + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateConfig_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateConfig_Failure.properties new file mode 100644 index 000000000..de7c0eb5d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateConfig_Failure.properties @@ -0,0 +1,45 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-type= + +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + + + + +APPC.GenerateConfig.outCome=failure + +assertNull.host-ip-address +assertNull.device-login +assertNull.device-password +assertNull.port-number +assertNull.protocol +assertNull.device-config + + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateTemplateConfig_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateTemplateConfig_Failure.properties new file mode 100644 index 000000000..5764c97b4 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GenerateTemplateConfig_Failure.properties @@ -0,0 +1,47 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-type=template + +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.params.assertEquals.fileCategory=config_template + + + +APPC.GenerateTemplateConfig.outCome=failure + +assertNull.host-ip-address +assertNull.device-login +assertNull.device-password +assertNull.port-number +assertNull.protocol +assertNull.device-config + + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GetTemplate_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GetTemplate_Failure.properties new file mode 100644 index 000000000..170291a67 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/Configure/GetTemplate_Failure.properties @@ -0,0 +1,32 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-type=template + +#ProcessParameterDefinition +APPC.ProcessParameterDefinition.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=failure +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.config-template.error-message=Unable to get template +assertEquals.error-code=401 +assertEquals.error-message=Unable to get template + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Adaptor_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Adaptor_Failure.properties new file mode 100644 index 000000000..447c51385 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Adaptor_Failure.properties @@ -0,0 +1,40 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.device-config=tcfile:///cli_config_content.txt +input.host-ip-address=135.1.1.1 +input.device-login=root +input.device-password = !bootstrap +input.port-number = 22 +input.vnf-type = vUSP - Metaswitch vSBC + +download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC + +download-config-template.download-config-template.TEMPLATE=tcfile:///download_cli_config_template.txt +download-config-template.outCome=SUCCESS + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.outCome=failure +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.error-code = 200 +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.error-message = Device Not Found + +assertEquals.error-code=401 +assertNotNull.error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_DB_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_DB_Failure.properties new file mode 100644 index 000000000..146760c4d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_DB_Failure.properties @@ -0,0 +1,38 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.device-config=tcfile:///cli_config_content.txt +input.host-ip-address=135.1.1.1 +input.device-login=root +input.device-password = !bootstrap +input.port-number = 22 +input.vnf-type = vUSP - Metaswitch vSBC + +org.openecomp.appc.data.services.node.ConfigResourceNode.getDownloadConfigTemplateByVnf.outCome=failure +org.openecomp.appc.data.services.node.ConfigResourceNode.getDownloadConfigTemplateByVnf.tmp.downloadConfigTemplate.error-message=No record for VNF Type + +download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC +download-config-template.outCome=FAILURE + + +assertEquals.error-code=401 +assertNotNull.error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Success.properties new file mode 100644 index 000000000..3ebd399fb --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadCliConfig/DownloadCliConfig_Success.properties @@ -0,0 +1,69 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +# To initialise DG Context before execution +# input.= XXXXX +input.host-ip-address=135.1.1.1 +input.device-login=root +input.device-password = !bootstrap +input.port-number = 22 +input.vnf-type = vUSP - Metaswitch vSBC +# To populate the context variable from file content +input.device-config=tcfile:///cli_config_content.txt + +# SQL Resource Node +#---------------------------- +# + +# To define the SQL execution Status .outCome= SUCCESS | FAILURE | NOT_FOUND +download-config-template.outCome=SUCCESS +# To assert SQL execution node context param ..= XXXXX +download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC +# To Populate the SQL executionoutput .= XXXXX, In this case +# after executing SQL query, I expect the response should be stored in the DG context variable name download-config-template.TEMPLATE +download-config-template.download-config-template.TEMPLATE=tcfile:///download_cli_config_template.txt + +# Configure Node +#---------------------------- +# +# +# +# +# +# +# + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.outCome=success +# To assert execution/configure node context param ..params..= XXXXX +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.params.assertEquals.Port_number=22 +# To assert execution/configure node context param ...= XXXXX +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.assertEquals.vnf-type = vUSP - Metaswitch vSBC + +# To assert DG Context after execution +# .= XXXXX +assertNull.error-code +assertNull.error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/ConfigFile_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/ConfigFile_Failure.properties new file mode 100644 index 000000000..d049fa8af --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/ConfigFile_Failure.properties @@ -0,0 +1,33 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFileReference.outCome=failure + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFileReference.tmp.configfilereference.error-message=Failed to read Config files + +c +# DG properties +APPC.CheckConfigStatus.outCome=success + + + +assertEquals.error-code=401 +assertEquals.error-message=Failed to read Config files + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/DownloadIsbcConfig_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/DownloadIsbcConfig_Success.properties new file mode 100644 index 000000000..695b87c89 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/DownloadIsbcConfig_Success.properties @@ -0,0 +1,45 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFileReference.outCome=success + + +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.deviceconfig-file-content=DUMMYFILECONTENT +input.configfilereference-deviceconfig.TARGET-FILE-PATH=/tmp + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.outCome=success +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.host=135.1.1.1 +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.loginId=root +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.password=!bootstrap +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.data=DUMMYFILECONTENT +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.fullPathFileName=/tmp + +# DG properties +APPC.CheckConfigStatus.outCome=success + + + +assertNull.error-code +assertNull.error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/Put_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/Put_Failure.properties new file mode 100644 index 000000000..23163d126 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/DownloadIsbcConfig/Put_Failure.properties @@ -0,0 +1,39 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.vnf-host-ip-address=135.1.1.1 +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.deviceconfig-file-content=DUMMYFILECONTENT +input.configfilereference-deviceconfig.TARGET-FILE-PATH=/tmp + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFileReference.outCome=success + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.outCome=failure +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.host=135.1.1.1 +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.loginId=root +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.password=!bootstrap +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.data=DUMMYFILECONTENT +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.put.params.assertEquals.fullPathFileName=/tmp + + +assertEquals.error-code=401 + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigNoParams.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigNoParams.properties new file mode 100644 index 000000000..071330213 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigNoParams.properties @@ -0,0 +1,31 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration=tcfile://vdbe_template.xml +input.configuration-params= + + +assertEquals.file-category=device_configuration +assertNull.file-category1 +assertNull.file-category2 + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigWithParams.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigWithParams.properties new file mode 100644 index 000000000..42861fe49 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateConfig/GenerateConfigWithParams.properties @@ -0,0 +1,30 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration=tcfile://vdbe_template.xml +input.configuration-params=tcfile://vdbe_data.json + +assertEquals.file-category=device_configuration +assertEquals.file-category1=configuration_block +assertEquals.file-category2=config_data +assertNotNull.tmp.merge.mergedData + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigNoParams.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigNoParams.properties new file mode 100644 index 000000000..bb9961997 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigNoParams.properties @@ -0,0 +1,30 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-template.file-content=tcfile://vdbe_template.xml +input.configuration-params= + + +assertEquals.file-category=device_configuration +assertNull.file-category1 +assertNull.tmp.merge.mergedData + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigWithParams.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigWithParams.properties new file mode 100644 index 000000000..f1525f932 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GenerateTemplateConfig/GenerateTemplateConfigWithParams.properties @@ -0,0 +1,29 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config-template.file-content=tcfile://vdbe_template.xml +input.configuration-params=tcfile://vdbe_data.json + + +assertEquals.file-category=device_configuration +assertEquals.file-category1=config_data +assertNotNull.tmp.merge.mergedData + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetInfoSuccess.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetInfoSuccess.properties new file mode 100644 index 000000000..943982970 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetInfoSuccess.properties @@ -0,0 +1,32 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.outCome=success +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.tmp.vnfInfo.vnf.vnf-type=ISBC +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.tmp.vnfInfo.vnf.vnf-name=testISBC + + +org.openecomp.appc.aai.client.node.AAIResourceNode.getAllVServersVnfcsInfo.outCome=success +assertEquals.vnf-type=ISBC +assertEquals.vnf-name=testISBC +assertNull.error-code +assertNull.error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVServerFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVServerFail.properties new file mode 100644 index 000000000..3ad1d5f1b --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVServerFail.properties @@ -0,0 +1,34 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.outCome=success +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.tmp.vnfInfo.vnf.vnf-type=ISBC +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.tmp.vnfInfo.vnf.vnf-name=testISBC + + +org.openecomp.appc.aai.client.node.AAIResourceNode.getAllVServersVnfcsInfo.outCome=failure + +org.openecomp.appc.aai.client.node.AAIResourceNode.getAllVServersVnfcsInfo.tmp.vnfInfo.error-message=VServer not found + +assertEquals.vnf-type=ISBC +assertEquals.vnf-name=testISBC +assertEquals.error-code=401 +assertEquals.error-message=VServer not found + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVnfFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVnfFail.properties new file mode 100644 index 000000000..0cb21671c --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetAaiInfo/GetVnfFail.properties @@ -0,0 +1,27 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.outCome=failure +org.openecomp.appc.aai.client.node.AAIResourceNode.getVnfInfo.tmp.vnfInfo.error-message=VNF not found + +assertEquals.error-code=401 +assertEquals.error-message=VNF not found + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliJson.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliJson.properties new file mode 100644 index 000000000..ffa77594a --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliJson.properties @@ -0,0 +1,49 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_json_config.json + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + +APPC.GetAaiInfo.outCome=success + +assertNull.config-type +assertEquals.device-authentication.USER-NAME=root +assertEquals.template-name= +assertNotNull.configuration +assertNotNull.configuration-params + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliString.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliString.properties new file mode 100644 index 000000000..0049359aa --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CliString.properties @@ -0,0 +1,52 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_cli_config.json + + +APPC.GetAaiInfo.outCome=success + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + + +assertNull.config-type +assertEquals.device-authentication.USER-NAME=root +assertEquals.template-name= +assertNotNull.configuration +assertNotNull.configuration-params + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CommonConfigFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CommonConfigFail.properties new file mode 100644 index 000000000..8d79c5c10 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/CommonConfigFail.properties @@ -0,0 +1,47 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_restore_config.json + + + +APPC.GetAaiInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=failure +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.commonConfigInfo.error-message=getCommonConfigInfoFailure + + +assertEquals.config-type=template +assertEquals.template-name= +assertEquals.configuration-params= +assertEquals.error-code=401 +assertEquals.error-message=getCommonConfigInfoFailure + + + + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/DefaultTemplate.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/DefaultTemplate.properties new file mode 100644 index 000000000..ebf08159c --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/DefaultTemplate.properties @@ -0,0 +1,46 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_parameters_config.json + + +APPC.GetAaiInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + +assertEquals.config-type=template +assertEquals.device-authentication.USER-NAME=root +assertNotNull.configuration-params diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Json2DGContextFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Json2DGContextFail.properties new file mode 100644 index 000000000..915f08d2a --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Json2DGContextFail.properties @@ -0,0 +1,38 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_restore_config.json + + + +org.openecomp.sdnc.config.generator.convert.ConvertNode.convertJson2DGContext.outCome=failure +org.openecomp.sdnc.config.generator.convert.ConvertNode.convertJson2DGContext.tmp.convertnode.error-message=Conversion to DG Context Failed +assertEquals.error-code=401 +assertEquals.error-message=Conversion to DG Context Failed + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Restore.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Restore.properties new file mode 100644 index 000000000..54dbf6e62 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/Restore.properties @@ -0,0 +1,53 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_restore_config.json + + + +APPC.GetAaiInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + + +assertEquals.config-type=template +assertEquals.device-authentication.USER-NAME=root +assertEquals.template-name= +assertNull.configuration +assertEquals.configuration-params= + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/TemplateName.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/TemplateName.properties new file mode 100644 index 000000000..209faccb7 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetConfigParams/TemplateName.properties @@ -0,0 +1,46 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_template_config.json + + +APPC.GetAaiInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +org.openecomp.appc.data.services.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + +assertEquals.config-type=template +assertEquals.device-authentication.USER-NAME=root +assertEquals.template-name=vISBC-ssc-change_template1 diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Failure.properties new file mode 100644 index 000000000..05ecd134d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Failure.properties @@ -0,0 +1,34 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config.vnf-id=ibcx0001v +input.config.vm-name=ibcx0001vm001 +input.config.vnf-type= +input.config.vnf-name= +input.config.protocol=CHEF +input.config.host-ip-address=localhost +input.config.user-name=brinda +input.config.password=brinda123 +input.config.port-number=80 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.outCome=failure +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.tmp.deviceconfig.error-message=Couldn't connect to the Server + +assertEquals.dcae-error-message=Couldn't connect to the Server diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Others.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Others.properties new file mode 100644 index 000000000..b0e800fa3 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Others.properties @@ -0,0 +1,34 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config.vnf-id=ibcx0001v +input.config.vm-name=ibcx0001vm001 +input.config.vnf-type= +input.config.vnf-name= +input.config.protocol=CHEF +input.config.host-ip-address=localhost +input.config.user-name=brinda +input.config.password=brinda123 +input.config.port-number=80 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.outCome=Other +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.tmp.deviceconfig.error-message=Couldn't connect to the Server + +assertEquals.dcae-error-message=Unable to Get the Configuration diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Success.properties new file mode 100644 index 000000000..161a6645e --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/Chef_Success.properties @@ -0,0 +1,34 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config.vnf-id=ibcx0001v +input.config.vm-name=ibcx0001vm001 +input.config.vnf-type= +input.config.vnf-name= +input.config.protocol=CHEF +input.config.host-ip-address=localhost +input.config.user-name=brinda +input.config.password=brinda123 +input.config.port-number=80 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.tmp.deviceconfig.file-content=tcfile://config_chef.txt + +assertNotNull.device-running-config diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/XML_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/XML_Success.properties new file mode 100644 index 000000000..161a6645e --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetDeviceRunningConfig/XML_Success.properties @@ -0,0 +1,34 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.config.vnf-id=ibcx0001v +input.config.vm-name=ibcx0001vm001 +input.config.vnf-type= +input.config.vnf-name= +input.config.protocol=CHEF +input.config.host-ip-address=localhost +input.config.user-name=brinda +input.config.password=brinda123 +input.config.port-number=80 + +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getConfigFilesByVnfVmNCategory.tmp.deviceconfig.file-content=tcfile://config_chef.txt + +assertNotNull.device-running-config diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Failure.properties new file mode 100644 index 000000000..e8538078d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Failure.properties @@ -0,0 +1,44 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + + +input.tmp.aai-data-vm.relationship-list.relationship_length=2 +input.tmp.aai-data-vm.relationship-list.relationship[0].related-to=vserver +input.tmp.aai-data-vm.relationship-list.relationship[1].related-to=vf-module + +input.tmp.aai-data-vm.relationship-list.relationship[0].relationship-data_length=2 +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data_length=2 + +input.tmp.aai-data-vm.relationship-list.relationship[0].relationship-data[0].relationship-key=vnfc +input.tmp.aai-data-vm.relationship-list.relationship[0].relationship-data[1].relationship-key=generic-vnf + + + +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[0].relationship-key=vnfc +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[1].relationship-key=tenant + +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[1].relationship-value=100 + + + +assertNull.tmp.vf-module-id +assertEquals.aai-error-message=Unable to get VF Module Id Info. + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Success.properties new file mode 100644 index 000000000..34964c575 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Success.properties @@ -0,0 +1,43 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + + +input.tmp.aai-data-vm.relationship-list.relationship_length=2 +input.tmp.aai-data-vm.relationship-list.relationship[0].related-to=vserver +input.tmp.aai-data-vm.relationship-list.relationship[1].related-to=vf-module + +input.tmp.aai-data-vm.relationship-list.relationship[0].relationship-data_length=2 +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data_length=2 + +input.tmp.aai-data-vm.relationship-list.relationship[0].relationship-data[0].relationship-key=vnfc +input.tmp.aai-data-vm.relationship-list.relationship[0].relationship-data[1].relationship-key=generic-vnf + + + +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[0].relationship-key=vnfc +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[1].relationship-key=vf-module.vf-module-id + +input.tmp.aai-data-vm.relationship-list.relationship[1].relationship-data[1].relationship-value=100 + + + +assertEquals.tmp.vf-module-id=100 + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetInstarParamsFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetInstarParamsFail.properties new file mode 100644 index 000000000..4219bfbce --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetInstarParamsFail.properties @@ -0,0 +1,30 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration-params=tcfile://request-param.json +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-definitions.file-content=tcfile://pd.yaml + +org.openecomp.sdnc.config.params.parser.PropertyDefinitionNode.processExternalSystemParamKeys.outCome=failure +org.openecomp.sdnc.config.params.parser.PropertyDefinitionNode.processExternalSystemParamKeys.tmp.instarParams.error-message=Unable to get Instar Params + + +assertEquals.error-code=401 +assertEquals.error-message=Unable to get Instar Params diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetPDFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetPDFail.properties new file mode 100644 index 000000000..1263f232d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/GetPDFail.properties @@ -0,0 +1,26 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration-params=tcfile://request-param.json +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=failure +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-definitions.error-message=PD file Not found + +assertNull.error-code +assertNull.error-message diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/MergeParamsFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/MergeParamsFail.properties new file mode 100644 index 000000000..776256368 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/MergeParamsFail.properties @@ -0,0 +1,36 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration-params=tcfile://request-param.json +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-definitions.file-content=tcfile://pd.yaml + +org.openecomp.sdnc.config.params.parser.PropertyDefinitionNode.processExternalSystemParamKeys.outCome=success + +org.openecomp.appc.instar.node.InstarClientNode.getInstarInfo.outCome=success + +org.openecomp.sdnc.config.params.parser.PropertyDefinitionNode.processExternalSystemParamKeys.outCome=success +org.openecomp.sdnc.config.params.parser.PropertyDefinitionNode.processExternalSystemParamKeys.INSTAR.keys=["LOCAL_CORE_ALT_IP_ADDR","REMOTE_ACCESS_IP_ADDR"] +org.openecomp.sdnc.config.params.parser.PropertyDefinitionNode.mergeJsonData.outCome=failure +org.openecomp.sdnc.config.params.parser.PropertyDefinitionNode.mergeJsonData.tmp.allParams.error-message=Unable to Merge Params + + +assertEquals.error-code=401 +assertEquals.error-message=Unable to Merge Params diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/NoInstarParams.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/NoInstarParams.properties new file mode 100644 index 000000000..b28e6beda --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/NoInstarParams.properties @@ -0,0 +1,28 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration-params=tcfile://request-param.json +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-definitions.file-content=tcfile://noinstarparams_pd.yaml + + + +assertEquals.configuration-params={ "LOCAL_ACCESS_IP_ADDR": "192.168.30.1", "LOCAL_BILLING_IP_ADDR": "192.168.30.1","REMOTE_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254","REMOTE_BILLING_IP_ADDR": "192.168.30.1","CORE_NETWORK_PLEN": "32"} + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/ProcessPD.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/ProcessPD.properties new file mode 100644 index 000000000..e60208030 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/ProcessPD.properties @@ -0,0 +1,43 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration-params=tcfile://request-param.json +input.request-id=requestid +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-definitions.file-content=tcfile://pd.yaml +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-yang.file-content=tcfile://pd.yaml +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-yang.config-file-id=1234 + +org.openecomp.appc.instar.node.InstarClientNode.getInstarInfo.outCome=success +org.openecomp.appc.instar.node.InstarClientNode.getInstarInfo.tmp.instarValues.INSTAR-KEY-VALUES=tcfile://instar_values.json + + +#To assert execution/configure node context param ..params..= XXXXX +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.outCome=success +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.params.assertEquals.uniqueId=1234 +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.params.assertEquals.requestId=requestid +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.params.assertEquals.configJSON={"LOCAL_BILLING_IP_ADDR":"192.168.30.1","LOCAL_ACCESS_IP_ADDR":"192.168.30.1","CORE_NETWORK_PLEN":"32","LOCAL_CORE_ALT_IP_ADDR":"DummyInstarIP1","REMOTE_CORE_ALT_IP_ADDR":"fd00:f4d5:ea06:1:0:110:136:254","REMOTE_ACCESS_IP_ADDR":"DummyInstarIP2","REMOTE_BILLING_IP_ADDR":"192.168.30.1"} + +org.openecomp.appc.data.services.node.ConfigResourceNode.saveConfigTransactionLog.outCome=true +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.outCome=true + +assertEquals.configuration-params={"LOCAL_BILLING_IP_ADDR":"192.168.30.1","LOCAL_ACCESS_IP_ADDR":"192.168.30.1","CORE_NETWORK_PLEN":"32","LOCAL_CORE_ALT_IP_ADDR":"DummyInstarIP1","REMOTE_CORE_ALT_IP_ADDR":"fd00:f4d5:ea06:1:0:110:136:254","REMOTE_ACCESS_IP_ADDR":"DummyInstarIP2","REMOTE_BILLING_IP_ADDR":"192.168.30.1"} + +assertEquals.INSTAR.keys=["LOCAL_CORE_ALT_IP_ADDR","REMOTE_ACCESS_IP_ADDR"] diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/SaveMdsalFail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/SaveMdsalFail.properties new file mode 100644 index 000000000..4584f69b0 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/ProcessParameterDefinition/SaveMdsalFail.properties @@ -0,0 +1,45 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.configuration-params=tcfile://request-param.json +input.request-id=requestid +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-definitions.file-content=tcfile://pd.yaml +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-yang.file-content=tcfile://pd.yaml +org.openecomp.appc.data.services.node.ConfigResourceNode.getTemplate.parameter-yang.config-file-id=1234 + +org.openecomp.appc.instar.node.InstarClientNode.getInstarInfo.outCome=success +org.openecomp.appc.instar.node.InstarClientNode.getInstarInfo.tmp.instarValues.INSTAR-KEY-VALUES=tcfile://instar_values.json + + +#To assert execution/configure node context param ..params..= XXXXX +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.outCome=failure +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.tmp.mdSalSave.ERROR_MESSAGE=MDSAL ERROR +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.params.assertEquals.uniqueId=1234 +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.params.assertEquals.requestId=requestid +org.openecomp.appc.dg.common.VNFConfigurator.storeConfig.params.assertEquals.configJSON={"LOCAL_BILLING_IP_ADDR":"192.168.30.1","LOCAL_ACCESS_IP_ADDR":"192.168.30.1","CORE_NETWORK_PLEN":"32","LOCAL_CORE_ALT_IP_ADDR":"DummyInstarIP1","REMOTE_CORE_ALT_IP_ADDR":"fd00:f4d5:ea06:1:0:110:136:254","REMOTE_ACCESS_IP_ADDR":"DummyInstarIP2","REMOTE_BILLING_IP_ADDR":"192.168.30.1"} + +org.openecomp.appc.data.services.node.ConfigResourceNode.saveConfigTransactionLog.outCome=true +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.outCome=true + +assertEquals.configuration-params={"LOCAL_BILLING_IP_ADDR":"192.168.30.1","LOCAL_ACCESS_IP_ADDR":"192.168.30.1","CORE_NETWORK_PLEN":"32","LOCAL_CORE_ALT_IP_ADDR":"DummyInstarIP1","REMOTE_CORE_ALT_IP_ADDR":"fd00:f4d5:ea06:1:0:110:136:254","REMOTE_ACCESS_IP_ADDR":"DummyInstarIP2","REMOTE_BILLING_IP_ADDR":"192.168.30.1"} + +assertEquals.INSTAR.keys=["LOCAL_CORE_ALT_IP_ADDR","REMOTE_ACCESS_IP_ADDR"] +assertEquals.dcae-error-message=MDSAL ERROR diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Failure.properties new file mode 100644 index 000000000..4e2dccfd5 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Failure.properties @@ -0,0 +1,36 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### +input.vnf-id=ibcx0001v +input.tmp.uploadConfigInfo.VNF-ID=ibcx0001v +input.tmp.uploadConfigInfo.UPLOAD-CONFIG-ID=12434 +input.tmp.uploadConfigInfo.FILE-CONTENT=configData +input.tmp.uploadConfigInfo.tmStamp=567890 + + +org.openecomp.sdnc.config.generator.convert.ConvertNode.convertContextToJson.outCome=failure +org.openecomp.sdnc.config.generator.convert.ConvertNode.convertContextToJson.tmp.jsonConversion.error-message=Conversion Error +org.openecomp.appc.dg.common.JsonDgUtil.generateOutputPayloadFromContext.outCome=success +org.openecomp.appc.dg.common.JsonDgUtil.generateOutputPayloadFromContext.output.payload={ \\"upload-config-id\\" : [100] } + +assertEquals.output.payload.upload-config-id[0]=12434 + +assertEquals.dcae-error-message=Error from convertContextToJson - Conversion Error + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Success.properties new file mode 100644 index 000000000..bf851ed37 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/PublishConfiguration/PublishConfig_Success.properties @@ -0,0 +1,34 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### +input.vnf-id=ibcx0001v +input.tmp.uploadConfigInfo.VNF-ID=ibcx0001v +input.tmp.uploadConfigInfo.UPLOAD-CONFIG-ID=12434 +input.tmp.uploadConfigInfo.FILE-CONTENT=configData +input.tmp.uploadConfigInfo.UPLOAD-TIMESTAMP=567890 + + +org.openecomp.appc.dg.common.JsonDgUtil.generateOutputPayloadFromContext.outCome=success +org.openecomp.appc.dg.common.JsonDgUtil.generateOutputPayloadFromContext.output.payload={ \\"upload-config-id\\" : [100] } + +assertEquals.output.payload.upload-config-id[0]=12434 + +assertEquals.tmp.fileName=/opt/app/bvc/cvaas/ibcx0001v_567890_appc001.json + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Failure.properties new file mode 100644 index 000000000..868f9ac91 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Failure.properties @@ -0,0 +1,66 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.vnf-id=ibcx0001v +input.vm-name=ibcx0001vm001 +input.vm-name=ibcx0001vm001 +input.vnf-type=ISBC + +input.vnf-host-ip-address=135.1.1.1 + +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +c + +# DG properties +APPC.GetDeviceRunningConfig.outCome=failure + + +input.dcae-error-message=Error while getting device config + + + +assertEquals.config.vnf-id=ibcx0001v +assertEquals.config.vm-name=ibcx0001vm001 + +assertEquals.config.vnf-type=ISBC + +assertEquals.config.host-ip-address=135.1.1.1 + +assertEquals.config.user-name=root +assertEquals.config.password = !bootstrap +assertEquals.config.port-number = 22 +assertEquals.config.protocol = CLI + + +assertNull.output.payload.upload-config-id[0] + + +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.outCome=success +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.params.assertEquals.output.status.dgerror.code=501 +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.params.assertEquals.output.status.message=501:Configuration is successful but unable to get the running config. + + +org.openecomp.appc.data.services.node.ConfigResourceNode.saveConfigTransactionLog.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.saveConfigTransactionLog.params.assertEquals.message=501:Configuration is successful but unable to get the running config. diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Success.properties new file mode 100644 index 000000000..316ad559e --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/SaveRunningConfig_Success.properties @@ -0,0 +1,63 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.vnf-id=ibcx0001v +input.vm-name=ibcx0001vm001 +input.vm-name=ibcx0001vm001 +input.vnf-type=ISBC + +input.vnf-host-ip-address=135.1.1.1 + +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +org.openecomp.appc.data.services.node.ConfigResourceNode.updateUploadConfig.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.updateUploadConfig.tmp.uploadconfigmax.uploadconfigid=100 + + + +# DG properties +APPC.GetDeviceRunningConfig.outCome=success +APPC.PublishConfiguration.outCome=success + +com.att.sdnctl.prop.PropertiesNode.readProperties=success +assertNull.dcae-error-message + + + +assertEquals.config.vnf-id=ibcx0001v +assertEquals.config.vm-name=ibcx0001vm001 + +assertEquals.config.vnf-type=ISBC + +assertEquals.config.host-ip-address=135.1.1.1 + +assertEquals.config.user-name=root +assertEquals.config.password = !bootstrap +assertEquals.config.port-number = 22 +assertEquals.config.protocol = CLI + + + + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/UploadConfig_Failure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/UploadConfig_Failure.properties new file mode 100644 index 000000000..930856150 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SaveRunningConfig/UploadConfig_Failure.properties @@ -0,0 +1,67 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.vnf-id=ibcx0001v +input.vm-name=ibcx0001vm001 +input.vm-name=ibcx0001vm001 +input.vnf-type=ISBC + +input.vnf-host-ip-address=135.1.1.1 + +input.device-authentication.USER-NAME=root +input.device-authentication.PASSWORD = !bootstrap +input.device-authentication.PORT-NUMBER = 22 +input.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +input.deviceconfig-file-content=DUMMYFILECONTENT + +c + +# DG properties +APPC.GetDeviceRunningConfig.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.updateUploadConfig.outCome=failure + +org.openecomp.appc.data.services.node.ConfigResourceNode.updateUploadConfig.tmp.uploadconfig.error-message=SQLERROR + + + + + +assertEquals.config.vnf-id=ibcx0001v +assertEquals.config.vm-name=ibcx0001vm001 + +assertEquals.config.vnf-type=ISBC + +assertEquals.config.host-ip-address=135.1.1.1 + +assertEquals.config.user-name=root +assertEquals.config.password = !bootstrap +assertEquals.config.port-number = 22 +assertEquals.config.protocol = CLI + + +assertNull.output.payload.upload-config-id[0] + +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.outCome=success +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.params.assertEquals.output.status.dgerror.code=501 +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.params.assertEquals.output.status.message=501:Configuration is successful but unable to save the running config.SQLERROR + + +org.openecomp.appc.data.services.node.ConfigResourceNode.saveConfigTransactionLog.outCome=success +org.openecomp.appc.data.services.node.ConfigResourceNode.saveConfigTransactionLog.params.assertEquals.message=501:Configuration is successful but unable to save the running config.SQLERROR diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_AaiFailure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_AaiFailure.properties new file mode 100644 index 000000000..07df12b90 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_AaiFailure.properties @@ -0,0 +1,32 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.outcome=success +input.error-code=400 +input.request-action=Configure +input.aai-error-message=Get from A&AI Failed +# DG properties +APPC.UpdateAaiInfo.outCome=failure +APPC.SaveRunningConfig.outCome=success + + + + +assertEquals.error-code=400 diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_SaveRunningFailure.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_SaveRunningFailure.properties new file mode 100644 index 000000000..0de2b09f4 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_SaveRunningFailure.properties @@ -0,0 +1,31 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.outcome=success +input.error-code=400 +input.request-action=Configure + +# DG properties +APPC.UpdateAaiInfo.outCome=success +APPC.SaveRunningConfig.outCome=failure + +assertNull.dcae-error-message +assertEquals.error-code=400 + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_Success.properties new file mode 100644 index 000000000..af4eb91bc --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/SetStatus/SetStatus_Success.properties @@ -0,0 +1,31 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.dg.common.DCAEReporterPlugin.report.outcome=success +input.error-code=400 +input.request-action=Configure + +# DG properties +APPC.UpdateAaiInfo.outCome=success +APPC.SaveRunningConfig.outCome=success + +assertNull.dcae-error-message +assertEquals.error-code=400 + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/GetVnfcRef_Fail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/GetVnfcRef_Fail.properties new file mode 100644 index 000000000..e906379df --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/GetVnfcRef_Fail.properties @@ -0,0 +1,28 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.data.services.node.ConfigResourceNode.getVnfcReference.outCome=failure +org.openecomp.appc.data.services.node.ConfigResourceNode.getVnfcReference.vnfc-reference[0].error-message=VnfcRef Record not found + + + +assertEquals.dcae-error-message=Unable to Update A&AI. VnfcRef Record not found + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Fail.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Fail.properties new file mode 100644 index 000000000..1c50c2d25 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Fail.properties @@ -0,0 +1,31 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.data.services.node.ConfigResourceNode.getVnfcReference.outCome=success + +org.openecomp.appc.aai.client.node.AAIResourceNode.updateVnfAndVServerStatus.outCome=failure +org.openecomp.appc.aai.client.node.AAIResourceNode.updateVnfAndVServerStatus.tmp.vnfInfo.error-message=A&AI Update for VServer failed. + +org.openecomp.appc.aai.client.node.AAIResourceNode.addVnfcs.outCome=failure +org.openecomp.appc.aai.client.node.AAIResourceNode.addVnfcs.tmp.vnfInfo.error-message=A&AI Insert for vnfc failed. + +assertEquals.dcae-error-message=A&AI Update for VServer failed.A&AI Insert for vnfc failed. + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Success.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Success.properties new file mode 100644 index 000000000..62b1395dc --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/UpdateAaIInfo/Update_Success.properties @@ -0,0 +1,28 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +org.openecomp.appc.data.services.node.ConfigResourceNode.getVnfcReference.outCome=success + +org.openecomp.appc.aai.client.node.AAIResourceNode.addVnfcs.outCome=success + +org.openecomp.appc.aai.client.node.AAIResourceNode.updateVnfAndVServerStatus.outCome=success +assertNull.dcae-error-message + + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC1.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC1.properties new file mode 100644 index 000000000..fba26b34a --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC1.properties @@ -0,0 +1,27 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_json_config.json diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC2.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC2.properties new file mode 100644 index 000000000..b65597f50 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC_method_CommonConfiguration_TC2.properties @@ -0,0 +1,54 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +input.input.action-identifiers.vnf-id=VDBE +input.input.action-identifiers.service-instance-id=Instance1234 +input.input.common-header.request-id=12345 +input.input.common-header.originator-id=MSO +input.input.api-ver=2.11 +input.input.action=Configure +input.input.payload=tcfile://payload_json_config.json + + +# Property for com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo Execute Action +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.commonConfigInfo.status=success +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.DEVICE-AUTHENTICATION-ID = 3 +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.VNF-TYPE=vUSP - Metaswitch vSBC +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.USER-NAME=root +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PASSWORD = !bootstrap +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.device-authentication.PORT-NUMBER = 22 + +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DEVICE-INTERFACE-PROTOCOL-ID = 4 +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.VNF-TYPE = vUSP - Metaswitch vSBC +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.PROTOCOL = CLI +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.MODULE = appc +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.deviceinterfaceprotocol.DG-RPC = getDeviceRunningConfig + +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.configureactiondg.CONFIGURE-ACTION-DG-ID = 8 +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.configureactiondg.VNF-TYPE = vUSP - Metaswitch vSBC +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.tmp.configureactiondg.DOWNLOAD-CONFIG-DG = DownloadIsbcConfig + +com.att.appc.config.generator.node.ConfigResourceNode.getCommonConfigInfo.outCome=success + + +# DG APPC.DownloadIsbcConfig properties +APPC.DownloadIsbcConfig.outCome=success +#APPC.DownloadIsbcConfig.outCome=not-found + diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/ASDC-MESSAGE_method_configuration-document-request_TC1.properties b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/ASDC-MESSAGE_method_configuration-document-request_TC1.properties new file mode 100644 index 000000000..ffbdff81c --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/ASDC-MESSAGE_method_configuration-document-request_TC1.properties @@ -0,0 +1,23 @@ +### +# ============LICENSE_START======================================================= +# ONAP : APP-C +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +asdc-reference.configuration-document-request-input.document-parameters.artifact-contents=tcfile://vdbe_template.xml +asdc-reference.outCome=SUCCESS +tmp.asdc-artifacts.outCome=SUCCESS diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/cli_config_content.txt b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/cli_config_content.txt new file mode 100644 index 000000000..90f301a4f --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/cli_config_content.txt @@ -0,0 +1,5 @@ +config +system +service-interface serv1 +ipv4 +gateway-ip-address 192.168.30.44 \ No newline at end of file diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/config_chef.txt b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/config_chef.txt new file mode 100644 index 000000000..6fbe5e762 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/config_chef.txt @@ -0,0 +1,5 @@ +config +system +service-interface serv1 +ipv4 +gateway-ip-address 192.168.30.1 \ No newline at end of file diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/download_cli_config_template.txt b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/download_cli_config_template.txt new file mode 100644 index 000000000..41a5fa612 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/download_cli_config_template.txt @@ -0,0 +1,18 @@ +Login_Prompt: Matches "Login as:" + Password_Prompt: Matches "Password:" + Request_Prompt: Ends_With "~#" + Request: "sdc" + Response: Ends_With ":" + Request: "1" + Response: Ends_With ":" + Request: "1" + Response: Ends_With "#" + Request: "paging-options disable" + Response: Ends_With "#" + Request: "show config" + Response: Ends_With "#" + Request: "exit" + Response: Ends_With ":" + Request: "0" + Response: Ends_With "#" + Request: "exit" \ No newline at end of file diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/instar_values.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/instar_values.json new file mode 100644 index 000000000..6d053cf7d --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/instar_values.json @@ -0,0 +1,25 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "LOCAL_CORE_ALT_IP_ADDR": "DummyInstarIP1", + "REMOTE_ACCESS_IP_ADDR": "DummyInstarIP2" + +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/isbc_config_parameters.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/isbc_config_parameters.json new file mode 100644 index 000000000..217f9d67c --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/isbc_config_parameters.json @@ -0,0 +1,60 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "request-parameters": { + "vnf-type": "ISBC", + "vnf-host-ip-address": "135.21.166.39", + "service-instance-id": "ibcx0001vm001", + "site-location": "Middletown", + "vnf-name": "ibcx0001v", + "vm": [ + { + "vm-name": "ibcx0001vm001", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm001ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "ipaddress-v4-oam-vip": "12.1.1.1", + "pair-number": "ibcx0001vm001ssc001pair" + } + ] + }, + { + "vm-name": "ibcx0001vm002", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm002ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "pair-number": "ibcx0001vm002ssc001pair" + } + ] + } + ] + }, + "configuration-parameters": { + "node0_hostname" : "appc-host", + "node0_backup_router_address": "2001:1890:1253::192:168:100:1", + "node0_tacplus_server_name1": "servername1", + "node0_tacplus_server_name2": "servername2" + } +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/noinstarparams_pd.yaml b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/noinstarparams_pd.yaml new file mode 100644 index 000000000..5cf518101 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/noinstarparams_pd.yaml @@ -0,0 +1,92 @@ +--- +kind: "Property Definition" +version: "V1" +parameters: +- name: "LOCAL_ACCESS_IP_ADDR" + description: null + type: null + list: false + required: false + source: null + class-type: "interface-ip-address" + default-value: "192.168.30.1" + assigned-value: "192.168.30.1" + path: null + request-keys: + - key-id: "address_fqdn" + key-value: "m001dbj001p1n004v006" + - key-id: "address_type" + key-value: "v4" + response-keys: null +- name: "LOCAL_CORE_ALT_IP_ADDR" + description: null + type: null + list: false + required: false + source: null + class-type: null + default-value: "fd00:f4d5:ea06:1:0:110:136:254" + assigned-value: "fd00:f4d5:ea06:1:0:110:136:254" + path: null + request-keys: null + response-keys: null +- name: "LOCAL_BILLING_IP_ADDR" + description: null + type: null + list: false + required: false + source: null + class-type: null + default-value: "192.168.30.1" + assigned-value: "192.168.30.1" + path: null + request-keys: null + response-keys: null +- name: "REMOTE_ACCESS_IP_ADDR" + description: null + type: null + list: false + required: false + source: null + class-type: null + default-value: "192.168.30.1" + assigned-value: "192.168.30.1" + path: null + request-keys: null + response-keys: null +- name: "REMOTE_CORE_ALT_IP_ADDR" + description: null + type: null + list: false + required: false + source: null + class-type: null + default-value: "fd00:f4d5:ea06:1:0:110:136:254" + assigned-value: "fd00:f4d5:ea06:1:0:110:136:254" + path: null + request-keys: null + response-keys: null +- name: "REMOTE_BILLING_IP_ADDR" + description: null + type: null + list: false + required: false + source: null + class-type: null + default-value: "192.168.30.1" + assigned-value: "192.168.30.1" + path: null + request-keys: null + response-keys: null +- name: "CORE_NETWORK_PLEN" + description: null + type: null + list: false + required: false + source: null + class-type: null + default-value: "32" + assigned-value: "32" + path: null + request-keys: null + response-keys: null diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_cli_config.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_cli_config.json new file mode 100644 index 000000000..8d872e173 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_cli_config.json @@ -0,0 +1,98 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "request-parameters": { + "vnf-type": "ISBC", + "vnf-host-ip-address": "135.21.166.39", + "service-instance-id": "ibcx0001vm001", + "site-location": "Middletown", + "vnf-name": "ibcx0001v", + "vm": [ + { + "vm-name": "ibcx0001vm001", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm001ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "ipaddress-v4-oam-vip": "12.1.1.1", + "group-notation": "ibcx0001vm001ssc001pair" + } + ] + }, + { + "vm-name": "ibcx0001vm002", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm002ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "group-notation": "ibcx0001vm002ssc001pair" + } + ] + } + ] + }, + "configuration": { + "configuration-string": "config\r\nsystem\r\nservice-interface serv1\r\nipv4\r\ngateway-ip-address 12.12.12.12\r\n" + }, + "configuration-parameters": { + "LOCAL_ACCESS_IP_ADDR": "192.168.30.1", + "LOCAL_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "LOCAL_BILLING_IP_ADDR": "192.168.30.1", + "REMOTE_ACCESS_IP_ADDR": "192.168.30.1", + "REMOTE_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "REMOTE_BILLING_IP_ADDR": "192.168.30.1", + "CORE_NETWORK_PLEN": "32", + "CORE_NETWORK_ALT_PLEN": "126", + "CORE_NETWORK_DEFAULT_GATEWAY": "192.168.30.1", + "CORE_NETWORK_ALT_DEFAULT_GATEWAY": "fd00:f4d5:ea06:1:0:110:136:254", + "ACCESS_NETWORK_PLEN": "32", + "ACCESS_NETWORK_ALT_PLEN": "126", + "ACCESS_NETWORK_DEFAULT_GATEWAY": "135.25.69.147", + "ACCESS_NETWORK_ALT_DEFAULT_GATEWAY": "fd00:f4d5:ea06:1:0:110:136:254", + "BILLING_NETWORK_PLEN": "32", + "BILLING_NETWORK_DEFAULT_GATEWAY": "135.25.69.147", + "VIRT_CORE_IP_ADDR": "135.25.69.147", + "VIRT_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "VIRT_ACCESS_IP_ADDR": "135.25.69.147", + "VIRT_ACCESS_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "VIRT_BILLING_IP_ADDR": "135.25.69.147", + "DNS_SERVERS": "135.25.69.147", + "SNMP_CLIENT_1": "135.25.69.147", + "SNMP_CLIENT_2": "135.25.69.147", + "SNMP_COMMUNITY_STRING_CLIENT1": "135.25.69.147", + "SNMP_COMMUNITY_STRING_CLIENT2": "135.25.69.147", + "BILLING_SERVER_1": "135.25.69.147", + "BILLING_SERVER_2": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR1": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR2": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR3": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR4": "135.25.69.147", + "OAM_VIP_HOSTNAME": "135.25.69.147", + "DG_APP_SERVER1": "135.25.69.147", + "DG_APP_SERVER2": "135.25.69.147", + "CTS_IP_RANGE": "135.25.69.147", + "CTS_PREFIX_LENGTH": "26", + "LICENSE_KEY": "AQGpAQA/AQAEAAANBAIAGY1mwTCGq0adcFTpiuwgDxAFwlmxPP8TYmQDAAEBBAAABQAEVwMAAAYABFhR3QAHAARXAwAAAgFkAQAoAQABBAIAB0MwMjc1MTgDAAL//wYAB0wwMTEwMDEHAAQAAAABCQABAAIBNgEBMwEAAQECAAEAAwAEAAGGoAQABP////8FAASAADTfBgAE/////wcAFAEABkcuNzI5QQIABAAAE4gDAAEBBwARAQADQU1SAgAEAAATiAMAAQEHABQBAAZBTVItV0ICAAQAABOIAwABAQsABAABhqAMAB4BABBJTlNUX0lTQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX0lTQ19IQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX1NTQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX1NTQ19IQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX01TQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX01TQ19IQV9WSVJUAgAEAAAAZAMAAQG8N/Kba2f53+Rj7bN0En1MmpFrvPo+QBSk0smG9XCVZ8lmwYTCggTSLdHDG8kR1/AsSz7nr3v87H+4GIuY+Ktjw7Ug1a8xhBRUabSjz5pOm34ZZwG8uC38sbgVfIXEZJd+jukvAijyRqnrud5MX24vozW/tVMYj4GHCmrdc176tA==", + "LIC_SERVER_BYPASS_URI": "file:///var/opt/MetaSwitch/craft/ftp/META-L011001-20170316.byp" + } +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_json_config.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_json_config.json new file mode 100644 index 000000000..e29080aab --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_json_config.json @@ -0,0 +1,104 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "request-parameters": { + "vnf-type": "ISBC", + "vnf-host-ip-address": "135.21.166.39", + "service-instance-id": "ibcx0001vm001", + "site-location": "Middletown", + "vnf-name": "ibcx0001v", + "vm": [ + { + "vm-name": "ibcx0001vm001", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm001ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "ipaddress-v4-oam-vip": "12.1.1.1", + "group-notation": "ibcx0001vm001ssc001pair" + } + ] + }, + { + "vm-name": "ibcx0001vm002", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm002ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "group-notation": "ibcx0001vm002ssc001pair" + } + ] + } + ] + }, + "configuration": { + "configuration-json": { + "config": { + "group": { + "interface": "interface1" + } + } + } + }, + "configuration-parameters": { + "LOCAL_ACCESS_IP_ADDR": "192.168.30.1", + "LOCAL_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "LOCAL_BILLING_IP_ADDR": "192.168.30.1", + "REMOTE_ACCESS_IP_ADDR": "192.168.30.1", + "REMOTE_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "REMOTE_BILLING_IP_ADDR": "192.168.30.1", + "CORE_NETWORK_PLEN": "32", + "CORE_NETWORK_ALT_PLEN": "126", + "CORE_NETWORK_DEFAULT_GATEWAY": "192.168.30.1", + "CORE_NETWORK_ALT_DEFAULT_GATEWAY": "fd00:f4d5:ea06:1:0:110:136:254", + "ACCESS_NETWORK_PLEN": "32", + "ACCESS_NETWORK_ALT_PLEN": "126", + "ACCESS_NETWORK_DEFAULT_GATEWAY": "135.25.69.147", + "ACCESS_NETWORK_ALT_DEFAULT_GATEWAY": "fd00:f4d5:ea06:1:0:110:136:254", + "BILLING_NETWORK_PLEN": "32", + "BILLING_NETWORK_DEFAULT_GATEWAY": "135.25.69.147", + "VIRT_CORE_IP_ADDR": "135.25.69.147", + "VIRT_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "VIRT_ACCESS_IP_ADDR": "135.25.69.147", + "VIRT_ACCESS_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "VIRT_BILLING_IP_ADDR": "135.25.69.147", + "DNS_SERVERS": "135.25.69.147", + "SNMP_CLIENT_1": "135.25.69.147", + "SNMP_CLIENT_2": "135.25.69.147", + "SNMP_COMMUNITY_STRING_CLIENT1": "135.25.69.147", + "SNMP_COMMUNITY_STRING_CLIENT2": "135.25.69.147", + "BILLING_SERVER_1": "135.25.69.147", + "BILLING_SERVER_2": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR1": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR2": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR3": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR4": "135.25.69.147", + "OAM_VIP_HOSTNAME": "135.25.69.147", + "DG_APP_SERVER1": "135.25.69.147", + "DG_APP_SERVER2": "135.25.69.147", + "CTS_IP_RANGE": "135.25.69.147", + "CTS_PREFIX_LENGTH": "26", + "LICENSE_KEY": "AQGpAQA/AQAEAAANBAIAGY1mwTCGq0adcFTpiuwgDxAFwlmxPP8TYmQDAAEBBAAABQAEVwMAAAYABFhR3QAHAARXAwAAAgFkAQAoAQABBAIAB0MwMjc1MTgDAAL//wYAB0wwMTEwMDEHAAQAAAABCQABAAIBNgEBMwEAAQECAAEAAwAEAAGGoAQABP////8FAASAADTfBgAE/////wcAFAEABkcuNzI5QQIABAAAE4gDAAEBBwARAQADQU1SAgAEAAATiAMAAQEHABQBAAZBTVItV0ICAAQAABOIAwABAQsABAABhqAMAB4BABBJTlNUX0lTQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX0lTQ19IQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX1NTQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX1NTQ19IQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX01TQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX01TQ19IQV9WSVJUAgAEAAAAZAMAAQG8N/Kba2f53+Rj7bN0En1MmpFrvPo+QBSk0smG9XCVZ8lmwYTCggTSLdHDG8kR1/AsSz7nr3v87H+4GIuY+Ktjw7Ug1a8xhBRUabSjz5pOm34ZZwG8uC38sbgVfIXEZJd+jukvAijyRqnrud5MX24vozW/tVMYj4GHCmrdc176tA==", + "LIC_SERVER_BYPASS_URI": "file:///var/opt/MetaSwitch/craft/ftp/META-L011001-20170316.byp" + } +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_parameters_config.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_parameters_config.json new file mode 100644 index 000000000..968db23e3 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_parameters_config.json @@ -0,0 +1,95 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "request-parameters": { + "vnf-type": "ISBC", + "vnf-host-ip-address": "135.21.166.39", + "service-instance-id": "ibcx0001vm001", + "site-location": "Middletown", + "vnf-name": "ibcx0001v", + "vm": [ + { + "vm-name": "ibcx0001vm001", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm001ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "ipaddress-v4-oam-vip": "12.1.1.1", + "pair-number": "ibcx0001vm001ssc001pair" + } + ] + }, + { + "vm-name": "ibcx0001vm002", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm002ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "pair-number": "ibcx0001vm002ssc001pair" + } + ] + } + ] + }, + "configuration-parameters": { + "LOCAL_ACCESS_IP_ADDR": "192.168.30.1", + "LOCAL_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "LOCAL_BILLING_IP_ADDR": "192.168.30.1", + "REMOTE_ACCESS_IP_ADDR": "192.168.30.1", + "REMOTE_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "REMOTE_BILLING_IP_ADDR": "192.168.30.1", + "CORE_NETWORK_PLEN": "32", + "CORE_NETWORK_ALT_PLEN": "126", + "CORE_NETWORK_DEFAULT_GATEWAY": "192.168.30.1", + "CORE_NETWORK_ALT_DEFAULT_GATEWAY": "fd00:f4d5:ea06:1:0:110:136:254", + "ACCESS_NETWORK_PLEN": "32", + "ACCESS_NETWORK_ALT_PLEN": "126", + "ACCESS_NETWORK_DEFAULT_GATEWAY": "135.25.69.147", + "ACCESS_NETWORK_ALT_DEFAULT_GATEWAY": "fd00:f4d5:ea06:1:0:110:136:254", + "BILLING_NETWORK_PLEN": "32", + "BILLING_NETWORK_DEFAULT_GATEWAY": "135.25.69.147", + "VIRT_CORE_IP_ADDR": "135.25.69.147", + "VIRT_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "VIRT_ACCESS_IP_ADDR": "135.25.69.147", + "VIRT_ACCESS_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254", + "VIRT_BILLING_IP_ADDR": "135.25.69.147", + "DNS_SERVERS": "135.25.69.147", + "SNMP_CLIENT_1": "135.25.69.147", + "SNMP_CLIENT_2": "135.25.69.147", + "SNMP_COMMUNITY_STRING_CLIENT1": "135.25.69.147", + "SNMP_COMMUNITY_STRING_CLIENT2": "135.25.69.147", + "BILLING_SERVER_1": "135.25.69.147", + "BILLING_SERVER_2": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR1": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR2": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR3": "135.25.69.147", + "IMS_CORE_ALT_IP_ADDR4": "135.25.69.147", + "OAM_VIP_HOSTNAME": "135.25.69.147", + "DG_APP_SERVER1": "135.25.69.147", + "DG_APP_SERVER2": "135.25.69.147", + "CTS_IP_RANGE": "135.25.69.147", + "CTS_PREFIX_LENGTH": "26", + "LICENSE_KEY": "AQGpAQA/AQAEAAANBAIAGY1mwTCGq0adcFTpiuwgDxAFwlmxPP8TYmQDAAEBBAAABQAEVwMAAAYABFhR3QAHAARXAwAAAgFkAQAoAQABBAIAB0MwMjc1MTgDAAL//wYAB0wwMTEwMDEHAAQAAAABCQABAAIBNgEBMwEAAQECAAEAAwAEAAGGoAQABP////8FAASAADTfBgAE/////wcAFAEABkcuNzI5QQIABAAAE4gDAAEBBwARAQADQU1SAgAEAAATiAMAAQEHABQBAAZBTVItV0ICAAQAABOIAwABAQsABAABhqAMAB4BABBJTlNUX0lTQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX0lTQ19IQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX1NTQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX1NTQ19IQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX01TQ19TQV9WSVJUAgAEAAAAZAMAAQEMAB4BABBJTlNUX01TQ19IQV9WSVJUAgAEAAAAZAMAAQG8N/Kba2f53+Rj7bN0En1MmpFrvPo+QBSk0smG9XCVZ8lmwYTCggTSLdHDG8kR1/AsSz7nr3v87H+4GIuY+Ktjw7Ug1a8xhBRUabSjz5pOm34ZZwG8uC38sbgVfIXEZJd+jukvAijyRqnrud5MX24vozW/tVMYj4GHCmrdc176tA==", + "LIC_SERVER_BYPASS_URI": "file:///var/opt/MetaSwitch/craft/ftp/META-L011001-20170316.byp" + } +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_restore_config.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_restore_config.json new file mode 100644 index 000000000..4f282963b --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_restore_config.json @@ -0,0 +1,54 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "request-parameters": { + "vnf-type": "ISBC", + "vnf-host-ip-address": "135.21.166.39", + "service-instance-id": "ibcx0001vm001", + "site-location": "Middletown", + "vnf-name": "ibcx0001v", + "vm": [ + { + "vm-name": "ibcx0001vm001", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm001ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "ipaddress-v4-oam-vip": "12.1.1.1", + "pair-number": "ibcx0001vm001ssc001pair" + } + ] + }, + { + "vm-name": "ibcx0001vm002", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm002ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "pair-number": "ibcx0001vm002ssc001pair" + } + ] + } + ] + } +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_template_config.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_template_config.json new file mode 100644 index 000000000..edd5be344 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/payload_template_config.json @@ -0,0 +1,56 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "request-parameters": { + "vnf-type": "ISBC", + "vnf-host-ip-address": "135.21.166.39", + "service-instance-id": "ibcx0001vm001", + "site-location": "Middletown", + "vnf-name": "ibcx0001v", + "vm": [ + { + "vm-name": "ibcx0001vm001", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm001ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "ipaddress-v4-oam-vip": "12.1.1.1", + "group-notation": "ibcx0001vm001ssc001pair" + } + ] + }, + { + "vm-name": "ibcx0001vm002", + "vnfc": [ + { + "vnfc-name": "ibcx0001vm002ssc001", + "vnfc-function-code": "ssc", + "vnfc-type": "vISBC – ssc", + "group-notation": "ibcx0001vm002ssc001pair" + } + ] + } + ], + "template-name": "vISBC-ssc-change_template1" + + } +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/pd.yaml b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/pd.yaml new file mode 100644 index 000000000..3eb302eb3 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/pd.yaml @@ -0,0 +1,75 @@ +--- +kind: "Property Definition" +version: "V1" +vnf-parameter-list: +- name: "LOCAL_ACCESS_IP_ADDR" + description: null + type: null + required: false + source: "INSTAR" + rule-type: "interface-ip-address" + default: "192.168.30.1" + request-keys: + - key-name: "address_fqdn" + key-value: "m001dbj001p1n004v006" + - key-name: "address_type" + key-value: "v4" + response-keys: null +- name: "LOCAL_CORE_ALT_IP_ADDR" + description: null + type: null + required: false + source: "INSTAR" + rule-type: null + default: "fd00:f4d5:ea06:1:0:110:136:254" + request-keys: + - key-name: "address_fqdn" + key-value: "m001dbj001p1n004v006" + - key-name: "address_type" + key-value: "v4" + response-keys: null +- name: "LOCAL_BILLING_IP_ADDR" + description: null + type: null + required: false + source: null + rule-type: null + default: "192.168.30.1" + request-keys: null + response-keys: null +- name: "REMOTE_ACCESS_IP_ADDR" + description: null + type: null + required: false + source: "INSTAR" + rule-type: null + default: "192.168.30.1" + request-keys: null + response-keys: null +- name: "REMOTE_CORE_ALT_IP_ADDR" + description: null + type: null + required: false + source: null + rule-type: null + default: "fd00:f4d5:ea06:1:0:110:136:254" + request-keys: null + response-keys: null +- name: "REMOTE_BILLING_IP_ADDR" + description: null + type: null + required: false + source: "INSTAR" + rule-type: null + default: "192.168.30.1" + request-keys: null + response-keys: null +- name: "CORE_NETWORK_PLEN" + description: null + type: null + required: false + source: null + rule-type: null + default: "32" + request-keys: null + response-keys: null diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/request-param.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/request-param.json new file mode 100644 index 000000000..68f9c9fe4 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/request-param.json @@ -0,0 +1,21 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ "LOCAL_ACCESS_IP_ADDR": "192.168.30.1", "LOCAL_BILLING_IP_ADDR": "192.168.30.1","REMOTE_CORE_ALT_IP_ADDR": "fd00:f4d5:ea06:1:0:110:136:254","REMOTE_BILLING_IP_ADDR": "192.168.30.1","CORE_NETWORK_PLEN": "32"} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_data.json b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_data.json new file mode 100644 index 000000000..c1e17a17a --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_data.json @@ -0,0 +1,27 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP : APP-C + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +{ + "node0_hostname" : "appc-host", + "node0_backup_router_address": "2001:1890:1253::192:168:100:1", + "node0_tacplus_server_name1": "servername1", + "node0_tacplus_server_name2": "servername2" + +} diff --git a/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_template.xml b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_template.xml new file mode 100644 index 000000000..8d8c89cb8 --- /dev/null +++ b/appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/tcfile/vdbe_template.xml @@ -0,0 +1,45 @@ + + + + 15.1X49-D50.3 + + node0 + + $node0_hostname + +
$node0_backup_router_address
+ 0.0.0.0/0 +
+ + $node0_tacplus_server_name1 + $node0_tacplus_server_source_address1 + + + + $node0_tacplus_server_name2 + $node0_tacplus_server_source_address1 + + +
+
+ +
-- cgit 1.2.3-korg