Merge "Add workflow graph utils."
[ccsdk/cds.git] / components / model-catalog / blueprint-model / uat-blueprints / pnf_config / Tests / uat.yaml
1 %YAML 1.1
2 ---
3 processes:
4   - name: config-assign
5     request:
6       commonHeader: &commonHeader
7         originatorId: sdnc
8         requestId: "123456-1000"
9         subRequestId: sub-123456-1000
10       actionIdentifiers: &assign-ai
11         blueprintName: configuration_over_restconf
12         blueprintVersion: "1.0.0"
13         actionName: config-assign
14         mode: sync
15       payload:
16         config-assign-request:
17           resolution-key: &resKey "RES-KEY 61"
18           config-assign-properties:
19             service-instance-id: siid_1234
20             pnf-id: &pnfId pnf-id-2019-07-12
21             pnf-ipv4-address: &pnfAddress "192.168.100.11"
22             service-model-uuid: service-model-uuid
23             pnf-customization-uuid: pnf-customization-uuid
24     expectedResponse:
25       commonHeader: *commonHeader
26       actionIdentifiers: *assign-ai
27       status:
28         code: 200
29         eventType: EVENT_COMPONENT_EXECUTED
30         errorMessage: null
31         message: success
32       payload:
33         config-assign-response: {}
34       stepData:
35         name: config-assign
36         properties:
37           resource-assignment-params:
38             config-assign: &assignPatch
39               ietf-restconf:yang-patch:
40                 patch-id: patch-1
41                 edit:
42                   - edit-id: edit1
43                     operation: merge
44                     target: /
45                     value: { netconflist: { netconf: [ { netconf-id: "10", netconf-param: "1000" }]}}
46                   - edit-id: edit2
47                     operation: merge
48                     target: /
49                     value: { netconflist: { netconf: [ { netconf-id: "20", netconf-param: "2000" }]}}
50                   - edit-id: edit3
51                     operation: merge
52                     target: /
53                     value: { netconflist: { netconf: [ { netconf-id: "30", netconf-param: "3000" }]}}
54           status: success
55     responseNormalizerSpec:
56       stepData:
57         properties:
58           resource-assignment-params:
59             config-assign: ?from-json(.stepData.properties.resource-assignment-params.config-assign)
60   - name: config-deploy
61     request:
62       commonHeader: *commonHeader
63       actionIdentifiers: &deploy-ai
64         actionName: config-deploy
65         blueprintName: configuration_over_restconf
66         blueprintVersion: "1.0.0"
67         mode: sync
68       payload:
69         config-deploy-request:
70           resolution-key: *resKey
71           config-deploy-properties:
72             service-instance-id: siid_1234
73             pnf-id: *pnfId
74             pnf-ipv4-address: *pnfAddress
75             service-model-uuid: service-model-uuid
76             pnf-customization-uuid: pnf-customization-uuid
77     expectedResponse:
78       commonHeader: *commonHeader
79       actionIdentifiers: *deploy-ai
80       payload:
81         config-deploy-response: {}
82       status:
83         code: 200
84         errorMessage: null
85         eventType: EVENT_COMPONENT_EXECUTED
86         message: success
87       stepData:
88         name: config-deploy
89         properties:
90           response-data: ""
91           status: success
92
93 external-services:
94   - selector: sdncodl
95     expectations:
96       - request:
97           method: PUT
98           path: &configUri [ restconf/config, &nodeIdentifier [network-topology:network-topology/topology/topology-netconf/node, *pnfId]]
99           content-type: application/json
100           body:
101             node:
102               - node-id: *pnfId
103                 netconf-node-topology:protocol: { name: TLS }
104                 netconf-node-topology:host: *pnfAddress
105                 netconf-node-topology:key-based:
106                   username: netconf
107                   key-id: ODL_private_key_0
108                 netconf-node-topology:port: 6513
109                 netconf-node-topology:tcp-only: false
110                 netconf-node-topology:max-connection-attempts: 5
111         response:
112           status: 201
113       - request:
114           method: GET
115           path: [ restconf/operational, *nodeIdentifier]
116         response:
117           body:
118             node: [ { netconf-node-topology:connection-status: connected }]
119       - request:
120           method: GET
121           path: [*configUri, &configletResourcePath yang-ext:mount/mynetconf:netconflist]
122         response:
123           body: {}
124       - request:
125           method: PATCH
126           path: [*configUri, *configletResourcePath]
127           content-type: application/yang.patch+json
128           body: *assignPatch
129       - request:
130           method: DELETE
131           path: *configUri