Change-Id: I59277bc4b259d1b91b3259e7985efca6b0639671
Signed-off-by: yanhuanwang <martin.c.yan@est.tech>
Issue-ID: DCAEGEN2-1702
running_containers=$(docker ps --filter name=dfc_ -qa)
running_images=$(docker images -q)
running_containers=$(docker ps --filter name=dfc_ -qa)
running_images=$(docker images -q)
+docker exec -it dfc_app0 cat /var/log/ONAP/application.log >> $WORKSPACE/archives/dfc_app0_application.log
+docker logs dfc_mr-sim >> $WORKSPACE/archives/dfc_mr-sim.log
if [ -z "$running_containers" ]
then
if [ -z "$running_containers" ]
then
if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ]
then
echo "DFC app Running"
if [ $(docker inspect --format '{{ .State.Running }}' $DFC_APP) ]
then
echo "DFC app Running"
+ # enable TRACE logging of DFC
+ docker exec $DFC_APP /bin/sh -c " sed -i 's/org.onap.dcaegen2.collectors.datafile: WARN/org.onap.dcaegen2.collectors.datafile: TRACE/g' /opt/app/datafile/config/application.yaml"
+
+ #enable TRACE logging of spring-framework
+ docker exec $DFC_APP /bin/sh -c " sed -i 's/org.springframework.data: ERROR/org.springframework.data: TRACE/g' /opt/app/datafile/config/application.yaml"
+
+ docker restart $DFC_APP
+ sleep 10
+
Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Published Files Equal 1 #Verify 1 file published to DR sim
DR Redir Sim Downloaded Volume Equal 1 000 000 #Verify 1 000 000 bytes published file data in DR redir sim
Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Published Files Equal 1 #Verify 1 file published to DR sim
DR Redir Sim Downloaded Volume Equal 1 000 000 #Verify 1 000 000 bytes published file data in DR redir sim
- ${cli_cmd_output}= Run Process ${SIMGROUP_ROOT}/simulators-kill.sh
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
- ${cli_cmd_output}= Run Process ${DFC_ROOT}/dfc-kill.sh
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+ #${cli_cmd_output}= Run Process ${SIMGROUP_ROOT}/simulators-kill.sh
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+ #${cli_cmd_output}= Run Process ${DFC_ROOT}/dfc-kill.sh
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
Verify single event with single 5MB SFTP file. From event poll to published file
[TAGS] DFC_FUNCTIONAL_2
Verify single event with single 5MB SFTP file. From event poll to published file
[TAGS] DFC_FUNCTIONAL_2
Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Published Files Equal 1 #Verify 1 file published to DR sim
DR Redir Sim Downloaded Volume Equal 5 000 000 #Verify 5 000 000 bytes published file data in DR redir sim
Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Published Files Equal 1 #Verify 1 file published to DR sim
DR Redir Sim Downloaded Volume Equal 5 000 000 #Verify 5 000 000 bytes published file data in DR redir sim
- ${cli_cmd_output}= Run Process ${SIMGROUP_ROOT}/simulators-kill.sh
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
- ${cli_cmd_output}= Run Process ${DFC_ROOT}/dfc-kill.sh
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
-
- ${cli_cmd_output}= Run Process docker stop $(docker ps -aq) shell=yes
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
-
- ${cli_cmd_output}= Run Process docker rm $(docker ps -aq) shell=yes
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+ #${cli_cmd_output}= Run Process ${SIMGROUP_ROOT}/simulators-kill.sh
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+ #${cli_cmd_output}= Run Process ${DFC_ROOT}/dfc-kill.sh
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+#
+ #${cli_cmd_output}= Run Process docker stop $(docker ps -aq) shell=yes
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+#
+ #${cli_cmd_output}= Run Process docker rm $(docker ps -aq) shell=yes
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Published Files Equal 1 #Verify 1 file published to DR sim
DR Redir Sim Downloaded Volume Equal 50 000 000 #Verify 50 000 000 bytes published file data in DR redir sim
Wait Until Keyword Succeeds 1 minute 10 sec DR Sim Published Files Equal 1 #Verify 1 file published to DR sim
DR Redir Sim Downloaded Volume Equal 50 000 000 #Verify 50 000 000 bytes published file data in DR redir sim
- ${cli_cmd_output}= Run Process ${SIMGROUP_ROOT}/simulators-kill.sh
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
- ${cli_cmd_output}= Run Process ${DFC_ROOT}/dfc-kill.sh
- Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+ #${cli_cmd_output}= Run Process ${SIMGROUP_ROOT}/simulators-kill.sh
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
+ #${cli_cmd_output}= Run Process ${DFC_ROOT}/dfc-kill.sh
+ #Log ${cli_cmd_output.stdout} ${cli_cmd_output.stderr}
######### Single file, FTPS
# Temporarily removed due to issues with the certificates for the ftsp server simulator cert.
######### Single file, FTPS
# Temporarily removed due to issues with the certificates for the ftsp server simulator cert.