Overview
The integration testing is implemented as CSIT Jenkins jobs as described in Project-specific CSIT structure
On CSIT job execution
- the docker image of the component to be tested is built
- the tests are executed using Robot Framework
- the test results are published as Jenkins job results
...
# | CSIT component | Image | Decision |
---|
1 | cps-core | cps-and-ncmp | latest |
2. | cps-temporal | cps-temporal | latest |
cps-and-ncmp | most recent stage released stable version |
3 | (onap) dmi-plugin | ncmp-dmi-plugin | latest |
cps-and-ncmp | most recent stage released stable version |
sdnc and netconf-simulator | most recent stage released stable version |
Jenkins Jobs
Following jobs are serving CSIT for CPS projectProjects
...
Test Plan
# | Scenario | Covers | Steps | Test Status |
---|
# | Jakarta | Kohn | London |
---|
CPS(cps-core and ncmp)
|
1.1 | Health Check | cps-core | - Test Liveness Probe Endpoint
- Test Readiness Probe Endpoint
| Done | Done | Done |
1.2 | CPS Admin Details Insert | cps-core, postgres | - Create Dataspace
- Create schema set from YANG file
- Create Schema set with Zip file
- Get schema set info
- Create anchor
- Get Anchor
| To Be Updated Get Anchor test to be included in the existing test. | Done | Done |
1.3 | CPS Data Node Insert, Update and Delete | cps-core, postgres | - Create Data Node for an anchor
- Get Datanode by the dataspace, anchor and xpath
| Done | Done | Done |
CPS Temporal |
2.1 | Health Check | cps-temporal | - Test Liveness Probe Endpoint
- Test Readiness Probe Endpoint
| New
| Done | Won't Do |
2.2 | Get anchor history | cps-core, postgres, kafka, cps-temporal |
(through Kafka), timescaledb | - Create Dataspace
- Create schema set
- Create anchor
- Create Data Node using cps api
- Update the Data Node using cps api
Get the history of the anchor using cps-temporal api /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/history
|
| Done | Won't Do |
ONAP DMI PLUGIN |
3.1 | Health Check | dmi-plugin | - Test Liveness Probe Endpoint
- Test Readiness Probe Endpoint
| New Jira Legacy |
---|
server | System Jira |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 4733707d-2057-3a0f-ae5e-4fd8aff50176 |
---|
key | CPS-615 |
---|
|
Jira Legacy |
---|
server | System Jira |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 4733707d-2057-3a0f-ae5e-4fd8aff50176 |
---|
key | CPS-930 |
---|
|
| Done | Done |
3.2 | Register and Model-Sync | dmi-plugin, |
ncmp, Create Data Node using cps api Notify NCMP DMI has new node http://localhost:8783/Use CPS endpoint that shows anchors & namespaces to conclude test completedThis will kick off model sync as part of registationwait till above method call completes and send a 2xx response- Get anchor by using cm-handle name as the anchor name
- Get schema set information for the retrieved schemaset in step #2
| New Jira Legacy |
---|
server | System Jira |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 4733707d-2057-3a0f-ae5e-4fd8aff50176 |
---|
key | CPS-615 |
---|
|
| Done | Done |
3.3 | Write |
& and read data using datastore |
PassTroughPassThrough running/operational | dmi-plugin, |
ncmpNCMP, cps-core, postgres, , sdnc (mariadb), netconf simulator | - Call create operation for passthrough-running datastore /v1/ch/{cm-handle}/data/ds/ncmp-datastore:passthrough-running/{resourceIdentifier}
- Verify the resource is being created by GET api /v1/ch/{cm-handle}/data/ds/ncmp-datastore:passthrough-running/{resourceIdentifier}
- Call read operation for passthrough-operational datastore /v1/ch/{cm-handle}/data/ds/ncmp-datastore:passthrough-operational/{resourceIdentifier}
| New Jira Legacy |
---|
server | System Jira |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 4733707d-2057-3a0f-ae5e-4fd8aff50176 |
---|
key | CPS-646 |
---|
|
| Done | Done |
3.4 | Get all modules for given cm handle | dmi-plugin, sdnc (mariadb) | - Get all modules related to a given cm-handle and response should be 200 OK.
POST: /dmi/v1/ch/{cm-handle}/modules
| Jira Legacy |
---|
server | System Jira |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 4733707d-2057-3a0f-ae5e-4fd8aff50176 |
---|
key | CPS-930 |
---|
|
| Done | Done |
3.5 | Data sync (and sync state) |
|
|
| Done | Done |