diff options
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration')
4 files changed, 254 insertions, 0 deletions
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 |