diff options
author | 2017-08-15 21:18:04 -0500 | |
---|---|---|
committer | 2017-08-18 05:46:40 +0000 | |
commit | cf4b15ab00249af6f4d05afd75d16bec689f3241 (patch) | |
tree | 14468fef53aecf04700eab421acca88fc8e853d4 /appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC | |
parent | ab6c2c0cd441cf40723016e9a82aeeeb933fec7e (diff) |
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 <kw5258@att.com>
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC')
59 files changed, 2448 insertions, 0 deletions
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.<Context Variable Name>= 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 +#---------------------------- +#<get-resource +# plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' +# resource='SQL' +# key="SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;" +# force='true' +# pfx='download-config-template'> + +# To define the SQL execution Status <Prefix>.outCome= SUCCESS | FAILURE | NOT_FOUND +download-config-template.outCome=SUCCESS +# To assert SQL execution node context param <Prefix>.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX +download-config-template.assertEquals.vnf-type = vUSP - Metaswitch vSBC +# To Populate the SQL executionoutput <Prefix>.<Context Variable Name>= 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 +#---------------------------- +#<configure adaptor='org.openecomp.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'> +#<parameter name="Download_config_template" value="`$download-config-template.TEMPLATE`"/> +#<parameter name="Config_contents" value="`$device-config`"/> +#<parameter name="Host_ip_address" value="`$host-ip-address`" /> +#<parameter name="User_name" value="`$device-login`" /> +#<parameter name="Password" value="`$device-password`" /> +#<parameter name="Port_number" value="`$port-number`" /> + +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.outCome=success +# To assert execution/configure node context param <Plugin Name>.<Key / Method Name>.params.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.params.assertEquals.Port_number=22 +# To assert execution/configure node context param <Plugin Name>.<Key / Method Name>.<assertEquals | assertNull | assertNull >.<Context Variable Name>= XXXXX +org.openecomp.appc.ccadaptor.ConfigComponentAdaptor.DownloadCliConfig.assertEquals.vnf-type = vUSP - Metaswitch vSBC + +# To assert DG Context after execution +# <assertEquals | assertNull | assertNull >.<Context Variable Name>= 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 <Plugin Name>.<Key / Method Name>.params.<assertEquals | assertNull | assertNull >.<Context Variable Name>= 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 <Plugin Name>.<Key / Method Name>.params.<assertEquals | assertNull | assertNull >.<Context Variable Name>= 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 + + |