Browse Source

Use python3 for functional tests

* Run by default with python3.
* Add python2 functinal-api job.

Change-Id: Ic5c3c4ef57284767665d3c5dc92c59671218ebe1
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
changes/26/629126/6
Spyros Trigazis 3 years ago
committed by Spyros Trigazis
parent
commit
9f3719674b
  1. 49
      .zuul.yaml
  2. 6
      playbooks/magnum-functional-base.yaml

49
.zuul.yaml

@ -61,6 +61,46 @@
neutron: 1
tempest: 0
branch_override: default
devstack_python3: 1
- job:
name: magnum-functional-base-python2
parent: legacy-dsvm-base
timeout: 7800
nodeset: legacy-ubuntu-xenial
pre-run: playbooks/pre/prepare-workspace.yaml
run: playbooks/magnum-functional-base.yaml
post-run: playbooks/post/upload-logs.yaml
required-projects:
- openstack-infra/devstack-gate
- openstack/diskimage-builder
- openstack/ironic
- openstack/ironic-lib
- openstack/ironic-python-agent
- openstack/magnum
- openstack/magnum-tempest-plugin
- openstack/pyghmi
- openstack/python-ironicclient
- openstack/python-magnumclient
- openstack/virtualbmc
irrelevant-files:
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^specs/.*$
- ^install-guide/.*$
- ^releasenotes/.*$
- ^dockerfiles/.*$
vars:
ironic: 0
ceilometer: 0
swift: 0
horizon: 0
multinode: 0
neutron: 1
tempest: 0
branch_override: default
devstack_python3: 0
- job:
name: magnum-functional-multinode-base
@ -98,6 +138,7 @@
neutron: 1
tempest: 0
branch_override: default
devstack_python3: 1
- job:
name: magnum-functional-api
@ -105,6 +146,12 @@
vars:
coe: api
- job:
name: magnum-functional-api-python2
parent: magnum-functional-base-python2
vars:
coe: api
- job:
name: magnum-functional-coe
parent: magnum-functional-base
@ -333,6 +380,7 @@
check:
jobs:
- magnum-functional-api
- magnum-functional-api-python2
- magnum-functional-k8s
- magnum-functional-swarm-mode
- openstack-tox-cover:
@ -342,6 +390,7 @@
queue: magnum
jobs:
- magnum-functional-api
- magnum-functional-api-python2
experimental:
jobs:
- magnum-functional-dcos

6
playbooks/magnum-functional-base.yaml

@ -19,6 +19,12 @@
set -x
export PYTHONUNBUFFERED=true
if [ "{{ devstack_python3 }}" -eq 1 ] ; then
export DEVSTACK_GATE_USE_PYTHON3=True
else
export DEVSTACK_GATE_USE_PYTHON3=False
fi
if [ "{{ neutron }}" -eq 1 ] ; then
export DEVSTACK_GATE_NEUTRON=1
fi

Loading…
Cancel
Save