saharaclient causes cinder_tests to fail

Bug #1340429 reported by Julie Gravel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Chad Roberts

Bug Description

I tried to run cinder_tests individually, using this command: ./run_tests.sh openstack_dashboard.test.api_tests.cinder_tests.
Looks like the __init__.py file under openstack_dashboard/api is missing the declarations for sahara. Note that I didn't see any error messages when I ran the full ./run_tests.sh. I only see the errors when I ran cinder_tests individually.

The tests failed with the following messages:

======================================================================
ERROR: test_volume_list (openstack_dashboard.test.api_tests.cinder_tests.CinderApiTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stack/horizon/openstack_dashboard/test/helpers.py", line 266, in setUp
    self._original_saharaclient = api.sahara.client
AttributeError: 'module' object has no attribute 'sahara'

======================================================================
ERROR: test_volume_snapshot_list (openstack_dashboard.test.api_tests.cinder_tests.CinderApiTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stack/horizon/openstack_dashboard/test/helpers.py", line 266, in setUp
    self._original_saharaclient = api.sahara.client
AttributeError: 'module' object has no attribute 'sahara'

======================================================================
ERROR: test_volume_snapshot_list_no_volume_configured (openstack_dashboard.test.api_tests.cinder_tests.CinderApiTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stack/horizon/openstack_dashboard/test/helpers.py", line 266, in setUp
    self._original_saharaclient = api.sahara.client
AttributeError: 'module' object has no attribute 'sahara'

Chad Roberts (croberts)
Changed in horizon:
assignee: nobody → Chad Roberts (croberts)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/106369
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=6ebab02c9408ade4c4cc0f11f0f89eb82a6e865f
Submitter: Jenkins
Branch: master

commit 6ebab02c9408ade4c4cc0f11f0f89eb82a6e865f
Author: Chad Roberts <email address hidden>
Date: Fri Jul 11 09:06:47 2014 -0400

    Fixing subproject test runs

    The sahara declaration was missing in
    openstack_dashboard/api/__init__.py. This change adds the import and
    adds 'sahara' to __all__ which should fix the test runs.

    Change-Id: I7ba8b17aa4dc95d17fe83a2427a058d67e8e7afe
    Closes-Bug: bug 1340429

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-2 → 2014.2
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.