Create test jar for CL examples 85/121985/4
authorwaynedunican <wayne.dunican@est.tech>
Tue, 15 Jun 2021 11:40:46 +0000 (12:40 +0100)
committerWayne Dunican <wayne.dunican@est.tech>
Tue, 22 Jun 2021 18:46:51 +0000 (19:46 +0100)
Files under /main/resources/ have moved to /test/resources/

Issue-ID: POLICY-3242
Change-Id: I96fa71e1af2c026bfb08db889de8608fe8acbd18
Signed-off-by: waynedunican <wayne.dunican@est.tech>
19 files changed:
common/pom.xml
common/src/main/resources/examples/controlloop/PMSH/consul_url.txt [deleted file]
common/src/test/resources/examples/controlloop/KubernetesHelm.yaml [moved from common/src/main/resources/examples/controlloop/KubernetesHelm.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/PMSH/consul_call_body.json [moved from common/src/main/resources/examples/controlloop/PMSH/consul_call_body.json with 100% similarity]
common/src/test/resources/examples/controlloop/PMSH/consul_url.txt [new file with mode: 0644]
common/src/test/resources/examples/controlloop/PMSH/pmsh_cloudify_blueprint.yaml [moved from common/src/main/resources/examples/controlloop/PMSH/pmsh_cloudify_blueprint.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.json [moved from common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.json with 100% similarity]
common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.yaml [moved from common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy_type.yaml [moved from common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy_type.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/PMSH/pmsh_operational_policy.json [moved from common/src/main/resources/examples/controlloop/PMSH/pmsh_operational_policy.json with 100% similarity]
common/src/test/resources/examples/controlloop/PMSH/pmsh_operational_policy.yaml [moved from common/src/main/resources/examples/controlloop/PMSH/pmsh_operational_policy.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/PMSubscriptionHandling.yaml [moved from common/src/main/resources/examples/controlloop/PMSubscriptionHandling.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/PMSubscriptionHandling_GuilinFormat.yaml [moved from common/src/main/resources/examples/controlloop/PMSubscriptionHandling_GuilinFormat.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/original/cloop_DCAE_VES_TCA_substitution.yaml [moved from common/src/main/resources/examples/controlloop/original/cloop_DCAE_VES_TCA_substitution.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/original/cloop_base_types.yaml [moved from common/src/main/resources/examples/controlloop/original/cloop_base_types.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/original/cloop_dcae_example.yaml [moved from common/src/main/resources/examples/controlloop/original/cloop_dcae_example.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/original/cloop_dcae_types.yaml [moved from common/src/main/resources/examples/controlloop/original/cloop_dcae_types.yaml with 100% similarity]
common/src/test/resources/examples/controlloop/original/cloop_other_types.yaml [moved from common/src/main/resources/examples/controlloop/original/cloop_other_types.yaml with 100% similarity]
participant/participant-impl/pom.xml

index d962fc7..78789a2 100644 (file)
     <artifactId>policy-clamp-common</artifactId>
     <name>${project.artifactId}</name>
     <description>Common utilities and code for the TOSCA Control Loop system</description>
+
+    <build>
+        <plugins>
+            <!-- Builds examples jar -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>3.2.0</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>test-jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>
diff --git a/common/src/main/resources/examples/controlloop/PMSH/consul_url.txt b/common/src/main/resources/examples/controlloop/PMSH/consul_url.txt
deleted file mode 100644 (file)
index e90ded1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-http://consul:31321/v1/kv/dcae-pmsh:policy
\ No newline at end of file
diff --git a/common/src/test/resources/examples/controlloop/PMSH/consul_url.txt b/common/src/test/resources/examples/controlloop/PMSH/consul_url.txt
new file mode 100644 (file)
index 0000000..2a2e77e
--- /dev/null
@@ -0,0 +1 @@
+http://consul:31321/v1/kv/dcae-pmsh:policy
index ecc16e6..3d099e7 100644 (file)
             <artifactId>policy-clamp-participant-intermediary</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.onap.policy.clamp</groupId>
+            <artifactId>policy-clamp-common</artifactId>
+            <classifier>tests</classifier>
+            <type>test-jar</type>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 </project>