diff options
author | Prudence Au <prudence.au@amdocs.com> | 2018-08-13 17:06:59 -0400 |
---|---|---|
committer | Pierre Rioux <pierre.rioux@amdocs.com> | 2018-08-21 11:21:26 -0400 |
commit | c604f64b971491f8c9b953adce54b847d7946e26 (patch) | |
tree | 134f7fc91b4da9e04c564c92337d44df420c8df0 /src/test/resources/model-validation/model-reader | |
parent | 3baa3ebd0000b15f1c54c736f4a307731b16b923 (diff) |
Initial submission for validation service
Change-Id: I9372430f1ae347373d5a9a0c7a427d7bd393d61e
Issue-ID: LOG-427
Signed-off-by: Prudence Au (prudence.au@amdocs.com)
Signed-off-by: Geora Barsky <georab@amdocs.com>
Signed-off-by: Pierre Rioux <pierre.rioux@amdocs.com>
Diffstat (limited to 'src/test/resources/model-validation/model-reader')
21 files changed, 2166 insertions, 0 deletions
diff --git a/src/test/resources/model-validation/model-reader/aai-environment.properties b/src/test/resources/model-validation/model-reader/aai-environment.properties new file mode 100644 index 0000000..3450105 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/aai-environment.properties @@ -0,0 +1,30 @@ +# ============LICENSE_START=================================================== +# Copyright (c) 2018 Amdocs +# ============================================================================ +# 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===================================================== + +httpProtocol=file +baseModelURI=src/test/resources/model-validation/model-reader/all-models.xml + +# the following fields are autowired but will never be used +host= +port= +trustStorePath= +keyStorePath= +keyStorePassword.x= +keyManagerFactoryAlgorithm= +keyStoreType= +securityProtocol= +connectionTimeout= +readTimeout= diff --git a/src/test/resources/model-validation/model-reader/all-models.xml b/src/test/resources/model-validation/model-reader/all-models.xml new file mode 100644 index 0000000..afc5dda --- /dev/null +++ b/src/test/resources/model-validation/model-reader/all-models.xml @@ -0,0 +1,1370 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +============LICENSE_START=================================================== +Copyright (c) 2018 Amdocs +============================================================================ +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===================================================== +--> +<models xmlns="http://org.onap.aai.inventory/v7"> + <model> + <model-name-version-id>22382f81-70cb-470d-8ab2-3e1b9fad10df</model-name-version-id> + <model-type>widget</model-type> + <model-name>generic-vnf</model-name> + <model-id>6dcdbbc8-23b6-42c3-ac9f-2c0a3fe8cfba</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698747</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/43095b8a-8e9c-4a76-8490-6120140f6804/model-elements/model-element/41e6d6e5-aa69-4d33-b9f2-975bf418d1e3/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>43095b8a-8e9c-4a76-8490-6120140f6804</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>41e6d6e5-aa69-4d33-b9f2-975bf418d1e3</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/0d23052d-8ffe-433e-a25d-da5da027bb7c/model-elements/model-element/17e48d38-e055-4158-ae6b-a170e8a647cd/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>0d23052d-8ffe-433e-a25d-da5da027bb7c</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>17e48d38-e055-4158-ae6b-a170e8a647cd</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/be890aae-cf27-4b6a-aeae-e6fa4b5ee17f/named-query-elements/named-query-element/1ac142fb-2caf-4f59-975e-8ad7631c301e/named-query-elements/named-query-element/311f1cad-b41c-4833-8b9f-0d54d85f9009/named-query-elements/named-query-element/dc38d8ae-0993-4426-af79-a7aff4a4b4f3/named-query-elements/named-query-element/a97e8ab3-addd-40ee-9d29-3de505a56374/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>be890aae-cf27-4b6a-aeae-e6fa4b5ee17f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>1ac142fb-2caf-4f59-975e-8ad7631c301e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>311f1cad-b41c-4833-8b9f-0d54d85f9009</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc38d8ae-0993-4426-af79-a7aff4a4b4f3</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>a97e8ab3-addd-40ee-9d29-3de505a56374</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/55f38763-9820-4fce-82a1-e0fa3c38ed24/named-query-elements/named-query-element/dc799ed9-45a5-4323-a2dc-bd1ec3242499/named-query-elements/named-query-element/97ae5271-9ad9-4815-804d-89af014d5b07/named-query-elements/named-query-element/7d189446-54de-49db-b786-8e946f0aece5/named-query-elements/named-query-element/920399b7-21c1-4e81-8fb9-a3b2283a72ba/named-query-elements/named-query-element/759ef1e4-3eca-4d55-8a9c-a8be31179f47/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>55f38763-9820-4fce-82a1-e0fa3c38ed24</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc799ed9-45a5-4323-a2dc-bd1ec3242499</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>97ae5271-9ad9-4815-804d-89af014d5b07</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>7d189446-54de-49db-b786-8e946f0aece5</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>920399b7-21c1-4e81-8fb9-a3b2283a72ba</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>759ef1e4-3eca-4d55-8a9c-a8be31179f47</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>connector-widget-id</model-name-version-id> + <model-type>widget</model-type> + <model-name>connector</model-name> + <model-id>connector-model-id</model-id> + <model-version>v2.0</model-version> + <resource-version>1466689944</resource-version> + </model> + <model> + <model-name-version-id>43095b8a-8e9c-4a76-8490-6120140f6804</model-name-version-id> + <model-type>resource</model-type> + <model-name>vSbg</model-name> + <model-id>b23fb31b-4c21-45f7-9d92-96ed70e63df1</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>41e6d6e5-aa69-4d33-b9f2-975bf418d1e3</model-element-uuid> + <new-data-del-flag>F</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698619</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/22382f81-70cb-470d-8ab2-3e1b9fad10df/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>22382f81-70cb-470d-8ab2-3e1b9fad10df</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>generic-vnf</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/682ae094-0aaa-4381-a55d-bc633c40e4c0/model-elements/model-element/9ce59457-81b7-4f0e-8b72-a044a1be4bdf/model-elements/model-element/6cf69470-ccbf-4034-a37f-f714c135f05c/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>682ae094-0aaa-4381-a55d-bc633c40e4c0</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>9ce59457-81b7-4f0e-8b72-a044a1be4bdf</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>6cf69470-ccbf-4034-a37f-f714c135f05c</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161/model-elements/model-element/c44dbdf9-494e-49c1-b462-74e24e837b22/model-elements/model-element/059db56c-6d72-4023-9fc3-0db29534ddff/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>c44dbdf9-494e-49c1-b462-74e24e837b22</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>059db56c-6d72-4023-9fc3-0db29534ddff</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>523f0645-8182-4c91-9d6a-2f968e923937</model-name-version-id> + <model-type>widget</model-type> + <model-name>pserver</model-name> + <model-id>c277c968-7e2b-4a88-9094-2b8a55dfb9f4</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698757</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/5ed1c299-4d31-4531-ae43-4bb56f8f10c8/model-elements/model-element/76624fe1-0f28-4e17-ae9f-f0e2bba6d13d/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>5ed1c299-4d31-4531-ae43-4bb56f8f10c8</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>76624fe1-0f28-4e17-ae9f-f0e2bba6d13d</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/6614ffae-6e64-4c78-9dea-4d5c0f057ea2/model-elements/model-element/0204aad0-fe13-4f75-b022-f91f245f0e9e/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>6614ffae-6e64-4c78-9dea-4d5c0f057ea2</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>0204aad0-fe13-4f75-b022-f91f245f0e9e</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/55f38763-9820-4fce-82a1-e0fa3c38ed24/named-query-elements/named-query-element/dc799ed9-45a5-4323-a2dc-bd1ec3242499/named-query-elements/named-query-element/97ae5271-9ad9-4815-804d-89af014d5b07/named-query-elements/named-query-element/7d189446-54de-49db-b786-8e946f0aece5/named-query-elements/named-query-element/920399b7-21c1-4e81-8fb9-a3b2283a72ba/named-query-elements/named-query-element/a79552d6-20dc-4b9e-b4d4-f29a8a2a8447/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>55f38763-9820-4fce-82a1-e0fa3c38ed24</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc799ed9-45a5-4323-a2dc-bd1ec3242499</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>97ae5271-9ad9-4815-804d-89af014d5b07</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>7d189446-54de-49db-b786-8e946f0aece5</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>920399b7-21c1-4e81-8fb9-a3b2283a72ba</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>a79552d6-20dc-4b9e-b4d4-f29a8a2a8447</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/be890aae-cf27-4b6a-aeae-e6fa4b5ee17f/named-query-elements/named-query-element/1ac142fb-2caf-4f59-975e-8ad7631c301e/named-query-elements/named-query-element/311f1cad-b41c-4833-8b9f-0d54d85f9009/named-query-elements/named-query-element/dc38d8ae-0993-4426-af79-a7aff4a4b4f3/named-query-elements/named-query-element/41294247-9f7e-4abf-becd-3bbca6945c09/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>be890aae-cf27-4b6a-aeae-e6fa4b5ee17f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>1ac142fb-2caf-4f59-975e-8ad7631c301e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>311f1cad-b41c-4833-8b9f-0d54d85f9009</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc38d8ae-0993-4426-af79-a7aff4a4b4f3</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>41294247-9f7e-4abf-becd-3bbca6945c09</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>99469866-95bb-400e-8786-f83e87696725</model-name-version-id> + <model-type>widget</model-type> + <model-name>virtual-data-center</model-name> + <model-id>3c70c43f-99ed-4476-82f4-92a30616e512</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698727</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/668464da-6d41-4599-bdbb-2576147b440e/model-elements/model-element/93a37846-b497-490e-bc97-7d130022d6db/model-elements/model-element/200de3d5-c207-47c2-a507-8846ba1d7068/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>668464da-6d41-4599-bdbb-2576147b440e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>93a37846-b497-490e-bc97-7d130022d6db</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>200de3d5-c207-47c2-a507-8846ba1d7068</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/be890aae-cf27-4b6a-aeae-e6fa4b5ee17f/named-query-elements/named-query-element/1ac142fb-2caf-4f59-975e-8ad7631c301e/named-query-elements/named-query-element/311f1cad-b41c-4833-8b9f-0d54d85f9009/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>be890aae-cf27-4b6a-aeae-e6fa4b5ee17f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>1ac142fb-2caf-4f59-975e-8ad7631c301e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>311f1cad-b41c-4833-8b9f-0d54d85f9009</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/55f38763-9820-4fce-82a1-e0fa3c38ed24/named-query-elements/named-query-element/dc799ed9-45a5-4323-a2dc-bd1ec3242499/named-query-elements/named-query-element/97ae5271-9ad9-4815-804d-89af014d5b07/named-query-elements/named-query-element/7d189446-54de-49db-b786-8e946f0aece5/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>55f38763-9820-4fce-82a1-e0fa3c38ed24</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc799ed9-45a5-4323-a2dc-bd1ec3242499</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>97ae5271-9ad9-4815-804d-89af014d5b07</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>7d189446-54de-49db-b786-8e946f0aece5</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>5ed1c299-4d31-4531-ae43-4bb56f8f10c8</model-name-version-id> + <model-type>resource</model-type> + <model-name>ipe</model-name> + <model-id>e8f973a5-418a-44f2-9784-159e3e37d708</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>76624fe1-0f28-4e17-ae9f-f0e2bba6d13d</model-element-uuid> + <new-data-del-flag>F</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <model-elements> + <model-element> + <model-element-uuid>b7b48ba6-427b-4d23-ada7-a67ac9e0f84f</model-element-uuid> + <new-data-del-flag>F</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <model-elements> + <model-element> + <model-element-uuid>ebc25508-b2e3-4021-b684-269cfd2b63c0</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <model-elements> + <model-element> + <model-element-uuid>f610d699-11af-4c13-a918-a89344e4a1bd</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/49032ff1-5466-4054-b64b-15395ac10c00/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>49032ff1-5466-4054-b64b-15395ac10c00</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>vlan</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/0a706320-b8e7-4b18-9485-fba156ea00cf/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>0a706320-b8e7-4b18-9485-fba156ea00cf</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>l-interface</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/3d9f4b1d-360c-4862-9623-703b150157ce/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>3d9f4b1d-360c-4862-9623-703b150157ce</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>p-interface</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/523f0645-8182-4c91-9d6a-2f968e923937/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>523f0645-8182-4c91-9d6a-2f968e923937</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>pserver</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/682ae094-0aaa-4381-a55d-bc633c40e4c0/model-elements/model-element/9ce59457-81b7-4f0e-8b72-a044a1be4bdf/model-elements/model-element/304ddca5-47cd-49ec-a2d7-1ce17baa5b70/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>682ae094-0aaa-4381-a55d-bc633c40e4c0</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>9ce59457-81b7-4f0e-8b72-a044a1be4bdf</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>304ddca5-47cd-49ec-a2d7-1ce17baa5b70</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161/model-elements/model-element/c44dbdf9-494e-49c1-b462-74e24e837b22/model-elements/model-element/193ec825-44ce-4416-85ac-20a6b6663575/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>c44dbdf9-494e-49c1-b462-74e24e837b22</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>193ec825-44ce-4416-85ac-20a6b6663575</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>668464da-6d41-4599-bdbb-2576147b440e</model-name-version-id> + <model-type>resource</model-type> + <model-name>WAN Connector v0.1</model-name> + <model-id>dc700a83-c507-47d9-b775-1fdfcdd5f9eb</model-id> + <model-version>0.1</model-version> + <model-description>Connects a customer vpn to the border elements of a vendor product</model-description> + <resource-version>1466698623</resource-version> + <model-elements> + <model-element> + <model-element-uuid>93a37846-b497-490e-bc97-7d130022d6db</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>200de3d5-c207-47c2-a507-8846ba1d7068</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>7ccfe6b5-6566-4b44-83d3-b79f5de7a87b</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698622</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>VL ELAN</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + <model-element> + <model-element-uuid>dfd30146-74f4-49e9-bad6-019d413352ac</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698622</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/682ae094-0aaa-4381-a55d-bc633c40e4c0/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>682ae094-0aaa-4381-a55d-bc633c40e4c0</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>vLAN on a Physical Wire</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/99469866-95bb-400e-8786-f83e87696725/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>99469866-95bb-400e-8786-f83e87696725</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>virtual-data-center</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/15f47352-28b7-4bbd-9828-393eaf79eeff/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>15f47352-28b7-4bbd-9828-393eaf79eeff</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>connector</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <metadata> + <metadatum> + <metaname>product</metaname> + <metaval>product-value-1</metaval> + <resource-version>1466698623</resource-version> + </metadatum> + <metadatum> + <metaname>vpn-id</metaname> + <metaval>vpn-id-value-1</metaval> + <resource-version>1466698623</resource-version> + </metadatum> + </metadata> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/460c6de2-a92b-4e3b-9ba3-538ce782b2fa/model-elements/model-element/71b825be-febf-45f7-b86a-ca0e3de19c90/model-elements/model-element/986167cb-57d3-4aad-8896-784a22c5289c/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>460c6de2-a92b-4e3b-9ba3-538ce782b2fa</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>71b825be-febf-45f7-b86a-ca0e3de19c90</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>986167cb-57d3-4aad-8896-784a22c5289c</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>460c6de2-a92b-4e3b-9ba3-538ce782b2fa</model-name-version-id> + <model-type>service</model-type> + <model-name>WAN Bonding v0.1</model-name> + <model-id>0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1</model-id> + <model-version>0.1</model-version> + <model-description>service-instance of the wan object</model-description> + <resource-version>1466698623</resource-version> + <model-elements> + <model-element> + <model-element-uuid>71b825be-febf-45f7-b86a-ca0e3de19c90</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698623</resource-version> + <model-elements> + <model-element> + <model-element-uuid>986167cb-57d3-4aad-8896-784a22c5289c</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698623</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/668464da-6d41-4599-bdbb-2576147b440e/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>668464da-6d41-4599-bdbb-2576147b440e</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>WAN Connector v0.1</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/46b92144-923a-4d20-b85a-3cbd847668a9/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>46b92144-923a-4d20-b85a-3cbd847668a9</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>service-instance</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <metadata> + <metadatum> + <metaname>b</metaname> + <metaval>product</metaval> + <resource-version>1466698623</resource-version> + </metadatum> + <metadatum> + <metaname>a</metaname> + <metaval>vpn-id</metaval> + <resource-version>1466698623</resource-version> + </metadatum> + </metadata> + </model> + <model> + <model-name-version-id>generic-vnf-widget-id</model-name-version-id> + <model-type>widget</model-type> + <model-name>generic-vnf</model-name> + <model-id>generic-vnf-model-id</model-id> + <model-version>v1.0</model-version> + <resource-version>1466624623</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/vMME-resource-id/model-elements/model-element/af4b6df2-65d0-4d10-b25e-02206799e1fa/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>vMME-resource-id</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>af4b6df2-65d0-4d10-b25e-02206799e1fa</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>6614ffae-6e64-4c78-9dea-4d5c0f057ea2</model-name-version-id> + <model-type>resource</model-type> + <model-name>pBgf</model-name> + <model-id>9038f1d7-61f2-49ef-a61d-ace468d4ab32</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>0204aad0-fe13-4f75-b022-f91f245f0e9e</model-element-uuid> + <new-data-del-flag>F</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698620</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/523f0645-8182-4c91-9d6a-2f968e923937/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>523f0645-8182-4c91-9d6a-2f968e923937</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>pserver</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161/model-elements/model-element/c44dbdf9-494e-49c1-b462-74e24e837b22/model-elements/model-element/ad161a89-ef32-4b2c-b86d-7fbb7a251571/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>c44dbdf9-494e-49c1-b462-74e24e837b22</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>ad161a89-ef32-4b2c-b86d-7fbb7a251571</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/682ae094-0aaa-4381-a55d-bc633c40e4c0/model-elements/model-element/9ce59457-81b7-4f0e-8b72-a044a1be4bdf/model-elements/model-element/d0d50aad-bb97-4865-a3bb-72dbf41be50b/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>682ae094-0aaa-4381-a55d-bc633c40e4c0</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>9ce59457-81b7-4f0e-8b72-a044a1be4bdf</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>d0d50aad-bb97-4865-a3bb-72dbf41be50b</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>15f47352-28b7-4bbd-9828-393eaf79eeff</model-name-version-id> + <model-type>widget</model-type> + <model-name>connector</model-name> + <model-id>4f0dbd2d-b667-4d19-a563-84a764e62fa7</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698717</resource-version> + <relationship-list> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/55f38763-9820-4fce-82a1-e0fa3c38ed24/named-query-elements/named-query-element/dc799ed9-45a5-4323-a2dc-bd1ec3242499/named-query-elements/named-query-element/97ae5271-9ad9-4815-804d-89af014d5b07/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>55f38763-9820-4fce-82a1-e0fa3c38ed24</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc799ed9-45a5-4323-a2dc-bd1ec3242499</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>97ae5271-9ad9-4815-804d-89af014d5b07</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/668464da-6d41-4599-bdbb-2576147b440e/model-elements/model-element/93a37846-b497-490e-bc97-7d130022d6db/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>668464da-6d41-4599-bdbb-2576147b440e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>93a37846-b497-490e-bc97-7d130022d6db</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/be890aae-cf27-4b6a-aeae-e6fa4b5ee17f/named-query-elements/named-query-element/1ac142fb-2caf-4f59-975e-8ad7631c301e/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>be890aae-cf27-4b6a-aeae-e6fa4b5ee17f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>1ac142fb-2caf-4f59-975e-8ad7631c301e</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>682ae094-0aaa-4381-a55d-bc633c40e4c0</model-name-version-id> + <model-type>resource</model-type> + <model-name>vLAN on a Physical Wire</model-name> + <model-id>32bee148-2cae-4f3d-a42e-22c9e4f078a2</model-id> + <model-version>1</model-version> + <model-description>An l2-bridge used by a wan connector connects an ipe to a BGF </model-description> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>9ce59457-81b7-4f0e-8b72-a044a1be4bdf</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>d0d50aad-bb97-4865-a3bb-72dbf41be50b</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698622</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/6614ffae-6e64-4c78-9dea-4d5c0f057ea2/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>6614ffae-6e64-4c78-9dea-4d5c0f057ea2</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>pBgf</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/fa01ef50-bbb5-49d4-91d1-ebbda9816e01/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>fa01ef50-bbb5-49d4-91d1-ebbda9816e01</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>logical-link</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/668464da-6d41-4599-bdbb-2576147b440e/model-elements/model-element/93a37846-b497-490e-bc97-7d130022d6db/model-elements/model-element/200de3d5-c207-47c2-a507-8846ba1d7068/model-elements/model-element/dfd30146-74f4-49e9-bad6-019d413352ac/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>668464da-6d41-4599-bdbb-2576147b440e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>93a37846-b497-490e-bc97-7d130022d6db</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>200de3d5-c207-47c2-a507-8846ba1d7068</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>dfd30146-74f4-49e9-bad6-019d413352ac</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>46b92144-923a-4d20-b85a-3cbd847668a9</model-name-version-id> + <model-type>widget</model-type> + <model-name>service-instance</model-name> + <model-id>82194af1-3c2c-485a-8f44-420e22a9eaa4</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698646</resource-version> + <relationship-list> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/55f38763-9820-4fce-82a1-e0fa3c38ed24/named-query-elements/named-query-element/dc799ed9-45a5-4323-a2dc-bd1ec3242499/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>55f38763-9820-4fce-82a1-e0fa3c38ed24</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc799ed9-45a5-4323-a2dc-bd1ec3242499</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/460c6de2-a92b-4e3b-9ba3-538ce782b2fa/model-elements/model-element/71b825be-febf-45f7-b86a-ca0e3de19c90/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>460c6de2-a92b-4e3b-9ba3-538ce782b2fa</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>71b825be-febf-45f7-b86a-ca0e3de19c90</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>3d9f4b1d-360c-4862-9623-703b150157ce</model-name-version-id> + <model-type>widget</model-type> + <model-name>p-interface</model-name> + <model-id>479f5f13-51d9-4ccb-bddf-f554f1af0cfc</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/5ed1c299-4d31-4531-ae43-4bb56f8f10c8/model-elements/model-element/76624fe1-0f28-4e17-ae9f-f0e2bba6d13d/model-elements/model-element/b7b48ba6-427b-4d23-ada7-a67ac9e0f84f/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>5ed1c299-4d31-4531-ae43-4bb56f8f10c8</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>76624fe1-0f28-4e17-ae9f-f0e2bba6d13d</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>b7b48ba6-427b-4d23-ada7-a67ac9e0f84f</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>0d23052d-8ffe-433e-a25d-da5da027bb7c</model-name-version-id> + <model-type>resource</model-type> + <model-name>vDbe</model-name> + <model-id>fe8aac07-ce6c-4f9f-aa0d-b561c77da9e8</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>17e48d38-e055-4158-ae6b-a170e8a647cd</model-element-uuid> + <new-data-del-flag>F</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698618</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/22382f81-70cb-470d-8ab2-3e1b9fad10df/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>22382f81-70cb-470d-8ab2-3e1b9fad10df</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>generic-vnf</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/682ae094-0aaa-4381-a55d-bc633c40e4c0/model-elements/model-element/9ce59457-81b7-4f0e-8b72-a044a1be4bdf/model-elements/model-element/1d73a0dc-e7f6-4b6d-9450-5dda720d1a7f/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>682ae094-0aaa-4381-a55d-bc633c40e4c0</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>9ce59457-81b7-4f0e-8b72-a044a1be4bdf</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>1d73a0dc-e7f6-4b6d-9450-5dda720d1a7f</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161/model-elements/model-element/c44dbdf9-494e-49c1-b462-74e24e837b22/model-elements/model-element/a1b205ea-17bb-442b-83a3-38b4e0fcb099/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>c44dbdf9-494e-49c1-b462-74e24e837b22</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>a1b205ea-17bb-442b-83a3-38b4e0fcb099</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>vMME-resource-id</model-name-version-id> + <model-type>resource</model-type> + <model-name>vMME</model-name> + <model-id>vMME-model-id</model-id> + <model-version>v1.0</model-version> + <resource-version>1466624623</resource-version> + <model-elements> + <model-element> + <model-element-uuid>af4b6df2-65d0-4d10-b25e-02206799e1fa</model-element-uuid> + <new-data-del-flag>true</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466624623</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/generic-vnf-widget-id/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>generic-vnf-widget-id</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>generic-vnf</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + </model> + <model> + <model-name-version-id>fa01ef50-bbb5-49d4-91d1-ebbda9816e01</model-name-version-id> + <model-type>widget</model-type> + <model-name>logical-link</model-name> + <model-id>8742d5b3-ee98-4165-8bd5-fc012a7885b9</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698737</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161/model-elements/model-element/c44dbdf9-494e-49c1-b462-74e24e837b22/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>c44dbdf9-494e-49c1-b462-74e24e837b22</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/682ae094-0aaa-4381-a55d-bc633c40e4c0/model-elements/model-element/9ce59457-81b7-4f0e-8b72-a044a1be4bdf/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>682ae094-0aaa-4381-a55d-bc633c40e4c0</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>9ce59457-81b7-4f0e-8b72-a044a1be4bdf</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/55f38763-9820-4fce-82a1-e0fa3c38ed24/named-query-elements/named-query-element/dc799ed9-45a5-4323-a2dc-bd1ec3242499/named-query-elements/named-query-element/97ae5271-9ad9-4815-804d-89af014d5b07/named-query-elements/named-query-element/7d189446-54de-49db-b786-8e946f0aece5/named-query-elements/named-query-element/920399b7-21c1-4e81-8fb9-a3b2283a72ba/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>55f38763-9820-4fce-82a1-e0fa3c38ed24</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc799ed9-45a5-4323-a2dc-bd1ec3242499</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>97ae5271-9ad9-4815-804d-89af014d5b07</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>7d189446-54de-49db-b786-8e946f0aece5</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>920399b7-21c1-4e81-8fb9-a3b2283a72ba</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/be890aae-cf27-4b6a-aeae-e6fa4b5ee17f/named-query-elements/named-query-element/1ac142fb-2caf-4f59-975e-8ad7631c301e/named-query-elements/named-query-element/311f1cad-b41c-4833-8b9f-0d54d85f9009/named-query-elements/named-query-element/dc38d8ae-0993-4426-af79-a7aff4a4b4f3/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>be890aae-cf27-4b6a-aeae-e6fa4b5ee17f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>1ac142fb-2caf-4f59-975e-8ad7631c301e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>311f1cad-b41c-4833-8b9f-0d54d85f9009</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc38d8ae-0993-4426-af79-a7aff4a4b4f3</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>0a706320-b8e7-4b18-9485-fba156ea00cf</model-name-version-id> + <model-type>widget</model-type> + <model-name>l-interface</model-name> + <model-id>d9131b0d-698f-4297-8699-af0a3ac7ebdc</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698767</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/5ed1c299-4d31-4531-ae43-4bb56f8f10c8/model-elements/model-element/76624fe1-0f28-4e17-ae9f-f0e2bba6d13d/model-elements/model-element/b7b48ba6-427b-4d23-ada7-a67ac9e0f84f/model-elements/model-element/ebc25508-b2e3-4021-b684-269cfd2b63c0/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>5ed1c299-4d31-4531-ae43-4bb56f8f10c8</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>76624fe1-0f28-4e17-ae9f-f0e2bba6d13d</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>b7b48ba6-427b-4d23-ada7-a67ac9e0f84f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>ebc25508-b2e3-4021-b684-269cfd2b63c0</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/be890aae-cf27-4b6a-aeae-e6fa4b5ee17f/named-query-elements/named-query-element/1ac142fb-2caf-4f59-975e-8ad7631c301e/named-query-elements/named-query-element/311f1cad-b41c-4833-8b9f-0d54d85f9009/named-query-elements/named-query-element/dc38d8ae-0993-4426-af79-a7aff4a4b4f3/named-query-elements/named-query-element/29ac58b9-37fa-4d6a-9d2e-29f33e1e3b7a/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>be890aae-cf27-4b6a-aeae-e6fa4b5ee17f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>1ac142fb-2caf-4f59-975e-8ad7631c301e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>311f1cad-b41c-4833-8b9f-0d54d85f9009</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc38d8ae-0993-4426-af79-a7aff4a4b4f3</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>29ac58b9-37fa-4d6a-9d2e-29f33e1e3b7a</relationship-value> + </relationship-data> + </relationship> + <relationship> + <related-to>named-query-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/named-queries/named-query/55f38763-9820-4fce-82a1-e0fa3c38ed24/named-query-elements/named-query-element/dc799ed9-45a5-4323-a2dc-bd1ec3242499/named-query-elements/named-query-element/97ae5271-9ad9-4815-804d-89af014d5b07/named-query-elements/named-query-element/7d189446-54de-49db-b786-8e946f0aece5/named-query-elements/named-query-element/920399b7-21c1-4e81-8fb9-a3b2283a72ba/named-query-elements/named-query-element/eda1554f-3eff-4195-9185-bcbc4f75826f/</related-link> + <relationship-data> + <relationship-key>named-query.named-query-uuid</relationship-key> + <relationship-value>55f38763-9820-4fce-82a1-e0fa3c38ed24</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>dc799ed9-45a5-4323-a2dc-bd1ec3242499</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>97ae5271-9ad9-4815-804d-89af014d5b07</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>7d189446-54de-49db-b786-8e946f0aece5</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>920399b7-21c1-4e81-8fb9-a3b2283a72ba</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>named-query-element.named-query-element-uuid</relationship-key> + <relationship-value>eda1554f-3eff-4195-9185-bcbc4f75826f</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>49032ff1-5466-4054-b64b-15395ac10c00</model-name-version-id> + <model-type>widget</model-type> + <model-name>vlan</model-name> + <model-id>2febb0bc-b776-45b3-af50-75a578a8a4c4</model-id> + <model-version>v1.0</model-version> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/5ed1c299-4d31-4531-ae43-4bb56f8f10c8/model-elements/model-element/76624fe1-0f28-4e17-ae9f-f0e2bba6d13d/model-elements/model-element/b7b48ba6-427b-4d23-ada7-a67ac9e0f84f/model-elements/model-element/ebc25508-b2e3-4021-b684-269cfd2b63c0/model-elements/model-element/f610d699-11af-4c13-a918-a89344e4a1bd/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>5ed1c299-4d31-4531-ae43-4bb56f8f10c8</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>76624fe1-0f28-4e17-ae9f-f0e2bba6d13d</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>b7b48ba6-427b-4d23-ada7-a67ac9e0f84f</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>ebc25508-b2e3-4021-b684-269cfd2b63c0</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>f610d699-11af-4c13-a918-a89344e4a1bd</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> + <model> + <model-name-version-id>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</model-name-version-id> + <model-type>resource</model-type> + <model-name>VL ELAN</model-name> + <model-id>932518e5-4260-4cc4-8038-df604a367f85</model-id> + <model-version>1</model-version> + <model-description>An l2-bridge used by a wan connector connects an ipe to a SBG or DBE</model-description> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>c44dbdf9-494e-49c1-b462-74e24e837b22</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <model-elements> + <model-element> + <model-element-uuid>a1b205ea-17bb-442b-83a3-38b4e0fcb099</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/0d23052d-8ffe-433e-a25d-da5da027bb7c/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>0d23052d-8ffe-433e-a25d-da5da027bb7c</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>vDbe</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/fa01ef50-bbb5-49d4-91d1-ebbda9816e01/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>fa01ef50-bbb5-49d4-91d1-ebbda9816e01</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>logical-link</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/668464da-6d41-4599-bdbb-2576147b440e/model-elements/model-element/93a37846-b497-490e-bc97-7d130022d6db/model-elements/model-element/200de3d5-c207-47c2-a507-8846ba1d7068/model-elements/model-element/7ccfe6b5-6566-4b44-83d3-b79f5de7a87b/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>668464da-6d41-4599-bdbb-2576147b440e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>93a37846-b497-490e-bc97-7d130022d6db</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>200de3d5-c207-47c2-a507-8846ba1d7068</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>7ccfe6b5-6566-4b44-83d3-b79f5de7a87b</relationship-value> + </relationship-data> + </relationship> + </relationship-list> + </model> +</models>
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/connector-widget-id-no-children-1.xml b/src/test/resources/model-validation/model-reader/connector-widget-id-no-children-1.xml new file mode 100644 index 0000000..e60416c --- /dev/null +++ b/src/test/resources/model-validation/model-reader/connector-widget-id-no-children-1.xml @@ -0,0 +1,51 @@ +<!-- +============LICENSE_START=================================================== +Copyright (c) 2018 Amdocs +============================================================================ +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===================================================== +--> +<model> + <model-name-version-id>connector-widget-id</model-name-version-id> + <model-type>widget</model-type> + <model-name>connector</model-name> + <model-id>connector-model-id</model-id> + <model-version>v1.0</model-version> + <resource-version>1466417894</resource-version> + <metadata> + <metadatum> + <metaname>vpn-id</metaname> + <metaval>a</metaval> + <resource-version>1466417844</resource-version> + </metadatum> + <metadatum> + <metaname>product</metaname> + <metaval>b</metaval> + <resource-version>1466417844</resource-version> + </metadatum> + </metadata> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/model-elements/model-element/54629607-160a-4dcf-8c5c-15b8a3756f9a/</related-link> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>54629607-160a-4dcf-8c5c-15b8a3756f9a</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>wan-connector-service-id</relationship-value> + </relationship-data> + </relationship> + </relationship-list> +</model>
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/connector-widget-id-no-children-2.xml b/src/test/resources/model-validation/model-reader/connector-widget-id-no-children-2.xml new file mode 100644 index 0000000..924ce67 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/connector-widget-id-no-children-2.xml @@ -0,0 +1,79 @@ +<!-- +============LICENSE_START=================================================== +Copyright (c) 2018 Amdocs +============================================================================ +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===================================================== +--> +<model> + <model-name-version-id>connector-widget-id</model-name-version-id> + <model-type>widget</model-type> + <model-name>connector</model-name> + <model-id>connector-model-id</model-id> + <model-version>v1.0</model-version> + <resource-version>1466417894</resource-version> + <model-elements> + <model-element> + <model-element-uuid>8c0fd413-0d2b-491b-ad14-10c434c359bb</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466417894</resource-version> + <model-constraints/> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/models/model/virtual-data-center-widget-id/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>virtual-data-center-widget-id</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>virtual-data-center</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <metadata> + <metadatum> + <metaname>vpn-id</metaname> + <metaval>a</metaval> + <resource-version>1466417844</resource-version> + </metadatum> + <metadatum> + <metaname>product</metaname> + <metaval>b</metaval> + <resource-version>1466417844</resource-version> + </metadatum> + </metadata> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/model-elements/model-element/54629607-160a-4dcf-8c5c-15b8a3756f9a/</related-link> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>54629607-160a-4dcf-8c5c-15b8a3756f9a</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>wan-connector-service-id</relationship-value> + </relationship-data> + </relationship> + </relationship-list> +</model>
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/connector-widget-id.xml b/src/test/resources/model-validation/model-reader/connector-widget-id.xml new file mode 100644 index 0000000..bd2edfc --- /dev/null +++ b/src/test/resources/model-validation/model-reader/connector-widget-id.xml @@ -0,0 +1,107 @@ +<!-- +============LICENSE_START=================================================== +Copyright (c) 2018 Amdocs +============================================================================ +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===================================================== +--> +<model> + <model-name-version-id>connector-widget-id</model-name-version-id> + <model-type>widget</model-type> + <model-name>connector</model-name> + <model-id>connector-model-id</model-id> + <model-version>v1.0</model-version> + <resource-version>1466417894</resource-version> + <model-elements> + <model-element> + <model-element-uuid>8c0fd413-0d2b-491b-ad14-10c434c359bb</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466417894</resource-version> + <model-elements> + <model-element> + <model-element-uuid>6d2dbb11-d509-4e03-8ed9-05bf4aad99d2</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466417894</resource-version> + <model-constraints/> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/models/model/l2-bridge-for-wan-connector-resource-id/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>l2-bridge-for-wan-connector</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <model-constraints/> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/models/model/virtual-data-center-widget-id/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>virtual-data-center-widget-id</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>virtual-data-center</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <metadata> + <metadatum> + <metaname>vpn-id</metaname> + <metaval>a</metaval> + <resource-version>1466417844</resource-version> + </metadatum> + <metadatum> + <metaname>product</metaname> + <metaval>b</metaval> + <resource-version>1466417844</resource-version> + </metadatum> + </metadata> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/model-elements/model-element/54629607-160a-4dcf-8c5c-15b8a3756f9a/</related-link> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>54629607-160a-4dcf-8c5c-15b8a3756f9a</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>wan-connector-service-id</relationship-value> + </relationship-data> + </relationship> + </relationship-list> +</model>
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/logical-link-widget-id.xml b/src/test/resources/model-validation/model-reader/logical-link-widget-id.xml new file mode 100644 index 0000000..39c08a3 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/logical-link-widget-id.xml @@ -0,0 +1,181 @@ +<!-- +============LICENSE_START=================================================== +Copyright (c) 2018 Amdocs +============================================================================ +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===================================================== +--> +<model> + <model-name-version-id>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</model-name-version-id> + <model-type>resource</model-type> + <model-name>VL ELAN</model-name> + <model-id>932518e5-4260-4cc4-8038-df604a367f85</model-id> + <model-version>1</model-version> + <model-description>An l2-bridge used by a wan connector connects an ipe to a SBG or DBE</model-description> + <resource-version>1466698622</resource-version> + <model-elements> + <model-element> + <model-element-uuid>c44dbdf9-494e-49c1-b462-74e24e837b22</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <model-elements> + <model-element> + <model-element-uuid>ad161a89-ef32-4b2c-b86d-7fbb7a251571</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/6614ffae-6e64-4c78-9dea-4d5c0f057ea2/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>6614ffae-6e64-4c78-9dea-4d5c0f057ea2</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>pBgf</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + <model-element> + <model-element-uuid>a1b205ea-17bb-442b-83a3-38b4e0fcb099</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/0d23052d-8ffe-433e-a25d-da5da027bb7c/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>0d23052d-8ffe-433e-a25d-da5da027bb7c</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>vDbe</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + <model-element> + <model-element-uuid>193ec825-44ce-4416-85ac-20a6b6663575</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points> + <linkage-point>pserver|lag-interface|l-interface</linkage-point> + <linkage-point>pserver|p-interface|l-interface</linkage-point> + <linkage-point>vlan|l-interface</linkage-point> + </linkage-points> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/5ed1c299-4d31-4531-ae43-4bb56f8f10c8/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>5ed1c299-4d31-4531-ae43-4bb56f8f10c8</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>ipe</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + <model-element> + <model-element-uuid>059db56c-6d72-4023-9fc3-0db29534ddff</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466698621</resource-version> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/43095b8a-8e9c-4a76-8490-6120140f6804/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>43095b8a-8e9c-4a76-8490-6120140f6804</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>vSbg</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/fa01ef50-bbb5-49d4-91d1-ebbda9816e01/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>fa01ef50-bbb5-49d4-91d1-ebbda9816e01</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>logical-link</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>widget</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.test.onap.org:8443/aai/v7/service-design-and-creation/models/model/668464da-6d41-4599-bdbb-2576147b440e/model-elements/model-element/93a37846-b497-490e-bc97-7d130022d6db/model-elements/model-element/200de3d5-c207-47c2-a507-8846ba1d7068/model-elements/model-element/7ccfe6b5-6566-4b44-83d3-b79f5de7a87b/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>668464da-6d41-4599-bdbb-2576147b440e</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>93a37846-b497-490e-bc97-7d130022d6db</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>200de3d5-c207-47c2-a507-8846ba1d7068</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>7ccfe6b5-6566-4b44-83d3-b79f5de7a87b</relationship-value> + </relationship-data> + </relationship> + </relationship-list> +</model>
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-attributes-1.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-attributes-1.json new file mode 100644 index 0000000..916f898 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-attributes-1.json @@ -0,0 +1,11 @@ +[ + { + "mappingType": "ATTRIBUTE", + "model": { + "value": "metadata/metadatum/metaname" + }, + "instance": { + "value": "$..metadata.metadatum[*].metaname" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-attributes-2.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-attributes-2.json new file mode 100644 index 0000000..7bd8829 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-attributes-2.json @@ -0,0 +1,11 @@ +[ + { + "mappingType": "ATTRIBUTE", + "model": { + "value": "unkown" + }, + "instance": { + "value": "$..metadata.metadatum[*].metaname" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-1.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-1.json new file mode 100644 index 0000000..4d550f0 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-1.json @@ -0,0 +1,18 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-type']", + "valid": ["INVALID_TYPE"] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-2.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-2.json new file mode 100644 index 0000000..2c9799e --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-2.json @@ -0,0 +1,18 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-type']", + "valid": [] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-3.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-3.json new file mode 100644 index 0000000..6442d7b --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-3.json @@ -0,0 +1,17 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-type']" + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-4.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-4.json new file mode 100644 index 0000000..4f50042 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-4.json @@ -0,0 +1,18 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "INVALID_PATH", + "valid": ["widget"] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-5.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-5.json new file mode 100644 index 0000000..8085cfd --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-5.json @@ -0,0 +1,17 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "valid": ["widget"] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-6.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-6.json new file mode 100644 index 0000000..67be561 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-filter-6.json @@ -0,0 +1,14 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']" + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-root-1.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-root-1.json new file mode 100644 index 0000000..de11bb2 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-root-1.json @@ -0,0 +1,18 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "INVALID_ROOT", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-type']", + "valid": ["widget"] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-root-2.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-root-2.json new file mode 100644 index 0000000..7bc88ae --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-root-2.json @@ -0,0 +1,17 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-type']", + "valid": ["widget"] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-with-id.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-with-id.json new file mode 100644 index 0000000..2c9799e --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships-with-id.json @@ -0,0 +1,18 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-type']", + "valid": [] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships.json b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships.json new file mode 100644 index 0000000..89bcae9 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/model-instance-mapping-relationships.json @@ -0,0 +1,18 @@ +[ + { + "mappingType": "RELATIONSHIP", + "model": { + "root": "model-elements/model-element", + "id": "relationship-list/relationship/relationship-data/relationship-value[../relationship-key/text()='model.model-name-version-id']", + "value": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-name']", + "filter": { + "path": "relationship-list/relationship/related-to-property/property-value[../property-key/text()='model.model-type']", + "valid": ["widget"] + } + }, + "instance": { + "origin": "$.inventory-response-item[0]", + "root": "$.inventory-response-items.inventory-response-item[*]" + } + } +]
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/test-validation-service-beans.xml b/src/test/resources/model-validation/model-reader/test-validation-service-beans.xml new file mode 100644 index 0000000..81dab3e --- /dev/null +++ b/src/test/resources/model-validation/model-reader/test-validation-service-beans.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +============LICENSE_START=================================================== +Copyright (c) 2018 Amdocs +============================================================================ +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===================================================== +--> +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> + + <context:property-placeholder location="classpath:model-validation/model-reader/aai-environment.properties" ignore-unresolvable="true" /> + <context:property-placeholder location="classpath:model-validation/model-reader/validation-service.properties" ignore-unresolvable="true" /> + + <bean id="modelConfig" class="org.onap.aai.validation.config.ModelConfig"> + <property name="modelCacheExpirySeconds" value="${model.cache.expirySeconds}" /> + </bean> + + <bean id="restConfig" class="org.onap.aai.validation.config.RestConfig"> + <property name="host" value="${host}" /> + <property name="port" value="${port}" /> + <property name="protocol" value="${httpProtocol}" /> + <property name="baseModelURI" value="${baseModelURI}" /> + <property name="trustStorePath" value="${trustStorePath}" /> + <property name="trustStorePassword" value="${trustStorePassword.x}" /> + <property name="keyStorePath" value="${keyStorePath}" /> + <property name="keyStorePassword" value="${keyStorePassword.x}" /> + <property name="keyManagerFactoryAlgorithm" value="${keyManagerFactoryAlgorithm}" /> + <property name="keyStoreType" value="${keyStoreType}" /> + <property name="securityProtocol" value="${securityProtocol}" /> + <property name="connectionTimeout" value="${connectionTimeout}" /> + <property name="readTimeout" value="${readTimeout}" /> + </bean> + + <bean id="modelCacheManager" class="org.onap.aai.validation.modeldriven.ModelCacheManager"> + <constructor-arg ref="modelConfig" /> + <constructor-arg ref="restConfig" /> + </bean> + +</beans>
\ No newline at end of file diff --git a/src/test/resources/model-validation/model-reader/validation-service.properties b/src/test/resources/model-validation/model-reader/validation-service.properties new file mode 100644 index 0000000..4e1b264 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/validation-service.properties @@ -0,0 +1,29 @@ +# ============LICENSE_START=================================================== +# Copyright (c) 2018 Amdocs +# ============================================================================ +# 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===================================================== + +topic.publish.enable=true +topic.publish.retries=3 +topic.consume.enable=true +topic.consume.polling.interval.seconds=3 + +event.domain=devINT1 +event.action.exclude=DELETE +event.type.rule=AAI-EVENT,AAI-DATA-EXPORT-API,GIZMO-EVENT +event.type.model=AAI-DATA-EXPORT-NQ +event.type.end=END-EVENT + +model.cache.expirySeconds=3 +aai.oxm.version=12 diff --git a/src/test/resources/model-validation/model-reader/virtual-data-center-widget-id.xml b/src/test/resources/model-validation/model-reader/virtual-data-center-widget-id.xml new file mode 100644 index 0000000..aadee37 --- /dev/null +++ b/src/test/resources/model-validation/model-reader/virtual-data-center-widget-id.xml @@ -0,0 +1,72 @@ +<!-- +============LICENSE_START=================================================== +Copyright (c) 2018 Amdocs +============================================================================ +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===================================================== +--> +<model> + <model-name-version-id>virtual-data-center-widget-id</model-name-version-id> + <model-type>widget</model-type> + <model-name>virtual-data-center</model-name> + <model-id>vdc-model-id</model-id> + <model-version>v1.0</model-version> + <resource-version>1466417894</resource-version> + <model-elements> + <model-element> + <model-element-uuid>6d2dbb11-d509-4e03-8ed9-05bf4aad99d2</model-element-uuid> + <new-data-del-flag>T</new-data-del-flag> + <cardinality>unbounded</cardinality> + <linkage-points/> + <resource-version>1466417894</resource-version> + <model-constraints/> + <relationship-list> + <relationship> + <related-to>model</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/models/model/l2-bridge-for-wan-connector-resource-id/</related-link> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>e2ccd5c5-bc6e-4ed0-8378-6805ee6ba161</relationship-value> + </relationship-data> + <related-to-property> + <property-key>model.model-name</property-key> + <property-value>l2-bridge-for-wan-connector</property-value> + </related-to-property> + <related-to-property> + <property-key>model.model-type</property-key> + <property-value>resource</property-value> + </related-to-property> + </relationship> + </relationship-list> + </model-element> + </model-elements> + <metadata/> + <relationship-list> + <relationship> + <related-to>model-element</related-to> + <related-link>https://dummy-host.onap.org:8443/aai/v7/service-design-and-creation/model-elements/model-element/8c0fd413-0d2b-491b-ad14-10c434c359bb/</related-link> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>8c0fd413-0d2b-491b-ad14-10c434c359bb</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model-element.model-element-uuid</relationship-key> + <relationship-value>54629607-160a-4dcf-8c5c-15b8a3756f9a</relationship-value> + </relationship-data> + <relationship-data> + <relationship-key>model.model-name-version-id</relationship-key> + <relationship-value>wan-connector-service-id</relationship-value> + </relationship-data> + </relationship> + </relationship-list> +</model>
\ No newline at end of file |