Overview
The integration testing is implemented as CSIT Jenkins jobs as described in Project-specific CSIT structure
...
Selection of Image for CSIT test
# | 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 |
Jenkins Jobs
Following jobs are serving CSIT for CPS project
...
New CI jobs will have to be created for cps-temporal and dmi-plugin (Ref : ci-management/cps-csit.yaml at master · onap/ci-management (github.com))
Test Plan
# | Scenario | Covers | Steps | Status |
---|
CPS(cps-core and ncmp)
|
1.1 | Health Check | cps-core | - Test Liveness Probe Endpoint
- Test Readiness Probe Endpoint
| Done |
1.2 | CPS Admin Details Insert | cps-core | - 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. |
1.3 | CPS Data Node Insert, Update and Delete | cps-core | - Create Data Node for an anchor
- Get Datanode by the dataspace, anchor and xpath
| Done |
CPS Temporal |
2.1 | Health Check | cps-temporal | - Test Liveness Probe Endpoint
- Test Readiness Probe Endpoint
| New
|
2.2 | Get anchor history | cps-core, cps-temporal (through Kafka) | - 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 api /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/history
|
New |
|
|
ONAP DMI PLUGIN |
3.1 | Health Check | dmi-plugin | - Test Liveness Probe Endpoint
- Test Readiness Probe Endpoint
| |
ONAP 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 |
---|
|
|
425b2b0a557c3c0cb515579789cceedb |
3.2 | Model-Sync | dmi-plugin, ncmp, cps-core | - Create Data Node using cps api
- Notify NCMP DMI has new node
- http://localhost:8783/dmi/api/v1/inventory/cmHandles
- This will kick off model sync as part of registation
- wait till above method call completes and send a 2xx response
- Use CPS endpoint that shows anchors & namespaces to conclude test completed
| |
ONAP 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 |
---|
|
|
425b2b0a557c3c0cb515579789cceedb |
3.3 | Write & read data using datastore PassTrough | dmi-plugin, ncmp, cps-core |
| |
ONAP 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 |
---|
|
|
425b2b0a557c3c0cb515579789cceedb