Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

High Level Test Cases and Status: DMAAP Data Router

#Test CaseStatus
1Create feed

Status
colourGreen
titlePASS

2Subscribe to feed

Status
colourGreen
titlePASS

3Subscribe to feed with privileged subscription

Status
colourGreen
titlePASS

4Publish file to feed

Status
colourGreen
titlePASS

5Verify subscriber receives published file

Status
colourGreen
titlePASS

6Delete processed file from datarouter-node

Status
colourGreen
titlePASS

7Update subscription

Status
colourGreen
titlePASS

8Update feed

Status
colourGreen
titlePASS

9Get publish record

Status
colourGreen
titlePASS

10Get publish record of unpublished file

Status
colourGreen
titlePASS

11Delete subscription

Status
colourGreen
titlePASS

10
12Delete feed

Status
colourGreen
titlePASS


Detailed Description Data Router Feature Test Cases:

Test Case IDData_Router_01
Test Case NameCreate feed
DescriptionConfirm that a feed can be created by sending a POST request to the data-router provisioning server
ReleaseCasablanca
Preconditions
  • All components of data-router are running
Testing Steps


StepExpected Result

Send POST request with a JSON feed object in the body to https://dmaap-dr-prov:8443/

Response:

Code Block
{
	"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 LabEricsson Lab / CSIT


Test Case IDData_Router_02
Test Case NameSubscribe to feed
DescriptionConfirm that a subscription to  a feed can be created by sending a POST request to the data-router provisioning server
ReleaseCasablanca
Preconditions
  • All components of data-router are running
  • A feed is created
Testing Steps


StepExpected Result

Send POST request with a JSON subscription object in the body to https://dmaap-dr-prov:8443/subscribe/<feedId>

Response:

Code Block
{
	"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 LabEricsson Lab / CSIT


Test Case IDData_Router_03
Test Case NameSubscribe to feed with privileged subscription
DescriptionConfirm that a privileged subscription to a feed can be created by sending a POST request to the data-router provisioning server
ReleaseDublin
Preconditions
  • All components of data-router are running
  • A feed is created
Testing Steps


StepExpected Result

Send POST request with a JSON privileged subscription object in the body to https://dmaap-dr-prov:8443/subscribe/<feedId>

Response:

Code Block
{
	"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 LabEricsson Lab / CSIT


Test Case IDData_Router_04
Test Case NamePublish file to feed
DescriptionConfirm that a file can be published to a feed
ReleaseCasablanca
Preconditions
  • All components of data-router are running
  • A feed is created
Testing Steps


StepExpected 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/<feedId>/<fileName>

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 LabEricsson Lab / CSIT


Test Case IDData_Router_05
Test Case NameVerify subscriber receives published file
DescriptionConfirm that a file is delivered to a subscriber of a feed that has had a file published to it
ReleaseDublin
Preconditions
  • All components of data-router are running
  • A feed is created
  • A subscriber has subscribed to this feed
  • A publisher has published a file to this feed
Testing Steps


StepExpected Result

Run "ls /opt/app/subscriber/delivery | grep <fileName>" on the subscriber-node container

Response: <fileName>

Response Code: 0


Conclusion (Pass/Fail)PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite
/425/
Testing LabEricsson Lab / CSIT


Test Case IDData_Router_06
Test Case NameDelete processed file from datarouter-node
DescriptionConfirm that the file delivered to the privileged subscriber remains on dr-node and use the delete API to remove it
ReleaseDublin
Preconditions
  • All components of data-router are running
  • A feed is created
  • A privileged subscriber has subscribed to this feed
  • A publisher has published a file to this feed
Testing Steps


StepExpected Result

Run "ls /opt/app/datartr/spool/s/0/<subId> | 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/<subId> | grep dmaap-dr-node | grep -v .M" on the datarouter-node container to verify file was deletedResponse Code: 1


Conclusion (Pass/Fail)PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite
/425/
Testing LabEricsson Lab / CSIT


Test Case IDData_Router_07
Test Case NameUpdate subscription
DescriptionConfirm that a subscription can be updated
ReleaseCasablanca
Preconditions
  • All components of data-router are running
  • A subscription has been created
Testing Steps


StepExpected Result

Send PUT request with a JSON subscription object in the body to https://dmaap-dr-prov:8443/subs/<subId>

Response:

Code Block
{
	"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 LabEricsson Lab / CSIT


Test Case IDData_Router_08
Test Case NameUpdate feed
DescriptionConfirm that a feed can be updated
ReleaseCasablanca
Preconditions
  • All components of data-router are running
  • A feed has been created
Testing Steps


StepExpected Result

Send PUT request with a JSON feed object in the body to https://dmaap-dr-prov:8443/feed/<feedId>

Response:

Code Block
{
	"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 LabEricsson Lab / CSIT


Test Case IDData_Router_09
Test Case Name
Delete subscription
Get publish record
DescriptionGet publish record of published file (required for DFC to not send same file twice)
ReleaseDublin
Preconditions
  • All components of data-router are running
  • A file has been published to a feed successfully
Testing Steps


StepExpected Result

Send GET request to https://dmaap-dr-prov:8443/feedlog/<feedId>?type=pub&filename=<publishedFilename>

Response:

Code Block
[{
	"statusCode":204,
	"publishId":"1555412177642.dmaap-dr-node",
	"requestURI":"https://dmaap-dr-node/publish/1/csit_test",
	"sourceIP":"172.18.0.1",
	"method":"PUT",
	"contentType":"application/octet-stream",
	"endpointId":"rs873m",
	"type":"pub",
	"date":"2019-04-16T10:56:17.648Z",
	"contentLength":295,
	"fileName":"csit_test"
}]

Response Code: 200


Conclusion (Pass/Fail)PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite
Testing LabEricsson Lab / CSIT


Test Case IDData_Router_10
Test Case NameGet publish record of unpublished file
DescriptionVerify get publish record of unpublished file returns empty list
ReleaseDublin
Preconditions
  • All components of data-router are running
  • A feed is created.
Testing Steps


StepExpected Result

Send GET request to https://dmaap-dr-prov:8443/feedlog/<feedId>?type=pub&filename=<unpublishedFilename>

Response:

[ ]

Response Code: 200


Conclusion (Pass/Fail)PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite
Testing LabEricsson Lab / CSIT


Test Case IDData_Router_11
Test Case NameDelete feed
DescriptionConfirm that a subscription feed can be deleted
ReleaseCasablanca
Preconditions
  • All components of data-router are running
  • A subscription feed has been created
Testing Steps


StepExpected Result

Send DELETE request to https://dmaap-dr-prov:8443/subsfeed/<subId<feedId>

Response Code: 204


Conclusion (Pass/Fail)PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/
Testing LabEricsson Lab / CSIT


Test Case IDData_Router_1012
Test Case NameDelete feed
DescriptionConfirm that a feed can be deleted
ReleaseCasablanca
Preconditions
  • All components of data-router are running
  • A feed has been created
Testing Steps


StepExpected Result

Send DELETE request to https://dmaap-dr-prov:8443/feed/<feedId>

Response Code: 204


Conclusion (Pass/Fail)PASS - https://jenkins.onap.org/view/dmaap/job/dmaap-datarouter-master-csit-dr-suite/425/
Testing LabEricsson Lab / CSIT

...