Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 3
Next »
High Level Test Cases and Status: DMAAP Data Router
# | Test Case | Status |
---|
1 | Create feed | |
2 | Subscribe to feed | |
3 | Subscribe to feed with privileged subscription | |
4 | Publish file to feed | |
5 | Verify subscriber receives published file | |
6 | Delete processed file from datarouter-node | |
7 | Update subscription | |
8 | Update feed | |
9 | Delete subscription | |
10 | Delete feed | |
Detailed Description Data Router Feature Test Cases:
Test Case ID | Data_Router_01 |
---|
Test Case Name | Create feed |
---|
Description | Confirm that a feed can be created by sending a POST request to the data-router provisioning server |
---|
Release | Casablanca |
---|
Preconditions | - All components of data-router are running
|
---|
Testing Steps | Step | Expected Result |
---|
Send POST request with a JSON feed object in the body to https://dmaap-dr-prov:8443/ | Response:
{
"suspend":false,
"groupid":0,
"description":"Default feed",
"version":"m1.0",
"authorization":{
"endpoint_addrs":[],
"classification":"unclassified",
"endpoint_ids":[{
"password":"dradmin",
"id":"dradmin"
}]
},
"name":"DefaultFeedPM",
"business_description":"Default Feed",
"publisher":"dradmin",
"links":{
"subscribe":"https://dmaap-dr-prov/subscribe/1",
"log":"https://dmaap-dr-prov/feedlog/1",
"publish":"https://dmaap-dr-prov/publish/1",
"self":"https://dmaap-dr-prov/feed/1"
}
}
Response Code: 201 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
Test Case ID | Data_Router_02 |
---|
Test Case Name | Subscribe to feed |
---|
Description | Confirm that a subscription to a feed can be created by sending a POST request to the data-router provisioning server |
---|
Release | Casablanca |
---|
Preconditions | - All components of data-router are running
- A feed with ID 1 is created
|
---|
Testing Steps | Step | Expected Result |
---|
Send POST request with a JSON subscription object in the body to https://dmaap-dr-prov:8443/subscribe/<feedId> | Response:
{
"suspend":false,
"delivery":{
"use100":true,
"password":"PASSWORD",
"user":"LOGIN",
"url":"http://172.18.0.3:7070"
},
"subscriber":"dradmin",
"groupid":1,
"metadataOnly":false,
"links":{
"feed":"https://dmaap-dr-prov/feed/1",
"log":"https://dmaap-dr-prov/sublog/1",
"self":"https://dmaap-dr-prov/subs/1"
},
"created_date":1550575240780,
"privilegedSubscriber":false
}
Response Code: 201 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
Test Case ID | Data_Router_03 |
---|
Test Case Name | Subscribe to feed with privileged subscription |
---|
Description | Confirm that a privileged subscription to a feed can be created by sending a POST request to the data-router provisioning server |
---|
Release | Dublin |
---|
Preconditions | - All components of data-router are running
- A feed with ID 1 is created
|
---|
Testing Steps | Step | Expected Result |
---|
Send POST request with a JSON privileged subscription object in the body to https://dmaap-dr-prov:8443/subscribe/<feedId> | Response:
{
"suspend":false,
"delivery":{
"use100":true,
"password":"PASSWORD",
"user":"LOGIN",
"url":"http://172.18.0.3:7070"
},
"subscriber":"dradmin",
"groupid":1,
"metadataOnly":false,
"links":{
"feed":"https://dmaap-dr-prov/feed/1",
"log":"https://dmaap-dr-prov/sublog/2",
"self":"https://dmaap-dr-prov/subs/2"
},
"created_date":1550575962943,
"privilegedSubscriber":true
}
Response Code: 201 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
Test Case ID | Data_Router_04 |
---|
Test Case Name | Publish file to feed |
---|
Description | Confirm that a file can be published to a feed |
---|
Release | Casablanca |
---|
Preconditions | - All components of data-router are running
- A feed with ID 1 is created
|
---|
Testing Steps | Step | Expected Result |
---|
Send PUT request with a file in the body to https://dmaap-dr-prov:8443/publish/<feedid>/<fileName> | Redirected to https://dmaap-dr-node:8443/publish/1/csit_test Response Code: 301
| Send PUT request with a file in the body to https://dmaap-dr-node:8443/publish/<feedid>/<fileName> | Response Code: 204 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
Test Case ID | Data_Router_05 |
---|
Test Case Name | Verify subscriber receives published file |
---|
Description | Confirm that a file is delivered to a subscriber of a feed that has had a file published to it |
---|
Release | Dublin |
---|
Preconditions | - All components of data-router are running
- A feed with ID 1 is created
- A subscriber has subscribed to feed 1
- A publisher has published a file to feed 1
|
---|
Testing Steps | Step | Expected Result |
---|
Run "ls /opt/app/subscriber/delivery | grep csit_test" on the subscriber-node container | Response: csit_test Response Code: 0 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
Test Case ID | Data_Router_06 |
---|
Test Case Name | Delete processed file from datarouter-node |
---|
Description | Confirm that the file delivered to the privileged subscriber remains on dr-node and use the delete API to remove it |
---|
Release | Dublin |
---|
Preconditions | - All components of data-router are running
- A feed with ID 1 is created
- A privileged subscriber has subscribed to feed 1
- A publisher has published a file to feed 1
|
---|
Testing Steps | Step | Expected Result |
---|
Run "ls /opt/app/datartr/spool/s/0/2 | grep dmaap-dr-node | grep -v .M" on the datarouter-node container | Response: <fileName> Response Code: 0 | Send DELETE request to https://dmaap-dr-node:8443/delete/<subid>/<fileName> | Response Code: 200 | Run "ls /opt/app/datartr/spool/s/0/2 | grep dmaap-dr-node | grep -v .M" on the datarouter-node container to verify file was deleted | Response Code: 1 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
Test Case ID | Data_Router_07 |
---|
Test Case Name | Update subscription |
---|
Description | Confirm that a subscription can be updated |
---|
Release | Casablanca |
---|
Preconditions | - All components of data-router are running
- A subscription has been created
|
---|
Testing Steps | Step | Expected Result |
---|
Send PUT request with a JSON subscription object in the body to https://dmaap-dr-prov:8443/subs/<subId> | Response:
{
"suspend":false,
"delivery":{
"use100":true,
"password":"PASSWORD",
"user":"LOGIN",
"url":"http://172.18.0.3:7070"
},
"subscriber":"Updated Subscriber",
"groupid":1,
"metadataOnly":false,
"links":{
"feed":"https://dmaap-dr-prov/feed/1",
"log":"https://dmaap-dr-prov/sublog/2",
"self":"https://dmaap-dr-prov/subs/2"
},
"created_date":1550575962943,
"privilegedSubscriber":false
}
Response Code: 200 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
Test Case ID | Data_Router_08 |
---|
Test Case Name | Update feed |
---|
Description | Confirm that a feed can be updated |
---|
Release | Casablanca |
---|
Preconditions | - All components of data-router are running
- A feed has been created
|
---|
Testing Steps | Step | Expected Result |
---|
Send PUT request with a JSON feed object in the body to https://dmaap-dr-prov:8443/feed/<feedId> | Response:
{
"suspend":false,
"groupid":0,
"description":"Updated Feed Description",
"version":"m1.0",
"authorization":{
"endpoint_addrs":[],
"classification":"unclassified",
"endpoint_ids":[{
"password":"dradmin",
"id":"dradmin"
}]
},
"name":"DefaultFeedPM",
"business_description":"Default Feed",
"publisher":"dradmin",
"links":{
"subscribe":"https://dmaap-dr-prov/subscribe/1",
"log":"https://dmaap-dr-prov/feedlog/1",
"publish":"https://dmaap-dr-prov/publish/1",
"self":"https://dmaap-dr-prov/feed/1"
}
}
Response Code: 200 |
|
---|
Conclusion (Pass/Fail) | PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/ |
---|
Testing Lab | Ericsson Lab / CSIT |
---|
JSON Objects
{
"name": "CSIT_Test",
"version": "m1.0",
"description": "CSIT_Test",
"business_description": "CSIT_Test",
"suspend": false,
"deleted": false,
"changeowner": true,
"authorization": {
"classification": "unclassified",
"endpoint_addrs": [], // List of IP Addresses that can publish to this feed
"endpoint_ids": [{
"password": "dradmin", // Any application that publishes to this feed must use these credentials
"id": "dradmin"
}]
}
}
{
"delivery":{
"url":"https://{subscriber_ip}:7070/", // IP Address of subscriber and port that can be accessed through
"user":"LOGIN", // Credentials used to send file to this subscriber
"password":"PASSWORD",
"use100":true
},
"metadataOnly":false,
"suspend":false,
"groupid":29,
"subscriber":"dradmin"
}
{
"delivery":{
"url":"https://{subscriber_ip}:7070/", // IP Address of subscriber and port that can be accessed through
"user":"LOGIN", // Credentials used to send file to this subscriber
"password":"PASSWORD",
"use100":true
},
"metadataOnly":false,
"suspend":false,
"groupid":29,
"subscriber":"dradmin",
"privilegedSubscriber": true
}