Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Automatic Integration Test Cases of Data-Router

...

Test CaseDescriptionStatusOwnerDateJIRA linkCommentPassing
Create FeedCreate feed in Robot framework by sending POST request to https://prov.datarouternew.com:8443 with data below.Story ready
10 August 2017

Jira Legacy
serverSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyDMAAP-63


    (tick)
Create SubscriptionCreate 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

Jira Legacy
serverSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyDMAAP-66


    (tick)
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

Jira Legacy
serverSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyDMAAP-67


    (tick)
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

Jira Legacy
serverSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyDMAAP-64


    (tick)
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

Jira Legacy
serverSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyDMAAP-65


    (tick)
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

Jira Legacy
serverSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyDMAAP-68


    (tick)
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

Jira Legacy
serverSystem Jira
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyDMAAP-564

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



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

...