CCSDK-1603:Changes in 'Config via netconf' BP to pull data from AAI
[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             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: configuration_over_restconf
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             pnf-ipv4-address: &pnfAddress 13.13.13.13
50             ipaddress-v6-oam: 1::13
51     expectedResponse:
52       commonHeader: *commonHeader
53       actionIdentifiers: *deploy-ai
54       payload:
55         config-deploy-response: {}
56       status:
57         code: 200
58         errorMessage: null
59         eventType: EVENT_COMPONENT_EXECUTED
60         message: success
61
62 external-services:
63   - selector: sdnc
64     expectations:
65       - request:
66           method: PUT
67           path: &configUri [ restconf/config, &nodeIdentifier [network-topology:network-topology/topology/topology-netconf/node, *pnfId]]
68           headers:
69             Content-Type: application/json
70           body:
71             node:
72               - node-id: *pnfId
73                 netconf-node-topology:protocol: { name: TLS }
74                 netconf-node-topology:host: *pnfAddress
75                 netconf-node-topology:key-based:
76                   username: netconf
77                   key-id: ODL_private_key_0
78                 netconf-node-topology:port: 6513
79                 netconf-node-topology:tcp-only: false
80                 netconf-node-topology:max-connection-attempts: 5
81         response:
82           status: 201
83       - request:
84           method: GET
85           path: [ restconf/operational, *nodeIdentifier]
86         response:
87           body:
88             node: [ { netconf-node-topology:connection-status: connected }]
89       - request:
90           method: GET
91           path: [*configUri, &configletResourcePath yang-ext:mount/mynetconf:netconflist]
92         response:
93           body: {}
94       - request:
95           method: PATCH
96           path: [*configUri, *configletResourcePath]
97           headers:
98             Content-Type: application/yang.patch+json
99           body:
100             ietf-restconf:yang-patch:
101               patch-id: patch-1
102               edit:
103                 - edit-id: edit1
104                   operation: merge
105                   target: /
106                   value: { netconflist: { netconf: [ { netconf-id: "10", netconf-param: "1000" }]}}
107                 - edit-id: edit2
108                   operation: merge
109                   target: /
110                   value: { netconflist: { netconf: [ { netconf-id: "20", netconf-param: "2000" }]}}
111                 - edit-id: edit3
112                   operation: merge
113                   target: /
114                   value: { netconflist: { netconf: [ { netconf-id: "30", netconf-param: "3000" }]}}
115       - request:
116           method: DELETE
117           path: *configUri