You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 30 Next »



End to End flow to be Tested:  DCAE 3GPP PM Mapper:

PM Mapper Sequence Diagram

High Level Test Cases and Status:  DCAE 3GPP PM Mapper:

#Test CasesStatus
1Verify PM Mapper is able to query config data from Config Binding Service

PASS

2Verify PM Mapper is able subscribe to expected DR feed.

PASS

3

Verify PM mapper is able to retrieve PM data.

NOT YET TESTED

4

Verify PM mapper can validate the data using schema (e.g. 3gpp xml format).

NOT YET TESTED

5

Verify any file validation errors are logged.

NOT YET TESTED

6

Verify PM mapper creates expected VES PM events for the mapped data.

NOT YET TESTED

7

Verify any mapping errors are logged.

NOT YET TESTED

8

Verify mapped events are publish on Message Router.

NOT YET TESTED

9Verify PM Mapper send delete request for corresponding PM files to Data Router once events are published in Message Router.

NOT YET TESTED

10Verify 3GPP PM Mapper Responds appropriately when no metadata is provided.

PASS

11Verify 3GPP PM Mapper responds appropriately when invalid metadata is provided.

PASS


Test environment requirements for above test cases:

  • sample data files available on DmaaP DR
    • e.g. 3GPP PM files used in DCAE Data File Collector testing, or equivalent available in DR
  • Test environment reqs:
    • DMaaP R4, at minimum need DR running and configured for Bulk PM support
    • DCAE 3GPP PM Mapper installed and configured for 3GPP data handling
      • i.e. configured for 3GPP PM parsing and event creation

Detailed Description PM Mapper Feature Testcases:

< To - Do > - In progress

Test Case ID

PM_Mapper_01

Test Case NameVerify PM Mapper is able to query config data from Config Binding Service
DescriptionPM Mapper is able to query config data from Config Binding Service once it is deployed.
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result
  •  PM Mapper query to config_binding_service for config data.

PM Mapper successfully query it's config data from config_binding_service.

/var/log/ONAP/dcaegen2/services/pm-mapper/pm-mapper_output.log:

2019-02-14T14:44:57.306Z    main    INFO    org.onap.dcaegen2.services.pmmapper.config.ConfigHandler        Received pm-mapper configuration from ConfigBinding Service:\n{"pm-mapper-filter": "{ \"filters\":[]}", "3GPP.schema.file": "{\"3GPP_Schema\":\"./etc/3GPP_relaxed_schema.xsd\"}", "streams_subscribes": {"dmaap_subscriber": {"type": "data_router", "aaf_username": null, "aaf_password": null, "dmaap_info": {"location": "csit-pmmapper", "delivery_url": "3gpppmmapper", "username": "username", "password": "password", "subscriber_id": "subsriber_id"}}}, "streams_publishes": {"pm_mapper_handle_out": {"type": "message_router", "aaf_password": null, "dmaap_info": {"topic_url": "https://message-router:3904/events/org.onap.dmaap.onapCSIT.pm_mapper", "client_role": "org.onap.dmaap.client.pub", "location": "csit-pmmapper", "client_id": null}, "aaf_username": null}}, "buscontroller_feed_id": "1", "buscontroller_feed_subscription_endpoint": "http://dmaap-bc:8080/webapi/dr_subs", "services_calls": {}}   

  • Upon failure, PM Mapper should log proper error message.
Log appropriate error message.
Conclusion (Pass /Fail)PASS - https://jenkins.onap.org/job/dcaegen2-pmmapper-master-csit-pmmapper/
Testing LabEricsson Lab / CSIT



Test Case ID

PM_Mapper_02

Test Case NameVerify PM Mapper is able subscribe to expected DR feed.
DescriptionPM Mapper subscribes to Data Router through bus controller after receiving config data from config_binding_service.
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result
  • Once PM Mapper receive config data from config_binding_service, PM Mapper subscribing to Data Router through bus controller.

PM Mapper successfully subscribes to Data Router.

/var/log/ONAP/dcaegen2/services/pm-mapper/pm-mapper_output.log:

2019-02-14T14:28:11.348Z    main    INFO    org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber        Starting subscription to DataRouter        ENTRY    

2019-02-14T14:28:11.348Z    main    INFO    org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber        39d38cfa-fa5b-4b2f-a3db-fbd19c01fedf        INVOKE [ SYNCHRONOUS ]    

2019-02-14T14:28:11.419Z    main    INFO    org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber        Request to bus controller executed with Response Code: '201' and Response Event: 'Created'.


  • Check subscriber info in Data Router.

Data Router has subscription entry in it's database.

curl -k https://172.18.0.6:8443/internal/prov

{
"feeds": [
{"suspend":false,"groupid":0,"description":"PM Mapper Feed","version":"1","authorization":{"endpoint_addrs":[],"classification":"unclassified","endpoint_ids":[{"password":"89qtolvgb6n7w5r","id":"tmp_ch389e2m9iu2bl7"}]},"last_mod":1550155491000,"deleted":false,"feedid":1,"name":"pmmapper","business_description":"","publisher":"bulkpm","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"},"created_date":1550155491000}
],
"groups": [
],
"subscriptions": [
{"subid":1,"suspend":false,"delivery":{"use100":false,"password":"password","user":"username","url":"3gpppmmapper"},"last_mod":1550155497000,"subscriber":"DGL","feedid":1,"groupid":0,"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":1550155497000}
],
...

..

.

Conclusion (Pass /Fail)PASS - https://jenkins.onap.org/job/dcaegen2-pmmapper-master-csit-pmmapper/
Testing LabEricsson Lab / CSIT



Test Case ID

PM_Mapper_03

Test Case NameVerify PM mapper is able to retrieve PM data.
Description
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab




Test Case ID

PM_Mapper_04

Test Case NameVerify mapper can validate the data using schema (e.g. 3gpp xml format).
Description
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab




Test Case ID

PM_Mapper_05

Test Case NameVerify any file validation errors are logged.
Description
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab




Test Case ID

PM_Mapper_06

Test Case NameVerify mapper creates expected VES PM events for the mapped data.
Description
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab



Test Case ID

PM_Mapper_07

Test Case NameVerify any mapping errors are logged.
Description
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab



Test Case ID

PM_Mapper_08

Test Case NameVerify mapped events are publish on Message Router.
Description
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab



Test Case ID

PM_Mapper_09

Test Case NameVerify PM Mapper send delete request for corresponding PM files to Data Router once events are published in Message Router.
Description
ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab



Test Case ID

PM_Mapper_10

Test Case NameVerify 3GPP PM Mapper Responds appropriately when no metadata is provided
Description

Verify 3GPP PM Mapper responds 400 with the message "Missing Metadata." when no metadata is provided.

ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result
  • Send a request to the pm-mapper without a metadata header.

curl -X PUT <PM Mapper IP>:8081/delivery
Missing Metadata.

/var/log/ONAP/dcaegen2/services/pm-mapper/pm-mapper_output.log:

2019-02-20T14:11:25.879Z	XNIO-1 I/O-10	INFO	org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber	InstanceUUID=02bc37e3-4959-4ce5-b1fd-d93b21c7751d, RequestID=09012095-be25-4990-9e51-32701c6e3f1b, ServiceName=/delivery, InvocationID=430ede44-7fe5-4476-873a-e101ae65af73, InvokeTimestamp=2019-02-20T14:11:25.878Z, PartnerName=, ClientIPAddress=/127.0.0.1, ServerFQDN=localhost			ENTRY	
2019-02-20T14:11:25.881Z	XNIO-1 I/O-10	INFO	org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber	InstanceUUID=02bc37e3-4959-4ce5-b1fd-d93b21c7751d, RequestID=09012095-be25-4990-9e51-32701c6e3f1b, ServiceName=/delivery, InvocationID=430ede44-7fe5-4476-873a-e101ae65af73, InvokeTimestamp=2019-02-20T14:11:25.878Z, PartnerName=, ClientIPAddress=/127.0.0.1, ServerFQDN=localhost	Bad Request: no metadata found under 'X-ATT-DR-META' header.	org.onap.dcaegen2.services.pmmapper.exceptions.NoMetadataException: Metadata Not found.
2019-02-20T14:11:25.889Z	XNIO-1 I/O-10	INFO	org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber	ResponseCode=, InstanceUUID=02bc37e3-4959-4ce5-b1fd-d93b21c7751d, RequestID=09012095-be25-4990-9e51-32701c6e3f1b, ServiceName=/delivery, ResponseDescription=, InvocationID=430ede44-7fe5-4476-873a-e101ae65af73, Severity=, InvokeTimestamp=2019-02-20T14:11:25.878Z, PartnerName=, ClientIPAddress=/127.0.0.1, ServerFQDN=localhost, StatusCode=			EXIT	


Conclusion (Pass /Fail)
Testing LabEricsson Lab/CSIT


Test Case ID

PM_Mapper_11

Test Case NameVerify 3GPP PM Mapper responds appropriately when invalid metadata is provided
Description

Verify 3GPP PM Mapper responds 400 with the message "Malformed Metadata." when invalid metadata is provided

ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result
  • Send a request to the pm-mapper with invalid metadata header.
curl  -X PUT <PM Mapper IP>:8081/delivery -H 'X-ATT-DR-META: not metadata'
Malformed Metadata.

/var/log/ONAP/dcaegen2/services/pm-mapper/pm-mapper_output.log:

2019-02-21T08:41:33.422Z	XNIO-1 I/O-10	INFO	org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber	InstanceUUID=ea927d94-a91c-42f5-a145-138ee56259fe, RequestID=05def218-0d62-4e04-9b84-93424b410af4, ServiceName=/delivery, InvocationID=5e0015e9-87f4-46a4-975f-a82a2e308926, InvokeTimestamp=2019-02-21T08:41:33.421Z, PartnerName=, ClientIPAddress=/127.0.0.1, ServerFQDN=localhost			ENTRY	
2019-02-21T08:41:33.425Z	XNIO-1 I/O-10	INFO	org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber	InstanceUUID=ea927d94-a91c-42f5-a145-138ee56259fe, RequestID=05def218-0d62-4e04-9b84-93424b410af4, ServiceName=/delivery, InvocationID=5e0015e9-87f4-46a4-975f-a82a2e308926, InvokeTimestamp=2019-02-21T08:41:33.421Z, PartnerName=, ClientIPAddress=/127.0.0.1, ServerFQDN=localhost	Bad Request: Failure to parse metadata		
2019-02-21T08:41:33.432Z	XNIO-1 I/O-10	INFO	org.onap.dcaegen2.services.pmmapper.datarouter.DataRouterSubscriber	ResponseCode=, InstanceUUID=ea927d94-a91c-42f5-a145-138ee56259fe, RequestID=05def218-0d62-4e04-9b84-93424b410af4, ServiceName=/delivery, ResponseDescription=, InvocationID=5e0015e9-87f4-46a4-975f-a82a2e308926, Severity=, InvokeTimestamp=2019-02-21T08:41:33.421Z, PartnerName=, ClientIPAddress=/127.0.0.1, ServerFQDN=localhost, StatusCode=			EXIT	



Conclusion (Pass /Fail)
Testing LabEricsson Lab/CSIT


Test Case ID

PM_Mapper_12

Test Case Name


Description


ReleaseDublin
Pre-conditionsFrom the above section "Deployment" a test environment with all the required components - Config Binding Service, Consul and PM Mapper service.
Testing Steps
StepsExpected Result





Conclusion (Pass /Fail)
Testing LabEricsson Lab

  • No labels