From 629837b3f7a282c74604987fd531ff4523f98a0c Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Tue, 18 Jul 2023 11:35:18 +0100 Subject: Backend support for operation milestones with activities Issue-ID: SDC-4577 Signed-off-by: JvD_Ericsson Change-Id: I6a8dab0e48da542424faa017a1dea384ebb2376f --- .../interfaceDefinition-legacy.yaml | 19 +++++++++++++++++++ .../interfaceDefinition-tosca1.3.yaml | 19 +++++++++++++++++++ .../interfaceDefinitionInvalidMilestone-tosca1.3.yaml | 17 +++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 catalog-be/src/test/resources/interfaceDefinition/interfaceDefinitionInvalidMilestone-tosca1.3.yaml (limited to 'catalog-be/src/test/resources') diff --git a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml index 49de865f63..8f350edd54 100644 --- a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml +++ b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml @@ -46,6 +46,25 @@ start: service_restoration_sla: service_restoration_sla_value battery_backup: true partner_priorty_assist: false + milestones: + on_failure: + activities: + - type: delegate + workflow: workflow1 + - type: delegate + workflow: workflow2 + on_success: + activities: + - type: delegate + workflow: workflow1 + - type: delegate + workflow: workflow2 + on_timeout: + activities: + - type: delegate + workflow: workflow1 + - type: delegate + workflow: workflow2 stop: implementation: "camunda/executeAction" inputs: diff --git a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-tosca1.3.yaml b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-tosca1.3.yaml index 164280ddda..8adcdcf4cf 100644 --- a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-tosca1.3.yaml +++ b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-tosca1.3.yaml @@ -41,6 +41,25 @@ operations: service_restoration_sla: service_restoration_sla_value battery_backup: true partner_priorty_assist: false + milestones: + on_failure: + activities: + - type: delegate + workflow: workflow1 + - type: delegate + workflow: workflow2 + on_success: + activities: + - type: delegate + workflow: workflow1 + - type: delegate + workflow: workflow2 + on_timeout: + activities: + - type: delegate + workflow: workflow1 + - type: delegate + workflow: workflow2 stop: implementation: "camunda/executeAction" inputs: diff --git a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinitionInvalidMilestone-tosca1.3.yaml b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinitionInvalidMilestone-tosca1.3.yaml new file mode 100644 index 0000000000..4e3c556cb8 --- /dev/null +++ b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinitionInvalidMilestone-tosca1.3.yaml @@ -0,0 +1,17 @@ +inputs: + stringInput: + type: string + description: stringInput description + required: true + default: defaultValue + status: aStatus + actionInput: + type: org.openecomp.resource.datatypes.Action +type: tosca.interfaces.node.lifecycle.Standard +operations: + start: + implementation: "camunda/executeAction" + milestones: + on_failure: + on_success: + on_timeout: \ No newline at end of file -- cgit 1.2.3-korg