diff options
author | Gerard Hickey <gerard.hickey@ericsson.com> | 2019-04-09 13:35:14 +0000 |
---|---|---|
committer | Gerard Hickey <gerard.hickey@ericsson.com> | 2019-04-09 13:38:49 +0000 |
commit | 6773926a4884facb2da4991d85dd6ab286dd0eba (patch) | |
tree | 4c2b40f6f9134bf54dced42b681fc196a7f7d1e0 /tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot | |
parent | c257e7baca0f1f9d5f50ec82c7421ef780fc8b84 (diff) |
Added pm mapper test to check non-xml file
Change-Id: If2530b0ddd0295e6f204984969d95baf8f184a8a
Issue-ID: INT-863
Signed-off-by: Gerard Hickey <gerard.hickey@ericsson.com>
Diffstat (limited to 'tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot')
-rw-r--r-- | tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot index ec798293..9bba4817 100644 --- a/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot +++ b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot @@ -21,6 +21,7 @@ ${NO_MANAGED_ELEMENT_PATH} %{WORKSPACE}/tests/dcaegen2-pmmapper/pm ${NO_MEASDATA_PATH} %{WORKSPACE}/tests/dcaegen2-pmmapper/pmmapper/assets/A_no_measdata.xml ${VALID_METADATA_PATH} %{WORKSPACE}/tests/dcaegen2-pmmapper/pmmapper/assets/valid_metadata.json ${DIFF_VENDOR_METADATA} %{WORKSPACE}/tests/dcaegen2-pmmapper/pmmapper/assets/diff_vendor_metadata.json +${NON_XML_FILE} %{WORKSPACE}/tests/dcaegen2-pmmapper/pmmapper/assets/diff_vendor_metadata.json ${CLI_EXEC_CLI_PM_LOG} docker exec pmmapper /bin/sh -c "tail -15 /var/log/ONAP/dcaegen2/services/pm-mapper/pm-mapper_output.log" ${PUBLISH_NODE_URL} https://${DR_NODE_IP}:8443/publish/1 ${TYPE-A_PM_DATA_FILE_PATH} %{WORKSPACE}/tests/dcaegen2-pmmapper/pmmapper/assets/A20181002.0000-1000-0015-1000_5G.xml @@ -118,6 +119,15 @@ Verify that PM Mapper correctly identifies a file that should not be mapped base CheckLog ${CLI_EXEC_CLI_PM_LOG} Metadata does not match any filters CheckLog ${CLI_EXEC_CLI_PM_LOG} RequestID=7 +Verify that PM Mapper correctly identifies a non-xml file. + [Tags] PM_MAPPER_10 + [Documentation] Verify that PM Mapper correctly identifies a non-xml file. + [Timeout] 1 minute + SendToDatarouter ${NON_XML_FILE} ${VALID_METADATA_PATH} X-ONAP-RequestID=8 + CheckLog ${CLI_EXEC_CLI_PM_LOG} PM measurement file type not supported + CheckLog ${CLI_EXEC_CLI_PM_LOG} RequestID=8 + + *** Keywords *** SendToDatarouter |