neutron-lib unit tests need update for sqlalchemy 2.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Brian Haley |
Bug Description
Some of the neutron-lib unit tests do not support sqlalchemy 2.0.
Thomas Goirand ran them on a Debian system and this test file fails:
neutron_
There are 8 failures, all basically the same:
105s FAIL: neutron_
105s neutron_
105s -------
105s testtools.
105s File "/tmp/autopkgte
105s meta = sa.MetaData(
105s ^^^^^^^
105s TypeError: MetaData.__init__() got an unexpected keyword argument 'bind'
From looking at the functional tests and Nova code, should be a straightforward fix.
We should also look at creating a test job that both tests sqlalchemy 2.0 and neutron-lib main/master branches so we don't regress.
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron- lib/+/900557
Review: https:/