-Subproject commit d233be84b81a56b80356ac0f20a1658c9a93a5dd
+Subproject commit 74a4defcfba1d8d39bf1db6889909afcc1ab1a83
daexim-csit-3node-clustering-basic-only-chlorine,
distribution-csit-managed-chlorine,
jsonrpc-csit-1node-basic-only-chlorine,
-odltools-csit-1node-upstream-all-chlorine,
openflowplugin-csit-1node-cbench-only-chlorine,
openflowplugin-csit-1node-flow-services-all-chlorine,
openflowplugin-csit-1node-perf-bulkomatic-only-chlorine,
daexim-csit-3node-clustering-basic-only-phosphorus,
distribution-csit-managed-phosphorus,
jsonrpc-csit-1node-basic-only-phosphorus,
-odltools-csit-1node-upstream-all-phosphorus,
openflowplugin-csit-1node-cbench-only-phosphorus,
openflowplugin-csit-1node-flow-services-all-phosphorus,
openflowplugin-csit-1node-perf-bulkomatic-only-phosphorus,
daexim-csit-3node-clustering-basic-only-sulfur,
distribution-csit-managed-sulfur,
jsonrpc-csit-1node-basic-only-sulfur,
-odltools-csit-1node-upstream-all-sulfur,
openflowplugin-csit-1node-cbench-only-sulfur,
openflowplugin-csit-1node-flow-services-all-sulfur,
openflowplugin-csit-1node-perf-bulkomatic-only-sulfur,
-#!/bin/sh -l
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2015 The Linux Foundation and others.
##############################################################################
# vim: sw=4 ts=4 sts=4 et ft=sh :
-ROBOT_VENV="/tmp/v/robot"
-echo ROBOT_VENV="${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
-
-# The --system-site-packages parameter allows us to pick up system level
-# installed packages. This allows us to bake matplotlib which takes very long
-# to install into the image.
-python3 -m venv "${ROBOT_VENV}"
# shellcheck disable=SC1090
-. "${ROBOT_VENV}/bin/activate"
+. ~/lf-env.sh
-set -exu
+# Create a virtual environment for robot tests and make sure setuptools & wheel
+# are up-to-date in addition to pip
+lf-activate-venv --python python3 --venv-file "${WORKSPACE}/.robot_venv" \
+ setuptools \
+ wheel
+
+# Save the virtual environment in ROBOT_VENV
+ROBOT_VENV="$(cat "${WORKSPACE}/.robot_venv")"
+echo ROBOT_VENV="${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
-# Make sure pip itself us up-to-date.
-python -m pip install --upgrade pip
+set -exu
echo "Installing Python Requirements"
cat << 'EOF' > "requirements.txt"
netifaces
pyhocon
requests
+robotframework
robotframework-httplibrary
robotframework-requests==0.7.2
robotframework-selenium2library
# Module for backup-restore support library
jsonpatch
-
-# odltools for extra debugging
-odltools
EOF
+
python -m pip install -r requirements.txt
-# Todo: Workaround needs pinned version of odltool to the latest because of the
-# update in the dependency resolver in pip 21.3.
-# Ref: https://github.com/pypa/pip/issues/9215
-pip install odltools==0.1.34
-odltools -V
pip freeze
# yamllint disable-line rule:key-duplicates
<<: *inttest_csit_1node
-- job-template:
- name: "{prefix}{project}-csit-1node-{functionality}-{install}-{stream}"
- id: inttest-csit-1node-custom
- <<: *inttest_csit_common
- # yamllint disable-line rule:key-duplicates
- <<: *inttest_csit_1node
-
- parameters:
- - integration-csit-parameters:
- archive-artifacts: "{archive-artifacts}"
- branch: "{branch}"
- os-cloud: "{os-cloud}"
- # CSIT
- bundle-url: "{bundle-url}"
- repo-url: "{repo-url}"
- robot-options: "{robot-options}"
- # Controller
- controller-scope: "{install}"
- controller-max-mem: "{controller-max-mem}"
- debug-map: "{debug-map}"
- install-features: "{install-features}"
- use-features-boot: "True"
- elasticsearch-attribute: "{elasticsearch-attribute}"
- karaf-based-controller: "{karaf-based-controller}"
- karaf-version: "{karaf-version}"
- - integration-stack-2-type:
- vm_0_count: "1"
- vm_0_flavor: "{odl_system_flavor}"
- vm_0_image: "{odl_system_image}"
- vm_1_count: "{tools_system_count}"
- vm_1_flavor: "{tools_system_flavor}"
- vm_1_image: "{tools_system_image}"
- - integration-distribution-branch:
- branch: "{branch}"
- - integration-distribution-stream:
- stream: "{stream}"
- - integration-script-plan:
- script-plan: "{project}.txt"
- - integration-config-plan:
- config-plan: "{project}.txt"
- - integration-stream-test-plan:
- stream-test-plan: "{project}-{functionality}-{stream}.txt"
- - integration-test-plan:
- test-plan: "{testplan}"
- - integration-test-suites:
- test-suites: "{test-suites}"
- - integration-patch-refspec:
- branch: "master"
- - integration-jdk-version:
- jdkversion: "{jre}"
-
- job-template:
name: "{prefix}{project}-csit-verify-3node-{functionality}"
id: inttest-csit-verify-3node
+++ /dev/null
----
-- project:
- name: odltools-csit
- jobs:
- - inttest-csit-1node-custom
- - inttest-csit-verify-1node
-
- project: odltools
- tools_system_count: 0
- testplan: "{project}-basic.txt"
-
- stream:
- - chlorine:
- branch: "master"
- jre: "openjdk17"
- - sulfur:
- branch: "stable/sulfur"
- jre: "openjdk11"
- - phosphorus:
- branch: "stable/phosphorus"
- jre: "openjdk11"
-
- functionality:
- - "upstream"
- - "gate"
-
- install:
- - all:
- scope: "all"