From c8ccab1dce9624155c6fa4ab916fa09fbf3972b5 Mon Sep 17 00:00:00 2001 From: ecaiyanlinux Date: Tue, 9 Jun 2020 13:29:53 +0200 Subject: [PATCH] Fix a small issue & update gitignore Issue-ID: NONRTRIC-237 Signed-off-by: ecaiyanlinux Change-Id: Ib935146cdd338b860675f7519c12d194fdb0305d --- test/auto-test/FTC10.sh | 4 ++-- test/jenkins/.gitignore | 4 ++-- test/jenkins/run_test.sh | 9 +++++++-- test/mrstub/Dockerfile | 3 --- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/test/auto-test/FTC10.sh b/test/auto-test/FTC10.sh index eaa6de29..45e7bdd8 100755 --- a/test/auto-test/FTC10.sh +++ b/test/auto-test/FTC10.sh @@ -153,8 +153,8 @@ sim_equal ricsim_g2_1 num_instances 0 # Check remote host access to simulator -sim_contains_ste ricsim_g1_1 hosts "policy-agent" -sim_contains_ste ricsim_g2_1 hosts "policy-agent" +sim_contains_str ricsim_g1_1 remote_hosts "policy-agent" +sim_contains_str ricsim_g2_1 remote_hosts "policy-agent" # Check policy removal use_agent_rest_http diff --git a/test/jenkins/.gitignore b/test/jenkins/.gitignore index e8cbd0e2..260a2eb2 100644 --- a/test/jenkins/.gitignore +++ b/test/jenkins/.gitignore @@ -1,9 +1,9 @@ .consul_config.json .docker-images-table -.httplog_FTC10.txt +.httplog* .image-list .output.consul_config.json -.resultFTC10.txt +.result* .timer_measurement.txt .tmp.curl.json logs/ diff --git a/test/jenkins/run_test.sh b/test/jenkins/run_test.sh index 469288d6..e7262e40 100755 --- a/test/jenkins/run_test.sh +++ b/test/jenkins/run_test.sh @@ -26,8 +26,13 @@ curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compo chmod +x docker-compose export PATH=$PATH:`pwd` +clean_docker(){ + docker stop $(docker ps -aq) + docker system prune -f +} # Run auto-test scripts cd ../auto-test/ +clean_docker bash FTC10.sh remote auto-clean --use-local-image PA SDNC echo "--> run_integration.sh END" @@ -35,8 +40,8 @@ echo "--> run_integration.sh END" FILE=.resultFTC10.txt if [[ -f "$FILE" ]]; then res=$(cat .resultFTC10.txt) - docker system prune -f + clean_docker exit $res fi -docker system prune -f +clean_docker exit 1 diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index 07101ad8..513894cd 100644 --- a/test/mrstub/Dockerfile +++ b/test/mrstub/Dockerfile @@ -28,9 +28,6 @@ RUN chmod +x start.sh RUN apt-get update RUN apt-get install -y nginx=1.14.* -#install curl -RUN apt-get install -y curl - #start mrstub RUN pip install -r requirements.txt -- 2.16.6