From 97e19c931535a5b474d4942a9982f0b7a1cf7414 Mon Sep 17 00:00:00 2001 From: jhh Date: Sun, 22 Mar 2020 19:37:21 -0500 Subject: Fix op policies distribution to controllers Fix a bug when distributing a policy to the right controller plus additional junits to catch similar issues. Issue-ID: POLICY-2356 Signed-off-by: jhh Change-Id: I25fefa64ad54c55e6516ae18c6895b6de9407419 Signed-off-by: jhh --- .../tosca-policy-native-artifact-foo.json | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 feature-lifecycle/src/test/resources/tosca-policy-native-artifact-foo.json (limited to 'feature-lifecycle/src/test/resources/tosca-policy-native-artifact-foo.json') diff --git a/feature-lifecycle/src/test/resources/tosca-policy-native-artifact-foo.json b/feature-lifecycle/src/test/resources/tosca-policy-native-artifact-foo.json new file mode 100644 index 00000000..afdc0a83 --- /dev/null +++ b/feature-lifecycle/src/test/resources/tosca-policy-native-artifact-foo.json @@ -0,0 +1,28 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "topology_template": { + "policies": [ + { + "foo.artifact": { + "type": "onap.policies.native.drools.Artifact", + "type_version": "1.0.0", + "version": "1.0.0", + "name": "foo.artifact", + "metadata": { + "policy-id": "foo.artifact" + }, + "properties": { + "rulesArtifact": { + "groupId": "org.onap.policy.drools.test", + "artifactId": "lifecycle", + "version": "1.0.0" + }, + "controller": { + "name": "foo" + } + } + } + } + ] + } +} \ No newline at end of file -- cgit 1.2.3-korg