Kilo test error : Failed to import test module: heat.tests.test_engine_service

Bug #1471062 reported by Rico Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Kilo
Fix Released
Critical
Rico Lin

Bug Description

when execute $tox -epy27 under stable/Kilo branch

FAIL: unittest2.loader._FailedTest.heat.tests.test_engine_service
tags: worker-3
----------------------------------------------------------------------
Traceback (most recent call last):
ImportError: Failed to import test module: heat.tests.test_engine_service
Traceback (most recent call last):
  File "/home/stack/develop/openstack/heat/heat2/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/stack/develop/openstack/heat/heat2/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "heat/tests/test_engine_service.py", line 1747, in <module>
    class StackServiceTest(common.HeatTestCase):
  File "heat/tests/test_engine_service.py", line 3414, in StackServiceTest
    @mock.patch.object(service_objects.Stack, 'get_all')
AttributeError: 'module' object has no attribute 'Stack'

Rico Lin (rico-lin)
Changed in heat:
assignee: nobody → Rico Lin (rico-lin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/198195

Rico Lin (rico-lin)
Changed in heat:
status: New → In Progress
Changed in heat:
importance: Undecided → High
Changed in heat:
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (stable/kilo)

Reviewed: https://review.openstack.org/198195
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=1b5ff072307d85bbe75d0942fcc23d64d1053c92
Submitter: Jenkins
Branch: stable/kilo

commit 1b5ff072307d85bbe75d0942fcc23d64d1053c92
Author: Rico Lin <email address hidden>
Date: Fri Jul 3 10:44:53 2015 +0800

    Failed to import test module in test

    Change-Id: I62c6c335d6c9600249fa6ea8eb9b5e74ecc11a36
    Closes-Bug: #1471062

tags: added: in-stable-kilo
Rico Lin (rico-lin)
Changed in heat:
status: In Progress → Fix Released
Changed in heat:
status: Fix Released → Fix Committed
no longer affects: heat
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.