Implement support for v10 model entities.
[aai/model-loader.git] / src / test / resources / models / invalid-model.xml
diff --git a/src/test/resources/models/invalid-model.xml b/src/test/resources/models/invalid-model.xml
new file mode 100644 (file)
index 0000000..906cd21
--- /dev/null
@@ -0,0 +1,51 @@
+<!--\r
+  ============LICENSE_START=======================================================
+  MODEL LOADER SERVICE
+  ================================================================================
+  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+  ================================================================================
+  Licensed under the Apache License, Version 2.0 (the "License");\r
+  you may not use this file except in compliance with the License.\r
+  You may obtain a copy of the License at\r
+  \r
+       http://www.apache.org/licenses/LICENSE-2.0\r
+  \r
+  Unless required by applicable law or agreed to in writing, software\r
+  distributed under the License is distributed on an "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+  See the License for the specific language governing permissions and\r
+  limitations under the License.
+  ============LICENSE_END=========================================================\r
+  -->\r
+\r
+<model xmlns="http://org.openecomp.aai.inventory/v9">\r
+    <model-invariant-id>5c12984d-db0f-4300-a0e0-9791775cc40f</model-invariant-id>\r
+    <model-type>resource</model-type>\r
+    <model-vers>\r
+        <model-ver>\r
+            <model-version-id>88bdbadf-db8a-490f-881e-c8effcbc3f66</model-version-id>\r
+            <model-name>VL</model-name>\r
+            <model-version>1</model-version>\r
+            <model-description> Virtual link (VL) describes the basic topology of the connectivity as well as other required parameters (e.g. bandwidth and QoS class). </model-description>\r
+            <model-elements>\r
+                <model-element>\r
+                    <new-data-del-flag>F</new-data-del-flag>\r
+                    <cardinality>unbounded</cardinality>\r
+                    <model-elements/>\r
+                    <relationship-list>\r
+                        <relationship>\r
+                            <related-to>model-ver</related-to>\r
+                            <relationship-data>\r
+                                <relationship-key>model-ver.model-version-id</relationship-key>\r
+                                <relationship-value>9111f20f-e680-4001-b83f-19a2fc23bfc1</relationship-value>\r
+                            </relationship-data>\r
+                            <relationship-data>\r
+                                <relationship-key>model.model-invariant-id</relationship-key>\r
+                                <relationship-value>3d560d81-57d0-438b-a2a1-5334dba0651a</relationship-value>\r
+                            </relationship-data>\r
+                        </relationship>\r
+                    </relationship-list>\r
+                </model-element>\r
+            </model-elements>\r
+        </model-ver>\r
+    </model-vers>\r