aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-04-09 15:24:03 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-09 15:24:03 +0000
commit565ad11e54adf757b7a64fe9f6bba752905fe6e8 (patch)
treeb85da5b0dbd2966584666ba7f4114ce07ab4ebd4 /tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot
parent4863e3f7838178a9c9d8fe37cd1b996a193cabdf (diff)
parent6773926a4884facb2da4991d85dd6ab286dd0eba (diff)
Merge "Added pm mapper test to check non-xml file"
Diffstat (limited to 'tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot')
-rw-r--r--tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot10
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
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367