From cf4b15ab00249af6f4d05afd75d16bec689f3241 Mon Sep 17 00:00:00 2001 From: Skip Wonnell Date: Tue, 15 Aug 2017 21:18:04 -0500 Subject: Initial add of appc-directed-graph bundles Directed Graph library Additional JIRA Issues: APPC-66, APPC-71, APPC-74 Issue-ID: APPC-65 Change-Id: I1bd643f7675dec19e562e99db65bafa0dcda6ef4 Signed-off-by: Skip Wonnell --- .../ISBCTemplateSuccess.properties | 122 +++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/ISBCTemplateSuccess.properties (limited to 'appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/CommonConfiguration/ISBCTemplateSuccess.properties') 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] } -- cgit 1.2.3-korg