From: waynedunican Date: Tue, 15 Jun 2021 11:40:46 +0000 (+0100) Subject: Create test jar for CL examples X-Git-Tag: 6.1.2~91 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F121985%2F4;p=policy%2Fclamp.git Create test jar for CL examples Files under /main/resources/ have moved to /test/resources/ Issue-ID: POLICY-3242 Change-Id: I96fa71e1af2c026bfb08db889de8608fe8acbd18 Signed-off-by: waynedunican --- diff --git a/common/pom.xml b/common/pom.xml index d962fc74a..78789a2e7 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -33,4 +33,22 @@ policy-clamp-common ${project.artifactId} Common utilities and code for the TOSCA Control Loop system + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.2.0 + + + + test-jar + + + + + + 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 index e90ded1c6..000000000 --- a/common/src/main/resources/examples/controlloop/PMSH/consul_url.txt +++ /dev/null @@ -1 +0,0 @@ -http://consul:31321/v1/kv/dcae-pmsh:policy \ No newline at end of file diff --git a/common/src/main/resources/examples/controlloop/KubernetesHelm.yaml b/common/src/test/resources/examples/controlloop/KubernetesHelm.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/KubernetesHelm.yaml rename to common/src/test/resources/examples/controlloop/KubernetesHelm.yaml diff --git a/common/src/main/resources/examples/controlloop/PMSH/consul_call_body.json b/common/src/test/resources/examples/controlloop/PMSH/consul_call_body.json similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSH/consul_call_body.json rename to common/src/test/resources/examples/controlloop/PMSH/consul_call_body.json 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 index 000000000..2a2e77e86 --- /dev/null +++ b/common/src/test/resources/examples/controlloop/PMSH/consul_url.txt @@ -0,0 +1 @@ +http://consul:31321/v1/kv/dcae-pmsh:policy diff --git a/common/src/main/resources/examples/controlloop/PMSH/pmsh_cloudify_blueprint.yaml b/common/src/test/resources/examples/controlloop/PMSH/pmsh_cloudify_blueprint.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSH/pmsh_cloudify_blueprint.yaml rename to common/src/test/resources/examples/controlloop/PMSH/pmsh_cloudify_blueprint.yaml diff --git a/common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.json b/common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.json similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.json rename to common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.json diff --git a/common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.yaml b/common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.yaml rename to common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy.yaml diff --git a/common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy_type.yaml b/common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy_type.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSH/pmsh_monitoring_policy_type.yaml rename to common/src/test/resources/examples/controlloop/PMSH/pmsh_monitoring_policy_type.yaml diff --git a/common/src/main/resources/examples/controlloop/PMSH/pmsh_operational_policy.json b/common/src/test/resources/examples/controlloop/PMSH/pmsh_operational_policy.json similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSH/pmsh_operational_policy.json rename to common/src/test/resources/examples/controlloop/PMSH/pmsh_operational_policy.json diff --git a/common/src/main/resources/examples/controlloop/PMSH/pmsh_operational_policy.yaml b/common/src/test/resources/examples/controlloop/PMSH/pmsh_operational_policy.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSH/pmsh_operational_policy.yaml rename to common/src/test/resources/examples/controlloop/PMSH/pmsh_operational_policy.yaml diff --git a/common/src/main/resources/examples/controlloop/PMSubscriptionHandling.yaml b/common/src/test/resources/examples/controlloop/PMSubscriptionHandling.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSubscriptionHandling.yaml rename to common/src/test/resources/examples/controlloop/PMSubscriptionHandling.yaml diff --git a/common/src/main/resources/examples/controlloop/PMSubscriptionHandling_GuilinFormat.yaml b/common/src/test/resources/examples/controlloop/PMSubscriptionHandling_GuilinFormat.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/PMSubscriptionHandling_GuilinFormat.yaml rename to common/src/test/resources/examples/controlloop/PMSubscriptionHandling_GuilinFormat.yaml diff --git a/common/src/main/resources/examples/controlloop/original/cloop_DCAE_VES_TCA_substitution.yaml b/common/src/test/resources/examples/controlloop/original/cloop_DCAE_VES_TCA_substitution.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/original/cloop_DCAE_VES_TCA_substitution.yaml rename to common/src/test/resources/examples/controlloop/original/cloop_DCAE_VES_TCA_substitution.yaml diff --git a/common/src/main/resources/examples/controlloop/original/cloop_base_types.yaml b/common/src/test/resources/examples/controlloop/original/cloop_base_types.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/original/cloop_base_types.yaml rename to common/src/test/resources/examples/controlloop/original/cloop_base_types.yaml diff --git a/common/src/main/resources/examples/controlloop/original/cloop_dcae_example.yaml b/common/src/test/resources/examples/controlloop/original/cloop_dcae_example.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/original/cloop_dcae_example.yaml rename to common/src/test/resources/examples/controlloop/original/cloop_dcae_example.yaml diff --git a/common/src/main/resources/examples/controlloop/original/cloop_dcae_types.yaml b/common/src/test/resources/examples/controlloop/original/cloop_dcae_types.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/original/cloop_dcae_types.yaml rename to common/src/test/resources/examples/controlloop/original/cloop_dcae_types.yaml diff --git a/common/src/main/resources/examples/controlloop/original/cloop_other_types.yaml b/common/src/test/resources/examples/controlloop/original/cloop_other_types.yaml similarity index 100% rename from common/src/main/resources/examples/controlloop/original/cloop_other_types.yaml rename to common/src/test/resources/examples/controlloop/original/cloop_other_types.yaml diff --git a/participant/participant-impl/pom.xml b/participant/participant-impl/pom.xml index ecc16e633..3d099e747 100644 --- a/participant/participant-impl/pom.xml +++ b/participant/participant-impl/pom.xml @@ -78,5 +78,13 @@ policy-clamp-participant-intermediary ${project.version} + + org.onap.policy.clamp + policy-clamp-common + tests + test-jar + ${project.version} + test +