From ef768a7c864f0d807d8696449f5eed7a4552316f Mon Sep 17 00:00:00 2001 From: Steve Smokowski Date: Thu, 9 Feb 2017 15:43:35 -0500 Subject: Initial OpenECOMP A&AI Model Loader commit Change-Id: Iae343fa01ecc701919703fb7d61727555371321d Signed-off-by: Steve Smokowski --- src/test/resources/models/complete-model.xml | 500 +++++++++++++++++++++ .../resources/models/named-query-wan-connector.xml | 90 ++++ src/test/resources/models/vnf-model.json | 10 + src/test/resources/models/vnf-model.xml | 27 ++ src/test/resources/models/wan-connector-model.xml | 186 ++++++++ 5 files changed, 813 insertions(+) create mode 100644 src/test/resources/models/complete-model.xml create mode 100644 src/test/resources/models/named-query-wan-connector.xml create mode 100644 src/test/resources/models/vnf-model.json create mode 100644 src/test/resources/models/vnf-model.xml create mode 100644 src/test/resources/models/wan-connector-model.xml (limited to 'src/test/resources/models') diff --git a/src/test/resources/models/complete-model.xml b/src/test/resources/models/complete-model.xml new file mode 100644 index 0000000..f6aaf1e --- /dev/null +++ b/src/test/resources/models/complete-model.xml @@ -0,0 +1,500 @@ + + + + + 997fc7-fca1-451f-b953-9a1e6197b4d6 + + widget + vdc + 897df7ea-8938-42b0-bc57-46e913a4d93b + v1.0 + 1463175188 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/ccb3a5a4-1722-4213-8785-2b6b5527d453/ + + + model-element.model-element-uuid + + ccb3a5a4-1722-4213-8785-2b6b5527d453 + + + + model-element.model-element-uuid + + df2e4cc0-18ca-4046-9c1b-2abec86a58d6 + + + + model.model-name-version-id + 93d9d45d-7eec-4371-9083-675e4c353de3 + + + + + + + 8da97b81-e0e9-4157-a4cd-af3ba52871d6 + + resource + vDbe + 77b83c95-7707-4624-8bfe-9110b9c2dc88 + v1.0 + 1463175188 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/fc3a2260-d0ee-4c8e-b7e9-74791d7c5721/ + + + model-element.model-element-uuid + + fc3a2260-d0ee-4c8e-b7e9-74791d7c5721 + + + + element-choice-set.element-choice-set-uuid + + 646ee687-1475-419d-bd10-f3760d5430dc + + + + constrained-element-set.constrained-element-set-uuid + + 999 + + + model-element.model-element-uuid + + df2e4cc0-18ca-4046-9c1b-2abec86a58d6 + + + + model.model-name-version-id + 93d9d45d-7eec-4371-9083-675e4c353de3 + + + + + + + d09dd9da-0148-46cd-a947-591afc844d24 + + widget + connector + 63ac2806-4d47-467f-bf9d-5a8a83a13cac + v1.0 + 1463175188 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/df2e4cc0-18ca-4046-9c1b-2abec86a58d6/ + + + model-element.model-element-uuid + + df2e4cc0-18ca-4046-9c1b-2abec86a58d6 + + + + model.model-name-version-id + 93d9d45d-7eec-4371-9083-675e4c353de3 + + + + + + + 93a6166f-b3d5-4f06-b4ba-aed48d009ad9 + + widget + generic-vnf + acc6edd8-a8d4-4b93-afaa-0994068be14c + v1.0 + 1463175177 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/88a0e5fd-0254-41dc-a9d5-7a7db446f2f3/ + + + model-element.model-element-uuid + + 88a0e5fd-0254-41dc-a9d5-7a7db446f2f3 + + + + model.model-name-version-id + 8da97b81-e0e9-4157-a4cd-af3ba52871d6 + + + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/baefe75b-30f2-43d2-bd73-553f65ea1405/ + + + model-element.model-element-uuid + + baefe75b-30f2-43d2-bd73-553f65ea1405 + + + + model.model-name-version-id + a6d9de88-4046-4b78-a59e-5691243d292a + + + + + + + 759dbd4a-2473-46f3-a932-48d987c9b4a1 + + resource + ipe + 323ac9c1-b345-44a2-9d07-dd7653137705 + v1.0 + 1463175188 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/746b864c-333b-4da9-806e-c70f883f8c9d/ + + + model-element.model-element-uuid + + 746b864c-333b-4da9-806e-c70f883f8c9d + + + + element-choice-set.element-choice-set-uuid + + 1c69d7dc-ddf1-4cf3-86dd-929aa886429c + + + + constrained-element-set.constrained-element-set-uuid + + 999 + + + model-element.model-element-uuid + + df2e4cc0-18ca-4046-9c1b-2abec86a58d6 + + + + model.model-name-version-id + 93d9d45d-7eec-4371-9083-675e4c353de3 + + + + + + + 93d9d45d-7eec-4371-9083-675e4c353de3 + + service + wan-connector + e4a9901b-6c94-4e07-b8d8-b877d3df554c + v1.0 + Connects a customer vpn to the border elements of + an AT&T product + 1463175188 + + + + 35be1acf-1298-48c6-a128-66850083b8bd + + resource + pBgf + 897fb848-3b38-4d0d-a6a7-2543070fc450 + v1.0 + 1463175188 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/d985355f-a162-493b-8cb9-0b5b948bb7b0/ + + + model-element.model-element-uuid + + d985355f-a162-493b-8cb9-0b5b948bb7b0 + + + + element-choice-set.element-choice-set-uuid + + 646ee687-1475-419d-bd10-f3760d5430dc + + + + constrained-element-set.constrained-element-set-uuid + + 999 + + + model-element.model-element-uuid + + df2e4cc0-18ca-4046-9c1b-2abec86a58d6 + + + + model.model-name-version-id + 93d9d45d-7eec-4371-9083-675e4c353de3 + + + + + + + a6d9de88-4046-4b78-a59e-5691243d292a + + resource + vSbg + 326690fa-9747-4ebd-9d9f-a5ef02943e1a + v1.0 + 1463175188 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/b989a7b6-907a-431d-b54e-262d29c45b6f/ + + + model-element.model-element-uuid + + b989a7b6-907a-431d-b54e-262d29c45b6f + + + + element-choice-set.element-choice-set-uuid + + 646ee687-1475-419d-bd10-f3760d5430dc + + + + constrained-element-set.constrained-element-set-uuid + + 999 + + + model-element.model-element-uuid + + df2e4cc0-18ca-4046-9c1b-2abec86a58d6 + + + + model.model-name-version-id + 93d9d45d-7eec-4371-9083-675e4c353de3 + + + + + + + ae16244f-4d29-4801-a559-e25f2db2a4c3 + + resource + l2-bridge-for-wan-connector + 9494e925-04a0-4f52-983b-36fa8f75d97e + v1.0 + An l2-bridge used by a wan connector connects an + ipe to a product border element + 1463175188 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/061f2f1d-d76f-4b4a-810c-1f9a452a4db3/ + + + model-element.model-element-uuid + + 061f2f1d-d76f-4b4a-810c-1f9a452a4db3 + + + + model-element.model-element-uuid + + df2e4cc0-18ca-4046-9c1b-2abec86a58d6 + + + + model.model-name-version-id + 93d9d45d-7eec-4371-9083-675e4c353de3 + + + + + + + f2b24d95-c582-48d5-b2d6-c5b3a94ce812 + + widget + pserver + a033a95f-93af-4dc6-811e-f818baf13ef1 + v1.0 + 1463175178 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/5eab2693-78ec-446a-afe4-14332e348246/ + + + model-element.model-element-uuid + + 5eab2693-78ec-446a-afe4-14332e348246 + + + + model.model-name-version-id + 35be1acf-1298-48c6-a128-66850083b8bd + + + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/f7659dac-6311-45b6-b483-60b39364a85a/ + + + model-element.model-element-uuid + + f7659dac-6311-45b6-b483-60b39364a85a + + + + model.model-name-version-id + 759dbd4a-2473-46f3-a932-48d987c9b4a1 + + + + + + + 53be71b0-c689-4841-9fe6-c7fab529d310 + + widget + p-interface + 759dbd4a-2473-46f3-a932-48d987c9b4a1 + v1.0 + 1463175178 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/f118b348-1231-4895-ad26-0b227253cdf0/ + + + model-element.model-element-uuid + + f118b348-1231-4895-ad26-0b227253cdf0 + + + + model-element.model-element-uuid + + f7659dac-6311-45b6-b483-60b39364a85a + + + + model.model-name-version-id + 759dbd4a-2473-46f3-a932-48d987c9b4a1 + + + + + + + 706c7e05-8faf-4258-acca-8e4cf556961d + + widget + l-interface + 92e579cc-eb63-490f-b9eb-16b7af2660c7 + v1.0 + 1463175178 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/82f1cf8a-470b-4aaa-a1eb-27b83ba8f176/ + + + model-element.model-element-uuid + + 82f1cf8a-470b-4aaa-a1eb-27b83ba8f176 + + + + model-element.model-element-uuid + + f7659dac-6311-45b6-b483-60b39364a85a + + + + model.model-name-version-id + 759dbd4a-2473-46f3-a932-48d987c9b4a1 + + + + + + + 897df7ea-8938-42b0-bc57-46e913a4d93b + + widget + logical-link + c575bd11-6907-4b44-82d8-f55294fff63f + v1.0 + 1463175143 + + + + f749dc48-4f58-4601-9d3e-605a06a0899e + + widget + vlan + 76544264-9287-45c6-871b-6e7a456a9f32 + v1.0 + 1463175178 + + + model-element + https://localhost:8443/aai/v7/service-design-and-creation/model-elements/model-element/fd994cef-bc62-460f-bd21-cc8c07fbccc4/ + + + model-element.model-element-uuid + + fd994cef-bc62-460f-bd21-cc8c07fbccc4 + + + + model-element.model-element-uuid + + f7659dac-6311-45b6-b483-60b39364a85a + + + + model.model-name-version-id + 759dbd4a-2473-46f3-a932-48d987c9b4a1 + + + + + + diff --git a/src/test/resources/models/named-query-wan-connector.xml b/src/test/resources/models/named-query-wan-connector.xml new file mode 100644 index 0000000..d0d5a05 --- /dev/null +++ b/src/test/resources/models/named-query-wan-connector.xml @@ -0,0 +1,90 @@ + + + + 94cac189-8d88-4d63-a194-f44214e080ff + + wan-connector + v1.0 + Named Query - Wan Connector + + + + + model + + + model.model-name-version-id + d09dd9da-0148-46cd-a947-591afc844d24 + + + + + + + + + model + + + model.model-name-version-id + 997fc7-fca1-451f-b953-9a1e6197b4d6 + + + + + + + + + model + + + model.model-name-version-id + + 897df7ea-8938-42b0-bc57-46e913a4d93b + + + + + + + + + model + + + model.model-name-version-id + + f2b24d95-c582-48d5-b2d6-c5b3a94ce812 + + + + + + + + + + + + + + diff --git a/src/test/resources/models/vnf-model.json b/src/test/resources/models/vnf-model.json new file mode 100644 index 0000000..5bebe59 --- /dev/null +++ b/src/test/resources/models/vnf-model.json @@ -0,0 +1,10 @@ +{ + "model": + { + "model-name-version-id":"model-vid", + "model-type":"widget", + "model-version":"v1.0", + "model-id":"model-id", + "model-name":"generic-vnf" + } +} diff --git a/src/test/resources/models/vnf-model.xml b/src/test/resources/models/vnf-model.xml new file mode 100644 index 0000000..616f4b9 --- /dev/null +++ b/src/test/resources/models/vnf-model.xml @@ -0,0 +1,27 @@ + + + + model-id + widget + generic-vnf + v1.0 + model-vid + diff --git a/src/test/resources/models/wan-connector-model.xml b/src/test/resources/models/wan-connector-model.xml new file mode 100644 index 0000000..5e3ff10 --- /dev/null +++ b/src/test/resources/models/wan-connector-model.xml @@ -0,0 +1,186 @@ + + + + e4a9901b-6c94-4e07-b8d8-b877d3df554c + service + wan-connector + v1.0 + 93d9d45d-7eec-4371-9083-675e4c353de3 + + Connects a customer vpn to the border elements of an + AT&T product + + + a + vpn-id + + + b + product + + + + + true + unbounded + + + model + + + model.model-name-version-id + d09dd9da-0148-46cd-a947-591afc844d24 + + + + + + + true + unbounded + + + model + + + model.model-name-version-id + 997fc7-fca1-451f-b953-9a1e6197b4d6 + + + + + + + true + unbounded + + + model + + + model.model-name-version-id + + ae16244f-4d29-4801-a559-e25f2db2a4c3 + + + + + + + + logical-link + 999 + + combination + AND + + + A + 1 + + + unbounded + false + + + model + + + model.model-name-version-id + + 759dbd4a-2473-46f3-a932-48d987c9b4a1 + + + + + + l-interface|p-interface|pserver + + + + + + + B + 1 + + + unbounded + false + + + model + + + model.model-name-version-id + + 8da97b81-e0e9-4157-a4cd-af3ba52871d6 + + + + + + + unbounded + false + + + model + + + model.model-name-version-id + + a6d9de88-4046-4b78-a59e-5691243d292a + + + + + + + unbounded + false + + + model + + + model.model-name-version-id + + 35be1acf-1298-48c6-a128-66850083b8bd + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg