aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/resources
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2022-03-16 12:26:32 +0000
committerMichael Morris <michael.morris@est.tech>2022-03-21 12:28:43 +0000
commitfe5660d653c8f2fa39e5946d2c9e30aac6acdb19 (patch)
treec4ee5fd2df464251a9beb7a8be9719f748de6e9f /catalog-be/src/test/resources
parentc32663621faf571ce855a1dc84ec4fd013718359 (diff)
Fix default value for interface operation input
Fixes default value in interface operation input definitions. The value is now correctly JSON stringfied. Fixes required value that was always being set to false. Fixes UI reporting that false values are empty. Change-Id: I6ce8eba03d659a091e49180f1d2cc057f4a805f2 Issue-ID: SDC-3920 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-be/src/test/resources')
-rw-r--r--catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml25
-rw-r--r--catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-tosca1.3.yaml25
2 files changed, 50 insertions, 0 deletions
diff --git a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml
index d12664be9d..2c4c1ec967 100644
--- a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml
+++ b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml
@@ -15,6 +15,31 @@ start:
inputs:
action:
type: org.openecomp.resource.datatypes.Action
+ stringInput:
+ type: string
+ default: this is a string
+ booleanInput:
+ type: boolean
+ default: true
+ integerInput:
+ type: integer
+ description: an integer
+ status: supported
+ required: true
+ default: 11
+ floatInput:
+ type: float
+ required: false
+ default: 11.1
+ complexInput:
+ type: onap.datatypes.partner.access_details
+ status: experimental
+ default:
+ dsl_stability_profile: dsl_stability_profile_value
+ central_splitter: false
+ service_restoration_sla: service_restoration_sla_value
+ battery_backup: true
+ partner_priorty_assist: false
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 13dfb9a1fb..164280ddda 100644
--- a/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-tosca1.3.yaml
+++ b/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-tosca1.3.yaml
@@ -16,6 +16,31 @@ operations:
inputs:
action:
type: org.openecomp.resource.datatypes.Action
+ stringInput:
+ type: string
+ default: this is a string
+ booleanInput:
+ type: boolean
+ default: true
+ integerInput:
+ type: integer
+ description: an integer
+ status: supported
+ required: true
+ default: 11
+ floatInput:
+ type: float
+ required: false
+ default: 11.1
+ complexInput:
+ type: onap.datatypes.partner.access_details
+ status: experimental
+ default:
+ dsl_stability_profile: dsl_stability_profile_value
+ central_splitter: false
+ service_restoration_sla: service_restoration_sla_value
+ battery_backup: true
+ partner_priorty_assist: false
stop:
implementation: "camunda/executeAction"
inputs: