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 --- .../GetVfModuleInfo_Failure.properties | 44 ++++++++++++++++++++++ .../GetVfModuleInfo_Success.properties | 43 +++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Failure.properties create mode 100644 appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo/GetVfModuleInfo_Success.properties (limited to 'appc-directed-graph/appc-dgraph/provider/src/test/resources/properties/APPC/GetVfModuleInfo') 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 + + -- cgit 1.2.3-korg