Error while running tox

Bug #1358120 reported by Nikunj Aggarwal
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Gary W. Smith

Bug Description

When i am running tox tests, i am getting following error:

Exception while obtaining flavors list
Traceback (most recent call last):
  File "/root/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 56, in flavors
    return api.trove.flavor_list(request)
  File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
    return mock_method(*params, **named_params)
  File "/root/horizon/.tox/py27dj15/local/lib/python2.7/site-packages/mox.py", line 1010, in __call__
    raise expected_method._exception
ClientException: Expected failure.
Problem instantiating action class.
Traceback (most recent call last):
  File "/root/horizon/horizon/workflows/base.py", line 368, in action
    context)
  File "/root/horizon/horizon/workflows/base.py", line 138, in __init__
    self._populate_choices(request, context)
  File "/root/horizon/horizon/workflows/base.py", line 151, in _populate_choices
    bound_field.choices = meth(request, context)
  File "/root/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 65, in populate_flavor_choices
    flavor_list = [(f.id, "%s" % f.name) for f in self.flavors(request)]
  File "/root/horizon/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/root/horizon/openstack_dashboard/dashboards/project/databases/workflows/create_instance.py", line 62, in flavors
    redirect=redirect)
  File "/root/horizon/horizon/exceptions.py", line 326, in handle
    raise Http302(redirect)
Http302

___________________________________________________________________summary___________________________________________________________________
ERROR: py26: InterpreterNotFound: python2.6
  py27: commands succeeded
ERROR: py27dj14: commands failed
ERROR: py27dj15: commands failed
  pep8: commands succeeded
ERROR: py33: InterpreterNotFound: python3.3

Tags: unittest
description: updated
Changed in horizon:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Gary W. Smith (gary-w-smith)
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/115368

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Turns out that this was just extra logging that needed to be suppressed rather than an unmocked function

Changed in horizon:
importance: High → Medium
Changed in horizon:
status: Confirmed → In Progress
David Lyle (david-lyle)
Changed in horizon:
milestone: none → juno-3
Akihiro Motoki (amotoki)
tags: added: unittest
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/115368
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=029121616f36f8fb8e5abae33f0635cae6d2ff9c
Submitter: Jenkins
Branch: master

commit 029121616f36f8fb8e5abae33f0635cae6d2ff9c
Author: Gary W. Smith <email address hidden>
Date: Mon Aug 18 21:30:16 2014 -0700

    Suppress expected exception messages in unit test

    Closes-Bug: 1358120
    Change-Id: Id3683d49d45c0077b93fd2241ebe11b1225c4ab2

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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