add view feature and decompress zip file
[ccsdk/cds.git] / components / model-catalog / blueprint-model / uat-blueprints / pnf_config_aai / 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: pnf_config_aai
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             service-model-uuid: service-model-uuid
22             pnf-customization-uuid: pnf-customization-uuid
23     expectedResponse:
24       commonHeader: *commonHeader
25       actionIdentifiers: *assign-ai
26       status:
27         code: 200
28         eventType: EVENT_COMPONENT_EXECUTED
29         errorMessage: null
30         message: success
31       payload:
32         config-assign-response: {}
33   - name: config-deploy
34     request:
35       commonHeader: *commonHeader
36       actionIdentifiers: &deploy-ai
37         actionName: config-deploy
38         blueprintName: pnf_config_aai
39         blueprintVersion: "1.0.0"
40         mode: sync
41       payload:
42         config-deploy-request:
43           resolution-key: *resKey
44           config-deploy-properties:
45             service-instance-id: siid_1234
46             pnf-id: *pnfId
47             service-model-uuid: service-model-uuid
48             pnf-customization-uuid: pnf-customization-uuid
49     expectedResponse:
50       commonHeader: *commonHeader
51       actionIdentifiers: *deploy-ai
52       payload:
53         config-deploy-response: {}
54       status:
55         code: 200
56         errorMessage: null
57         eventType: EVENT_COMPONENT_EXECUTED
58         message: success
59
60 external-services:
61   - selector: aai-data
62     expectations:
63       - request:
64           method: GET
65           path: [ /aai/v14/network/pnfs/pnf, *pnfId]
66           headers:
67             Accept: application/json
68         response:
69           headers:
70             Content-Type: application/json
71           body:
72             ipaddress-v4-oam: &pnfAddress 13.13.13.13
73             ipaddress-v6-oam: 1::13
74   - selector: sdnc
75     expectations:
76       - request:
77           method: PUT
78           path: &configUri [ restconf/config, &nodeIdentifier [network-topology:network-topology/topology/topology-netconf/node, *pnfId]]
79           headers:
80             Content-Type: application/json
81           body:
82             node:
83               - node-id: *pnfId
84                 netconf-node-topology:protocol: { name: TLS }
85                 netconf-node-topology:host: *pnfAddress
86                 netconf-node-topology:key-based:
87                   username: netconf
88                   key-id: ODL_private_key_0
89                 netconf-node-topology:port: 6513
90                 netconf-node-topology:tcp-only: false
91                 netconf-node-topology:max-connection-attempts: 5
92         response:
93           status: 201
94       - request:
95           method: GET
96           path: [ restconf/operational, *nodeIdentifier]
97         response:
98           body:
99             node: [ { netconf-node-topology:connection-status: connected }]
100       - request:
101           method: GET
102           path: [*configUri, &configletResourcePath yang-ext:mount/mynetconf:netconflist]
103         response:
104           body: {}
105       - request:
106           method: PATCH
107           path: [*configUri, *configletResourcePath]
108           headers:
109             Content-Type: application/yang.patch+json
110           body:
111             ietf-restconf:yang-patch:
112               patch-id: patch-1
113               edit:
114                 - edit-id: edit1
115                   operation: merge
116                   target: /
117                   value: { netconflist: { netconf: [ { netconf-id: "10", netconf-param: "1000" }]}}
118                 - edit-id: edit2
119                   operation: merge
120                   target: /
121                   value: { netconflist: { netconf: [ { netconf-id: "20", netconf-param: "2000" }]}}
122                 - edit-id: edit3
123                   operation: merge
124                   target: /
125                   value: { netconflist: { netconf: [ { netconf-id: "30", netconf-param: "3000" }]}}
126         response:
127           body:
128             ietf-yang-patch:yang-patch-status:
129               patch-id: patch-1
130               ok: [
131                 null
132               ]
133       - request:
134           method: DELETE
135           path: *configUri
136
137