aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajay_dp001 <ajay.deep.singh@est.tech>2020-09-22 16:48:31 +0530
committerajay_dp001 <ajay.deep.singh@est.tech>2020-09-22 17:03:25 +0530
commit848989938c1901fb32530e79a5d17c2fc0b930e0 (patch)
treef987aa5b3da774caa9bb166fbb85d9641a632f30
parentf095a271b67b3f2be3dbdcd00924cac3dd3209ec (diff)
[CLAMP] TOSCA Defined Control Loop PoC Initial Checkin
Issue-ID: CLAMP-930 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: Ic00c2cdf9ac23b69c6b58aadb24ccf6cf24a64c8
-rw-r--r--pom.xml15
-rw-r--r--src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplate.java27
-rw-r--r--src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaTopologyTemplate.java27
-rw-r--r--src/test/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplateTest.java33
4 files changed, 102 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index c1c2d773..f4ff4189 100644
--- 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>
@@ -487,6 +490,18 @@
<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
index 00000000..2b7ecf94
--- /dev/null
+++ b/src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplate.java
@@ -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
index 00000000..5f125fed
--- /dev/null
+++ b/src/main/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaTopologyTemplate.java
@@ -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
index 00000000..f89c7868
--- /dev/null
+++ b/src/test/java/org/onap/clamp/controlloop/models/tosca/authorative/concepts/ControlLoopToscaServiceTemplateTest.java
@@ -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