diff options
author | Vincent Mahe <v.mahe@orange.com> | 2020-05-25 18:32:58 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-08-05 13:21:12 +0200 |
commit | 32eb7687bf7b8440aa87805480789ef61ae65ec9 (patch) | |
tree | 82b6e144b87fe694c0d895541d9cac20a983e51c /docker | |
parent | 005a5ad5ec6f29e6777ce69cc66524d4cc34517d (diff) |
Add MTS driver
It creates a new container xtesting-mts to avoid increase core
container size.
Signed-off-by: Vincent Mahe <v.mahe@orange.com>
Change-Id: I59544023e1235747e140a442815778a133bf6acf
Diffstat (limited to 'docker')
-rw-r--r-- | docker/core/Dockerfile (renamed from docker/Dockerfile) | 4 | ||||
-rw-r--r-- | docker/core/testcases.yaml (renamed from docker/testcases.yaml) | 0 | ||||
-rw-r--r-- | docker/mts/Dockerfile | 24 | ||||
-rw-r--r-- | docker/mts/mts-installer.properties | 2 | ||||
-rw-r--r-- | docker/mts/testcases.yaml | 26 |
5 files changed, 54 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/core/Dockerfile index a5e3801e..58389734 100644 --- a/docker/Dockerfile +++ b/docker/core/Dockerfile @@ -3,9 +3,9 @@ FROM alpine:3.12 ARG BRANCH=master ARG OPENSTACK_TAG=master -RUN apk --no-cache add --update python3 py3-pip bash git mailcap && \ +RUN apk --no-cache add --update python3 py3-pip bash git mailcap libxml2 libxslt && \ apk --no-cache add --virtual .build-deps --update \ - python3-dev build-base && \ + python3-dev build-base libxml2-dev libxslt-dev && \ git init /src/functest-xtesting && \ (cd /src/functest-xtesting && \ git fetch --tags https://gerrit.opnfv.org/gerrit/functest-xtesting $BRANCH && \ diff --git a/docker/testcases.yaml b/docker/core/testcases.yaml index 7708a86c..7708a86c 100644 --- a/docker/testcases.yaml +++ b/docker/core/testcases.yaml diff --git a/docker/mts/Dockerfile b/docker/mts/Dockerfile new file mode 100644 index 00000000..597e4f4b --- /dev/null +++ b/docker/mts/Dockerfile @@ -0,0 +1,24 @@ +FROM opnfv/xtesting + +ARG MTS_TAG=6.6.3 +ARG APP_FOLDER=/opt/mts +ARG MAVEN_OPTS= +ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk +ENV NGN_JAVA_HOME=${JAVA_HOME}/bin +ENV MAVEN_OPTS=$MAVEN_OPTS + +COPY mts-installer.properties /src/mts-installer.properties +RUN apk --no-cache add --update openjdk8-jre lksctp-tools libpcap && \ + apk --no-cache add --virtual .build-deps --update \ + libpcap-dev openjdk8 maven git && \ + git init /src/git-mts && \ + (cd /src/git-mts && \ + git fetch --tags https://github.com/ericsson-mts/mts $MTS_TAG && \ + git checkout FETCH_HEAD && \ + echo ${NGN_JAVA_HOME} > src/main/bin/java_home.release && \ + mvn versions:set -DnewVersion=${MTS_TAG} && mvn package && mvn install && \ + java -jar target/mts-${MTS_TAG}-installer.jar -options /src/mts-installer.properties) && \ + rm -rf /root/.m2/ ${APP_FOLDER}/tutorial /src/mts-installer.properties /src/git-mts && \ + apk del .build-deps +COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml +CMD ["run_tests", "-t", "all"] diff --git a/docker/mts/mts-installer.properties b/docker/mts/mts-installer.properties new file mode 100644 index 00000000..fe4e030f --- /dev/null +++ b/docker/mts/mts-installer.properties @@ -0,0 +1,2 @@ +INSTALL_PATH=/opt/mts +java_memory=1024 diff --git a/docker/mts/testcases.yaml b/docker/mts/testcases.yaml new file mode 100644 index 00000000..40bb46d8 --- /dev/null +++ b/docker/mts/testcases.yaml @@ -0,0 +1,26 @@ +--- +tiers: + - + name: samples + order: 1 + description: '' + testcases: + - + case_name: seventh + project_name: xtesting + enabled: true + criteria: 100 + blocking: true + clean_flag: false + description: 'Some MTS tests' + run: + name: 'mts' + args: + test_file: /usr/lib/python3.8/site-packages/xtesting/samples/mts/test.xml + testcases: + - Pause_5_sec + max_duration: 2 # in seconds + log_level: INFO + store_method: FILE + java_memory: 2048 + console: true |