From 6902c91faaa7e96ca6612a646cf459e8f1d78536 Mon Sep 17 00:00:00 2001 From: delacruzramo Date: Fri, 29 Mar 2019 12:39:35 +0100 Subject: [PATCH] Test Detection of Duplicated VLD names in VNF Descriptors Change-Id: I85934994acfc176b7c28fad62ce91543e40c5024 Signed-off-by: delacruzramo --- osm_nbi/tests/test.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/osm_nbi/tests/test.py b/osm_nbi/tests/test.py index 6bb04d9..5d6a487 100755 --- a/osm_nbi/tests/test.py +++ b/osm_nbi/tests/test.py @@ -1813,7 +1813,20 @@ class TestDescriptors: queries = ["mgmt-interface.cp=mgmt", "vdu.0.interface.0.external-connection-point-ref=mgmt", "vdu.0.interface.1.internal-connection-point-ref=internal", - "internal-vld.0.internal-connection-point.0.id-ref=internal"] + "internal-vld.0.internal-connection-point.0.id-ref=internal", + # Detection of duplicated VLD names in VNF Descriptors + # URL: internal-vld=[ + # {id: internal1, name: internal, type:ELAN, + # internal-connection-point: [{id-ref: mgmtVM-internal}, {id-ref: dataVM-internal}]}, + # {id: internal2, name: internal, type:ELAN, + # internal-connection-point: [{id-ref: mgmtVM-internal}, {id-ref: dataVM-internal}]} + # ] + "internal-vld=%5B%7Bid%3A%20internal1%2C%20name%3A%20internal%2C%20type%3A%20ELAN%2C%20" + "internal-connection-point%3A%20%5B%7Bid-ref%3A%20mgmtVM-internal%7D%2C%20%7Bid-ref%3A%20" + "dataVM-internal%7D%5D%7D%2C%20%7Bid%3A%20internal2%2C%20name%3A%20internal%2C%20type%3A%20" + "ELAN%2C%20internal-connection-point%3A%20%5B%7Bid-ref%3A%20mgmtVM-internal%7D%2C%20%7B" + "id-ref%3A%20dataVM-internal%7D%5D%7D%5D" + ] for query in queries: engine.test("Upload invalid VNFD ", "PUT", "/vnfpkgm/v1/vnf_packages/{}/package_content?{}".format(self.vnfd_id, query), -- 2.25.1