aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2023-04-14 15:19:17 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2023-04-14 16:07:33 +0200
commit781fc313c1c59018edb892ff0423963191781592 (patch)
tree41f51b9fa4b94ea92009ffe0b02aec358ab76d46 /docker
parent12732b13c55eb91f32ed65f1d8a1f72b4aa2c534 (diff)
Remove MTS from Xtesting
The MTS drivers is unmaintained and they are lots of security issues in its dependencies. Change-Id: I397e22c8868204b8d52a8ac35906278b5e530961 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/mts/Dockerfile27
-rw-r--r--docker/mts/mts-installer.properties2
-rw-r--r--docker/mts/testcases.yaml25
3 files changed, 0 insertions, 54 deletions
diff --git a/docker/mts/Dockerfile b/docker/mts/Dockerfile
deleted file mode 100644
index 502cf754..00000000
--- a/docker/mts/Dockerfile
+++ /dev/null
@@ -1,27 +0,0 @@
-FROM opnfv/xtesting
-
-ARG MTS_TAG=6.6.21
-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
-
-USER root
-COPY mts-installer.properties /src/mts-installer.properties
-RUN case $(uname -m) in x86_64) \
- apk --no-cache add --update openjdk8-jre && \
- apk --no-cache add --virtual .build-deps --update \
- 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;; esac
-COPY testcases.yaml /usr/lib/python3.10/site-packages/xtesting/ci/testcases.yaml
-USER xtesting
-CMD ["run_tests", "-t", "all"]
diff --git a/docker/mts/mts-installer.properties b/docker/mts/mts-installer.properties
deleted file mode 100644
index fe4e030f..00000000
--- a/docker/mts/mts-installer.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-INSTALL_PATH=/opt/mts
-java_memory=1024
diff --git a/docker/mts/testcases.yaml b/docker/mts/testcases.yaml
deleted file mode 100644
index 4ebeeabb..00000000
--- a/docker/mts/testcases.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
----
-tiers:
- -
- name: samples
- 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.10/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