Re-enable unit tests and fix CI jobs

1) Revert "Remove tests for master branch", commit
d149f30a4b.

2) Use test-requirements.txt from stable/queens to select the
stable/queens branches of python-opflex-agent and
python-group-based-policy-client, and the noiro-lite branch of
acitoolkit.

3) Use pushd/popd in tox_install.sh to restore initial CWD after
switching requirements branch.

Change-Id: I39895732aac0bdfaee95274cbcb262d6744faeb1
This commit is contained in:
Robert Kukura 2019-04-11 16:09:11 -04:00
parent 5a9991f18f
commit 9e2cb1fc9d
6 changed files with 19 additions and 25 deletions

View File

@ -1,3 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./gbpservice/neutron/tests/dummy}
test_path=${OS_TEST_PATH:-./gbpservice/neutron/tests/unit}
top_dir=./

View File

@ -1,21 +0,0 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import testtools
class TestDummy(testtools.TestCase):
def test_dummy(self):
pass

View File

@ -2,9 +2,20 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-e git+https://git.openstack.org/openstack/neutron.git@stable/queens#egg=neutron
-e git+https://github.com/noironetworks/apicapi.git@master#egg=apicapi
-e git+https://github.com/noironetworks/python-opflex-agent.git@stable/queens#egg=python-opflexagent-agent
-e git+https://github.com/openstack/vmware-nsx.git@stable/queens#egg=vmware_nsx
-e git+https://github.com/openstack/vmware-nsxlib.git@stable/queens#egg=vmware_nsxlib
-e git+https://git.openstack.org/openstack/python-group-based-policy-client@stable/queens#egg=gbpclient
-e git+https://git.openstack.org/openstack/neutron-vpnaas@stable/queens#egg=neutron-vpnaas
-e git+https://git.openstack.org/openstack/neutron-lbaas@stable/queens#egg=neutron-lbaas
-e git+https://git.openstack.org/openstack/neutron-fwaas@stable/queens#egg=neutron-fwaas
-e git+https://git.openstack.org/openstack/networking-sfc@stable/queens#egg=networking-sfc
hacking<0.12,>=0.11.0 # Apache-2.0
cliff>=2.8.0,!=2.9.0 # Apache-2.0
@ -37,3 +48,5 @@ python-keystoneclient
# the aci-integration-module repo, it may be necessary to pin to a
# working commit. Also, specific branches in indirect dependencies
# seem to be ignored, so we list them here too.
-e git+https://github.com/noironetworks/acitoolkit.git@noiro-lite#egg=acitoolkit
-e git+https://github.com/noironetworks/aci-integration-module.git@master#egg=aci-integration-module

View File

@ -7,8 +7,9 @@
DIR=/home/zuul/src/git.openstack.org/openstack/requirements
if [ -d "$DIR" ]; then
cd $DIR
pushd $DIR
git checkout stable/queens
popd
fi
set -e

View File

@ -9,7 +9,7 @@ setenv = VIRTUAL_ENV={envdir}
passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
usedevelop = True
install_command =
pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens} {opts} {packages}
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens} {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = sh
@ -44,6 +44,7 @@ sitepackages = True
[testenv:pep8]
commands =
flake8
gbp-db-manage check_migration
[testenv:i18n]
commands =
@ -96,4 +97,4 @@ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,to
[hacking]
import_exceptions = neutron.openstack.common.gettextutils
#local-check-factory = neutron_lib.hacking.checks.factory
local-check-factory = neutron_lib.hacking.checks.factory