summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/resources/interfaceDefinition/interfaceDefinition-legacy.yaml
blob: b94b5ab11bb186a4c3534cfe23118bf7f03c23b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
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
create:
  implementation:
    primary:
      type: tosca.artifacts.asd.deploymentItem
      file: camunda/serviceSelect
      artifact_version: '1'
      properties:
        artifact_type: typeA
start:
  implementation: "camunda/executeAction"
  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
  milestones:
    on_failure:
      activities:
        - type: delegate
          workflow: workflow1
        - type: delegate
          workflow: workflow2
    on_success:
      activities:
        - type: delegate
          workflow: workflow1
        - type: delegate
          workflow: workflow2
          inputs:
            string:
              type: string
              value: testString
            complex:
              type: tosca.datatypes.nfv.VirtualCpu
              value:
                virtual_cpu_oversubscription_policy: pol
                cpu_architecture: cpu
                virtual_cpu_clock: 27Hz
                vdu_cpu_requirements:
                  'k1': 'v1'
                  'k2': 'v2'
                virtual_cpu_pinning:
                  virtual_cpu_pinning_policy: pol
                  virtual_cpu_pinning_rule:
                    - 1
                    - 2
      filters:
        - my_attribute:
            equal:
              get_attribute:
                - SELF
                - role
        - my_attribute1:
            greaterThan: my_other_value
        - my_attribute2:
            inRange:
              - test1
              - test99
        - my_attribute3:
            validValues:
              - test1
              - test2
              - test3
        - my_attribute4:
            length: 12
        - my_attribute5:
            minLength: 4
    on_timeout:
      activities:
        - type: delegate
          workflow: workflow1
        - type: delegate
          workflow: workflow2
stop:
  implementation: "camunda/executeAction"
  inputs:
    action:
      type: org.openecomp.resource.datatypes.Action
delete:
  implementation: "camunda/serviceDeselect"