Traceback when attempting to run functional test directly

Bug #1496826 reported by Dave McCowan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Low
Dave McCowan

Bug Description

It is nice to have the choice to run functional tests both through tox and manually.

This used to work, but now throws an attribute error if certain environment variables are not set.

ERROR: functionaltests.api.v1.functional.test_quotas.QuotasTestCase.test_get_quotas_with_defaults
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/Users/dmccowan/barbican/functionaltests/api/v1/functional/test_quotas.py", line 38, in setUp
    super(QuotasTestCase, self).setUp()
  File "/Users/dmccowan/barbican/functionaltests/api/base.py", line 56, in setUp
    if (os.environ.get('OS_STDOUT_CAPTURE').lower() == 'true' or
AttributeError: 'NoneType' object has no attribute 'lower'

Changed in barbican:
status: New → In Progress
assignee: nobody → Dave McCowan (dave-mccowan)
Changed in barbican:
importance: Undecided → Medium
milestone: none → liberty-rc1
milestone: liberty-rc1 → none
Changed in barbican:
importance: Medium → Critical
importance: Critical → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/224966
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=dd932a96d9554ccd334ef807081c20d13a5f67d8
Submitter: Jenkins
Branch: master

commit dd932a96d9554ccd334ef807081c20d13a5f67d8
Author: Dave McCowan <email address hidden>
Date: Thu Sep 17 22:37:02 2015 -0400

    Handle case of no logging environment variables

    When running functional tests manually, the expected environment variables
    typically set by tox may not be set. This patch avoids an exception and
    lets the test run with the defaults.

    Change-Id: I62c2e8cac3ed2292f7762bc9d9da6b3d7b969e28
    Closes-bug: #1496826

Changed in barbican:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in barbican:
milestone: none → liberty-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: liberty-rc1 → 1.0.0
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.