diff options
Diffstat (limited to 'feature-lifecycle/src/test/resources')
4 files changed, 56 insertions, 8 deletions
diff --git a/feature-lifecycle/src/test/resources/tosca-policy-native-artifact-example.json b/feature-lifecycle/src/test/resources/tosca-policy-native-artifact-example.json index f521953d..b6774124 100644 --- a/feature-lifecycle/src/test/resources/tosca-policy-native-artifact-example.json +++ b/feature-lifecycle/src/test/resources/tosca-policy-native-artifact-example.json @@ -3,13 +3,13 @@ "topology_template": { "policies": [ { - "example": { + "example.artifact": { "type": "onap.policies.native.drools.Artifact", "type_version": "1.0.0", "version": "1.0.0", - "name": "example", + "name": "example.artifact", "metadata": { - "policy-id": "example" + "policy-id": "example.artifact" }, "properties": { "rulesArtifact": { @@ -18,8 +18,7 @@ "version": "1.0.0" }, "controller": { - "name": "lifecycle", - "version": "1.0.0" + "name": "lifecycle" } } } 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 diff --git a/feature-lifecycle/src/test/resources/tosca-policy-native-controller-example.json b/feature-lifecycle/src/test/resources/tosca-policy-native-controller-example.json index 3d716845..2b98a242 100644 --- a/feature-lifecycle/src/test/resources/tosca-policy-native-controller-example.json +++ b/feature-lifecycle/src/test/resources/tosca-policy-native-controller-example.json @@ -3,13 +3,13 @@ "topology_template": { "policies": [ { - "example": { + "example.controller": { "type": "onap.policies.native.drools.Controller", "type_version": "1.0.0", "version": "1.0.0", - "name": "example", + "name": "example.controller", "metadata": { - "policy-id": "example" + "policy-id": "example.controller" }, "properties": { "controllerName": "lifecycle", diff --git a/feature-lifecycle/src/test/resources/tosca-policy-native-controller-foo.json b/feature-lifecycle/src/test/resources/tosca-policy-native-controller-foo.json new file mode 100644 index 00000000..7ee0149b --- /dev/null +++ b/feature-lifecycle/src/test/resources/tosca-policy-native-controller-foo.json @@ -0,0 +1,21 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_0_0", + "topology_template": { + "policies": [ + { + "foo.controller": { + "type": "onap.policies.native.drools.Controller", + "type_version": "1.0.0", + "version": "1.0.0", + "name": "foo.controller", + "metadata": { + "policy-id": "foo.controller" + }, + "properties": { + "controllerName": "foo" + } + } + } + ] + } +}
\ No newline at end of file |