Implement support for v10 model entities.
[aai/model-loader.git] / src / test / resources / models / incomplete-model.xml
similarity index 56%
rename from src/main/webapp/WEB-INF/web.xml
rename to src/test/resources/models/incomplete-model.xml
index c256b26..b30d4d7 100644 (file)
@@ -1,40 +1,37 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
+<!--\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");
-  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
+  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=========================================================
-  -->
-
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
-  <display-name>model-loader</display-name>
-  
-  <listener>
-       <listener-class>
-               org.springframework.web.context.ContextLoaderListener
-       </listener-class>
-  </listener>
-  
-  <servlet>
-    <servlet-name>rest</servlet-name>
-    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
-    <load-on-startup>1</load-on-startup>
-  </servlet>
-  <servlet-mapping>
-    <servlet-name>rest</servlet-name>
-    <url-pattern>/</url-pattern>
-  </servlet-mapping>
-</web-app>
+  ============LICENSE_END=========================================================\r
+  -->\r
+\r
+<model xmlns="http://org.openecomp.aai.inventory/v9">\r
+    <model-type>resource</model-type>\r
+    <model-vers>\r
+        <model-ver>\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
+                </model-element>\r
+            </model-elements>\r
+        </model-ver>\r
+    </model-vers>\r
+</model>\r