Merge "Formatted and fixed errors in DOC"
[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           headers:
100             Content-Type: application/json
101           body:
102             node:
103               - node-id: *pnfId
104                 netconf-node-topology:protocol: { name: TLS }
105                 netconf-node-topology:host: *pnfAddress
106                 netconf-node-topology:key-based:
107                   username: netconf
108                   key-id: ODL_private_key_0
109                 netconf-node-topology:port: 6513
110                 netconf-node-topology:tcp-only: false
111                 netconf-node-topology:max-connection-attempts: 5
112         response:
113           status: 201
114       - request:
115           method: GET
116           path: [ restconf/operational, *nodeIdentifier]
117         response:
118           body:
119             node: [ { netconf-node-topology:connection-status: connected }]
120       - request:
121           method: GET
122           path: [*configUri, &configletResourcePath yang-ext:mount/mynetconf:netconflist]
123         response:
124           body: {}
125       - request:
126           method: PATCH
127           path: [*configUri, *configletResourcePath]
128           headers:
129             Content-Type: application/yang.patch+json
130           body: *assignPatch
131       - request:
132           method: DELETE
133           path: *configUri