diff options
author | Jerry Flood <jflood@att.com> | 2019-04-12 08:23:22 -0400 |
---|---|---|
committer | Jerry Flood <jflood@att.com> | 2019-04-15 06:51:58 -0400 |
commit | a3da541f9914a13e644f638f02b4f44b64028332 (patch) | |
tree | 6e1bc218c4c2aab1743c97dea61edda78b6ad46c /cmso-robot/docker/cmso-service | |
parent | 9c23f5162c9cde34e69f0caa49ae154aeec9ec83 (diff) |
Add robot integration test
Produce code coverage for cmso-service
Clean up poms
Issue-ID: OPTFRA-474
Change-Id: I46a24d99413b5d30387f93c558a7d675410a1064
Signed-off-by: Jerry Flood <jflood@att.com>
Diffstat (limited to 'cmso-robot/docker/cmso-service')
-rw-r--r-- | cmso-robot/docker/cmso-service/cmso-service/etc/startJacocoService.sh | 2 | ||||
-rwxr-xr-x | cmso-robot/docker/cmso-service/ete_test.sh | 18 |
2 files changed, 14 insertions, 6 deletions
diff --git a/cmso-robot/docker/cmso-service/cmso-service/etc/startJacocoService.sh b/cmso-robot/docker/cmso-service/cmso-service/etc/startJacocoService.sh index 0db6f1f..5d65a7f 100644 --- a/cmso-robot/docker/cmso-service/cmso-service/etc/startJacocoService.sh +++ b/cmso-robot/docker/cmso-service/cmso-service/etc/startJacocoService.sh @@ -7,7 +7,7 @@ unzip org.jacoco.agent-0.8.2.jar cp org.jacoco.agent-0.8.2/jacocoagent.jar . ls -l -VM_ARGS="${VM_ARGS} -javaagent:./jacocoagent.jar=destfile=/share/logs/jacoco.exec,dumponexit=true,jmx=true,append=true,output=file,includes=org.onap.optf.cmso.*" +VM_ARGS="${VM_ARGS} -javaagent:./jacocoagent.jar=destfile=/share/logs/service.jacoco.exec,dumponexit=true,jmx=true,append=true,output=file,includes=org.onap.*" echo "VM_ARGS=${VM_ARGS}" diff --git a/cmso-robot/docker/cmso-service/ete_test.sh b/cmso-robot/docker/cmso-service/ete_test.sh index cd77ba5..fce07eb 100755 --- a/cmso-robot/docker/cmso-service/ete_test.sh +++ b/cmso-robot/docker/cmso-service/ete_test.sh @@ -3,23 +3,31 @@ docker-compose up >up.txt 2>&1 & ### Wait for robot to finish sleep 60 -docker exec -it cmso-service_cmso-robot_1 ls +docker exec cmso-service_cmso-robot_1 ls while [ $? -ne 1 ]; do sleep 60 - docker exec -it cmso-service_cmso-robot_1 ls + docker exec cmso-service_cmso-robot_1 ls done ### Shut down java with to give time to write the jacoco_exec file docker exec cmso-service_cmso-service_1 pkill java +docker exec cmso-service_cmso-optimizer_1 pkill java sleep 10 -### wait for cmso-service container to exit -docker exec -it cmso-service_cmso-service_1 ls +### wait for cmso containers to exit and jacoco files written +docker exec cmso-service_cmso-service_1 ls while [ $? -ne 1 ]; do sleep 60 - docker exec -it cmso-service_cmso-service_1 ls + docker exec cmso-service_cmso-service_1 ls done +docker exec cmso-service_cmso-optimizer_1 ls +while [ $? -ne 1 ]; do + sleep 60 + docker exec cmso-service_cmso-optimizer_1 ls +done + + docker ps -a docker-compose down docker ps -a |