[CLAMP] TOSCA Defined Control Loop PoC Initial Checkin 73/112973/2
authorajay_dp001 <ajay.deep.singh@est.tech>
Tue, 22 Sep 2020 11:18:31 +0000 (16:48 +0530)
committerajay_dp001 <ajay.deep.singh@est.tech>
Tue, 22 Sep 2020 11:33:25 +0000 (17:03 +0530)
Issue-ID: CLAMP-930
Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech>
Change-Id: Ic00c2cdf9ac23b69c6b58aadb24ccf6cf24a64c8

pom.xml
src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplate.java [new file with mode: 0644]
src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaTopologyTemplate.java [new file with mode: 0644]
src/test/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplateTest.java [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
index c1c2d77..f4ff418 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -6,6 +6,8 @@
   Copyright (C) 2017-2019 AT&T Intellectual Property. All rights
                               reserved.
   ================================================================================
+  Modifications Copyright (c) 2020 Nordix
+  ================================================================================
   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
@@ -78,6 +80,7 @@
                <eelf.core.version>1.0.0</eelf.core.version>
                <camel.version>2.25.2</camel.version>
                <springboot.version>2.2.9.RELEASE</springboot.version>
+               <policy.models.version>2.3.2-SNAPSHOT</policy.models.version>
 
                <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
                <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
                        <version>2.1.3</version>
                </dependency>
 
+               <!-- For TOSCA Controlloop  -->
+               <dependency>
+                       <groupId>org.onap.policy.models</groupId>
+                       <artifactId>policy-models-base</artifactId>
+                       <version>${policy.models.version}</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.onap.policy.models</groupId>
+                       <artifactId>policy-models-tosca</artifactId>
+                       <version>${policy.models.version}</version>
+               </dependency>
+
                <!-- TESTING -->
                <dependency>
                        <groupId>junit</groupId>
diff --git a/src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplate.java b/src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplate.java
new file mode 100644 (file)
index 0000000..2b7ecf9
--- /dev/null
@@ -0,0 +1,27 @@
+/*-
+ * ============LICENSE_START=======================================================
+ *  Copyright (C) 2020 Nordix Foundation.
+ * ================================================================================
+ * 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.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.clamp.controlloop.models.tosca.authorative.concepts;
+
+import org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate;
+
+public class ControlLoopToscaServiceTemplate extends ToscaServiceTemplate {
+  //TODO More code to be added
+}
\ No newline at end of file
diff --git a/src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaTopologyTemplate.java b/src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaTopologyTemplate.java
new file mode 100644 (file)
index 0000000..5f125fe
--- /dev/null
@@ -0,0 +1,27 @@
+/*-
+ * ============LICENSE_START=======================================================
+ *  Copyright (C) 2020 Nordix Foundation.
+ * ================================================================================
+ * 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.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.clamp.controlloop.models.tosca.authorative.concepts;
+
+import org.onap.policy.models.tosca.authorative.concepts.ToscaTopologyTemplate;
+
+public class ControlLoopToscaTopologyTemplate extends ToscaTopologyTemplate {
+  //TODO More code to be added
+}
\ No newline at end of file
diff --git a/src/test/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplateTest.java b/src/test/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplateTest.java
new file mode 100644 (file)
index 0000000..f89c786
--- /dev/null
@@ -0,0 +1,33 @@
+/*-
+ * ============LICENSE_START=======================================================
+ *  Copyright (C) 2020 Nordix Foundation.
+ * ================================================================================
+ * 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.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.clamp.controlloop.models.tosca.authorative.concepts;
+
+import org.junit.Test;
+import static org.junit.Assert.assertNotNull;
+
+public class ControlLoopToscaServiceTemplateTest {
+
+  @Test
+  public void testClassDef() {
+    ControlLoopToscaServiceTemplate serviceTemplate = new ControlLoopToscaServiceTemplate();
+    assertNotNull("ControlLoopToscaServiceTemplate is Not null", serviceTemplate);
+  }
+}
\ No newline at end of file