3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Author: Felipe Vicens (felipe.vicens@atos.net) ATOS
20 # Installing robot dependencies
21 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install git software-properties-common \
22 make python3 debhelper python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev cargo rustc
24 RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
26 RUN python3 -m pip install -U pip
28 RUN python3 -m pip install charm-tools haikunator python-openstackclient requests robotframework \
29 robotframework-seleniumlibrary robotframework-requests robotframework-jsonlibrary robotframework-sshlibrary \
30 setuptools setuptools-rust git+https://osm.etsi.org/gerrit/osm/IM.git \
31 git+https://osm.etsi.org/gerrit/osm/osmclient.git
33 # Preparing working environment
34 WORKDIR /robot-systest
35 RUN git clone --branch sol006 https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git --recurse-submodules /robot-systest/osm-packages
37 # Copy robot folder and charm.sh
38 COPY robot-systest /robot-systest
39 COPY charm.sh /usr/sbin/charm
41 # Copy conformance tests data
42 COPY conformance-tests /robot-systest/conformance-tests
44 # Folder where Robot tests are stored
45 ENV ROBOT_DEVOPS_FOLDER=/robot-systest
47 # Folder to save alternative DUT environments (optional)
48 ENV ENVIRONMENTS_FOLDER=environments
50 # Folder where all required packages are stored
51 ENV PACKAGES_FOLDER=/robot-systest/osm-packages
53 # Folder where test results should be exported
54 ENV ROBOT_REPORT_FOLDER=/robot-systest/reports
57 ENV K8S_CREDENTIALS=/root/.kube/config
60 ENV OSM_RSA_FILE=/root/osm_id_rsa
65 ENTRYPOINT [ "/robot-systest/run_test.sh"]