/
Integration and Manual Test Cases of Data-Router

Integration and Manual Test Cases of Data-Router

Automatic Integration Test Cases of Data-Router

The below tests are all covered by the CSIT tests which are run daily by the ONAP Integration Jenkins Jobs

Test Case

Description

Status

Owner

Date

JIRA link

Comment

Passing

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

DMAAP-63: Functional Test Case: Create FeedClosed



   

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

DMAAP-66: Functional Test Case: Create SubscriptionClosed



   

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

DMAAP-67: Functional Test Case: Edit SubscriptionClosed



   

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

DMAAP-64: Functional Test Case: Update FeedClosed



   

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

DMAAP-65: Functional Test Case: Delete FeedClosed



   

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

DMAAP-68: Functional Test Case: Delete SubscriptionClosed



   

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

DMAAP-564: Functional Test Case: Publish FeedClosed

Currently only sending publish to node container, need to investigate if publish to prov is possible in CSIT Tests

   





{ "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" }] } }



{ "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://${new_subscriber_ip}:7070/", // Subscriber IP Address can be updated, as well as credentials "user":"sg481n", "password":"sg481n", "use100":true }, "metadataOnly":false, "suspend":true, "groupid":29, "subscriber":"dradmin" }



Manual Test Case

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

And add the subscriber to the docker-compose.yml in datarouter-prov also

The subscriber IP Address and Port is then 172.100.0.5:7070 and the credentials are LOGIN:PASSWORD.

Then you should be able to run the subscriber use case.