Please move away from tempest-lib as it is deprecated

Bug #1733629 reported by Corey Bryant
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-sfc
Fix Released
Undecided
Bernard Cafarelli

Bug Description

Hello,

Can you please move away from tempest-lib to tempest?

tempest-lib was deprecated a year and a half ago:
https://github.com/openstack/tempest-lib/commit/781aec763e6f46f070c960e5e19a4c0d5be1ecb8

tempest-lib will no longer work with the new oslotest version:

======================================================================
FAIL: unittest2.loader._FailedTest.tempest_lib.tests.test_rest_client
unittest2.loader._FailedTest.tempest_lib.tests.test_rest_client
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: tempest_lib.tests.test_rest_client
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "tempest_lib/tests/test_rest_client.py", line 20, in <module>
    from oslotest import mockpatch
ImportError: cannot import name mockpatch

Thanks,
Corey

Revision history for this message
Corey Bryant (corey.bryant) wrote :

It looks like perhaps only test-requirements.txt needs to move from tempest-lib to tempest.

Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

Ack, I will take a look into it

Changed in networking-sfc:
assignee: nobody → Bernard Cafarelli (bcafarel)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-sfc (master)

Fix proposed to branch: master
Review: https://review.openstack.org/526119

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-sfc (master)

Reviewed: https://review.openstack.org/526119
Committed: https://git.openstack.org/cgit/openstack/networking-sfc/commit/?id=42b31f34e88249274cf4835bf875e66343b21dca
Submitter: Zuul
Branch: master

commit 42b31f34e88249274cf4835bf875e66343b21dca
Author: Bernard Cafarelli <email address hidden>
Date: Wed Dec 6 17:28:04 2017 +0100

    test requirements: move from tempest-lib to tempest

    Tests already used tempest.lib, so we only need to update requirements

    tempest minimal version is based on current global requirements

    Change-Id: I147685d0438838dc710b2492d9c2e561781aa773
    Closes-bug: #1733629

Changed in networking-sfc:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-sfc 6.0.0.0b3

This issue was fixed in the openstack/networking-sfc 6.0.0.0b3 development milestone.

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.