
In order to make manila-ui python3 compatible, this patch set: - replace dict.iteritems() with six.iteritems(dict) - replace print msg with print(msg) - replace dict.viewkeys() with error.keys() - python 3 getting the keys() of a dict returns a dict_keys object instead of a list and hence sort() fails - in python 2.x calling keys makes a copy of the key that you can iterate over while modifying the dict. This doesn't work in python 3.x because keys returns an iterator instead of a list. Another way is to use list to force a copy of the keys to be made. - use getattr instead of relying on overriden __getattr__ in the client to get params that not neccesarily need to be available (share_group_id and supports_share_migration) - refactor ShareGroupTypeTests Plus, enable py35 and py35dj20 jobs in tox and drop old oslo-incubator files (install_venv.py) Also add openstack-tox-py35 job to check python3 env. openstack-tox-py35 should be defined in project-config later but it is added to check python3 UT status. Change-Id: I30582184904dc19e9cb4ca171b1fd2d161e09c48
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
- project:
|
|
check:
|
|
jobs:
|
|
- manila-ui-dsvm:
|
|
voting: false
|
|
- openstack-tox-lower-constraints:
|
|
required-projects:
|
|
openstack/horizon
|
|
# TODO(amotoki): Drop this after project-config patch defines it.
|
|
- openstack-tox-py35:
|
|
required-projects:
|
|
openstack/horizon
|
|
gate:
|
|
jobs:
|
|
- openstack-tox-lower-constraints:
|
|
required-projects:
|
|
openstack/horizon
|
|
# TODO(amotoki): Drop this after project-config patch defines it.
|
|
- openstack-tox-py35:
|
|
required-projects:
|
|
openstack/horizon
|
|
|
|
- job:
|
|
name: manila-ui-dsvm
|
|
parent: legacy-dsvm-base
|
|
run: playbooks/legacy/manila-ui-dsvm/run.yaml
|
|
post-run: playbooks/legacy/manila-ui-dsvm/post.yaml
|
|
timeout: 6000
|
|
required-projects:
|
|
- openstack-infra/devstack-gate
|
|
- openstack/manila
|
|
- openstack/manila-ui
|
|
- openstack/python-manilaclient
|
|
- openstack/manila-tempest-plugin
|