Chore: Turn on SBOM for USECASEUI
[ci-management.git] / jjb / integration / include-raw-integration-install-robotframework-py3.sh
1 #!/bin/bash -l
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2022 The Linux Foundation and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11 # vim: sw=4 ts=4 sts=4 et ft=sh :
12
13 set -eu pipefail
14
15 # shellcheck disable=SC1090
16 . ~/lf-env.sh
17
18 # Create a virtual environment for robot tests and make sure setuptools & wheel
19 # are up-to-date in addition to pip
20 lf-activate-venv --python python3 --venv-file "${WORKSPACE}/.robot3_venv" \
21     setuptools \
22     wheel
23
24 # Save the virtual environment in ROBOT_VENV
25 ROBOT3_VENV="$(cat "${WORKSPACE}/.robot3_venv")"
26 echo ROBOT3_VENV="${ROBOT3_VENV}" >> "${WORKSPACE}/env.properties"
27
28 set -exu
29
30 echo "Installing Python Requirements"
31 cat << 'EOF' > "requirements.txt"
32 paramiko
33 six
34 urllib3
35 docker-py
36 ipaddr
37 netaddr
38 netifaces
39 pyhocon
40 requests
41 selenium<4.6.0,>=4.0.0
42 robotframework
43 robotframework-httplibrary
44 robotframework-requests==0.9.3
45 robotframework-selenium2library
46 robotframework-sshlibrary
47 scapy
48 # Module jsonpath is needed by current AAA idmlite suite.
49 jsonpath-rw
50 # Modules for longevity framework robot library
51 elasticsearch<8.0.0,>=7.0.0
52 elasticsearch-dsl
53 # Module for pyangbind used by lispflowmapping project
54 pyangbind
55 # Module for iso8601 datetime format
56 isodate
57 # Module for TemplatedRequests.robot library
58 jmespath
59 # Module for backup-restore support library
60 jsonpatch
61 pbr
62 deepdiff
63 dnspython
64 future
65 jinja2
66 kafka-python
67 # Protobuf requires Python >=3.7
68 protobuf
69 pyyaml
70 robotlibcore-temp
71 more-itertools
72 xvfbwrapper
73 PyVirtualDisplay
74 # Additional package dependencies for ONAP project
75 # odltools for extra debugging
76 # Generates warning:
77 # ERROR: odltools 0.1.34 has requirement requests~=2.19.1,
78 #  but you'll have requests 2.28.1 which is incompatible.
79 odltools
80 EOF
81
82 python3 -m pip install -r requirements.txt
83 python3 -m pip freeze
84 python3 -m robot.run --version || :