Fix: Run both sonar and clm scans in parallel
[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   - name: config-deploy
35     request:
36       commonHeader: *commonHeader
37       actionIdentifiers: &deploy-ai
38         actionName: config-deploy
39         blueprintName: configuration_over_restconf
40         blueprintVersion: "1.0.0"
41         mode: sync
42       payload:
43         config-deploy-request:
44           resolution-key: *resKey
45           config-deploy-properties:
46             service-instance-id: siid_1234
47             pnf-id: *pnfId
48             pnf-ipv4-address: *pnfAddress
49             service-model-uuid: service-model-uuid
50             pnf-customization-uuid: pnf-customization-uuid
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: sdncodl
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