aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLiamBurke <Liam.Burke@ericsson.com>2019-02-26 17:04:48 +0000
committerLiamBurke <liam.burke@ericsson.com>2019-02-26 17:04:48 +0000
commitb08762266e163556819bd9efba89dd5dcbed67b6 (patch)
treed68c32390e2219c9cfe8d80aeb83e3b63c56482c /tests
parente4336c65d3d7593438cbf8a42c1c51946f8f3915 (diff)
Change due to DFC code changes
-DFC no longer keeps PM file -Check DFC log for successful publish on DR Change-Id: Ic94c1837900f958712216aebaf3a4691f4bda898 Issue-ID: INT-832 Signed-off-by: LiamBurke <liam.burke@ericsson.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/usecases/5G-bulkpm/BulkpmE2E.robot15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/usecases/5G-bulkpm/BulkpmE2E.robot b/tests/usecases/5G-bulkpm/BulkpmE2E.robot
index 4b85e6ba..ad1ac310 100644
--- a/tests/usecases/5G-bulkpm/BulkpmE2E.robot
+++ b/tests/usecases/5G-bulkpm/BulkpmE2E.robot
@@ -18,6 +18,8 @@ ${TARGETURL_TOPICS} http://${DMAAP_MR_IP}:3904/topics
${TARGETURL_SUBSCR} http://${DMAAP_MR_IP}:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12?timeout=1000
${CLI_EXEC_CLI} curl -k https://${DR_PROV_IP}:8443/internal/prov
${CLI_EXEC_CLI_FILECONSUMER} docker exec fileconsumer-node /bin/sh -c "ls /opt/app/subscriber/delivery | grep .gz"
+${CLI_EXEC_CLI_DFC_LOG} docker exec dfc /bin/sh -c "cat /opt/log/application.log" > /tmp/dfc_docker.log.robot
+${CLI_EXEC_CLI_DFC_LOG_GREP} grep "Publish to DR successful!" /tmp/dfc_docker.log.robot
${CLI_EXEC_CLI_FILECONSUMER_CP} docker cp fileconsumer-node:/opt/app/subscriber/delivery/xNF.pm.xml.gz.M %{WORKSPACE}
${CLI_EXEC_RENAME_METADATA} mv %{WORKSPACE}/xNF.pm.xml.gz.M %{WORKSPACE}/metadata.json
@@ -56,13 +58,16 @@ Check VES Notification Topic is existing in Message Router
log ${ListLength}
List Should Contain Value ${topics} unauthenticated.VES_NOTIFICATION_OUTPUT
-Verify Downloaded PM file from xNF exist on Data File Collector
+Verify Data File Collector successfully publishes the PM XML file to the Data Router
[Tags] Bulk_PM_E2E_03
- [Documentation] Check the PM XML file exists on the data file collector
- ${cli_cmd_output}= Run Process %{CLI_EXEC_CLI_DFC} shell=yes
+ [Documentation] Check that DFC publishes the PM XML to the Data Router
+ ${cli_cmd_output}= Run Process ${CLI_EXEC_CLI_DFC_LOG} shell=yes
Log ${cli_cmd_output.stdout}
Should Be Equal As Strings ${cli_cmd_output.rc} 0
- Should Contain ${cli_cmd_output.stdout} xNF.pm.xml.gz
+ ${cli_cmd_output}= Run Process ${CLI_EXEC_CLI_DFC_LOG_GREP} shell=yes
+ Log ${cli_cmd_output.stdout}
+ Should Be Equal As Strings ${cli_cmd_output.rc} 0
+ Should Contain ${cli_cmd_output.stdout} Publish to DR successful!
Verify Default Feed And File Consumer Subscription On Datarouter
@@ -93,4 +98,4 @@ Verify File Consumer Receive valid metadata from Data Router
${cli_cmd_output}= Run Process ${CLI_EXEC_CLI_FILECONSUMER_CP} shell=yes
${cli_cmd_output}= Run Process ${CLI_EXEC_RENAME_METADATA} shell=yes
${validation_result}= Validate ${metadataSchemaPath} ${metadataJsonPath}
- Should Be Equal As Strings ${validation_result} 0
+ Should Be Equal As Strings ${validation_result} 0 \ No newline at end of file