Add a tempest test job with sqlalchemy 2.x

Now that nova removed the use of "migrate" we can add a tempest test job
with sqlalchemy 2.x.

Change-Id: Ibc6b1a67a14c8a83c1f679a9e3302e9c2eb25983
This commit is contained in:
Michael Johnson 2023-07-18 16:25:51 +00:00
parent b77934beb7
commit 9c6ed29135
2 changed files with 18 additions and 0 deletions

View File

@ -81,6 +81,19 @@
parent: designate-bind9
nodeset: devstack-single-node-centos-9-stream
- job:
name: designate-bind9-sqlalchemy-2x
parent: designate-bind9
description: |
Run tempest tests with main branch of SQLAlchemy, alembic and oslo.db.
# The job only tests the latest and shouldn't be run on the stable branches
branches: ^(?!stable)
required-projects:
- name: openstack/oslo.db
vars:
devstack_localrc:
USE_SQLALCHEMY_LATEST: true
- job:
name: designate-pdns4
post-run: playbooks/designate-pdns4/post.yaml
@ -231,12 +244,14 @@
jobs:
- neutron-tempest-plugin-designate-scenario
- designate-tox-py310-with-sqlalchemy-2x
- designate-bind9-sqlalchemy-2x
- designate-tox-dnspython-latest:
voting: false
gate:
jobs:
- neutron-tempest-plugin-designate-scenario
- designate-tox-py310-with-sqlalchemy-2x
- designate-bind9-sqlalchemy-2x
experimental:
jobs:
- designate-pdns4-postgres

View File

@ -211,6 +211,9 @@ function init_designate {
# (Re)create designate database
recreate_database designate utf8
if [[ "$USE_SQLALCHEMY_LATEST" == "True" ]]; then
pip3 install --upgrade alembic sqlalchemy
fi
# Init and migrate designate database
$DESIGNATE_BIN_DIR/designate-manage database sync