Automatic Integration Test Cases of Data-Router
...
Test Case | Description | Status | Owner | Date | JIRA link | Comment | Passing | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Create Feed | Create feed in Robot framework by sending POST request to https://prov.datarouternew.com:8443 with data below. | Story ready | 10 August 2017 |
| |||||||||||||
Create Subscription | Create subscription to existing feed in Robot framework by sending POST request to https://prov.datarouternew.com:8443/subscribe/1 with data below. | Story ready | 10 August 2017 |
| |||||||||||||
Update Subscription | Update existing subscription by sending PUT request to https://prov.datarouternew.com:8443/subs/1 with data below. Change delivery url and username and password. Send GET request to https://prov.datarouternew.com:8443/subs/1 to check updated attributes | Story ready | 10 August 2017 |
| |||||||||||||
Update Feed | Update existing feed by sending PUT request to https://prov.datarouternew.com:8443/feed/1 with data below. Change description and suspend feed. Send GET request to https://prov.datarouternew.com:8443/feed/1 to check updated attributes. | Story ready | 10 August 2017 |
| |||||||||||||
Delete Feed | Delete existing feed by sending DELETE request to https://prov.datarouternew.com:8443/feed/1. Check response is 204 No Content. | Story ready | 10 August 2017 |
| |||||||||||||
Delete Subscription | Delete existing subscription by sending DELETE request to https://prov.datarouternew.com:8443/subs/1. Check response is 204 No Content. | Story ready | 10 August 2017 |
| |||||||||||||
Publish to Feed | Publish a file to an existing feed by sending PUT request to https://node.datarouternew.com:8443/publish/1/csit_test with any file, we use the Create Feed Data in the tests. Check response is 204 No Content. | Story ready | 07 August 2018 |
| Currently only sending publish to node container, need to investigate if publish to prov is possible in CSIT Tests |
Code Block |
---|
{ "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": "dramin" }] } } |
...
Testing whether the subscriber receives the published file can only be tested manually so far. A subscriber image has been built to test this functionality. You then need to change the org.onap.dmaap.datarouter.provserver.https.relaxation property in datarouter-prov/src/main/resources/provserver.properties to true
...