MySQLOpportunisticTestCase has been removed from test_base

Bug #2038473 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
Undecided
Unassigned
zaqar (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: zaqar.tests.unit.storage.sqlalchemy_migration.test_migrations
Traceback (most recent call last):
  File "/usr/lib/python3.11/unittest/loader.py", line 407, in _find_test_path
    module = self._get_module_from_name(name)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/unittest/loader.py", line 350, in _get_module_from_name
    __import__(name)
  File "/build/zaqar-17.0.0/zaqar/tests/unit/storage/sqlalchemy_migration/test_migrations.py", line 172, in <module>
    test_base.MySQLOpportunisticTestCase):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'oslo_db.sqlalchemy.test_base' has no attribute 'MySQLOpportunisticTestCase'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/zaqar/+/897358

Changed in zaqar:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zaqar - 17.0.0-0ubuntu1

---------------
zaqar (17.0.0-0ubuntu1) mantic; urgency=medium

  * New upstream release for OpenStack Bobcat.
  * d/p/switch-to-test-fixtures.patch: Cherry-picked from upstream
    to fix failing test (LP: #2038473).

 -- Corey Bryant <email address hidden> Wed, 04 Oct 2023 09:31:41 -0400

Changed in zaqar (Ubuntu):
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar (master)

Reviewed: https://review.opendev.org/c/openstack/zaqar/+/897358
Committed: https://opendev.org/openstack/zaqar/commit/7b4c359f925dfad8970d9f814182fd878cf3ab48
Submitter: "Zuul (22348)"
Branch: master

commit 7b4c359f925dfad8970d9f814182fd878cf3ab48
Author: Corey Bryant <email address hidden>
Date: Wed Oct 4 15:13:58 2023 -0400

    Switch to MySQLOpportunisticFixture from test_fixtures

    MySQLOpportunisticTestCase was removed in oslo.db 13.0.0[1] and the
    MySQLOpportunisticFixture should instead be used.

    Also fixed bindep so that it works in Debian 12.

    [1] a609333c5482228ee69baab91858e1812909cd55

    Closes-Bug: #2038473
    Change-Id: I56f7e055876204940bc65cc6309c3481b22c1c6c

Changed in zaqar:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/zaqar/+/904279

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zaqar 18.0.0.0rc1

This issue was fixed in the openstack/zaqar 18.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.