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'
Reviewed: https:/ /review. openstack. org/224966 /git.openstack. org/cgit/ openstack/ barbican/ commit/ ?id=dd932a96d95 54ccd334ef80708 1c20d13a5f67d8
Committed: https:/
Submitter: Jenkins
Branch: master
commit dd932a96d9554cc d334ef807081c20 d13a5f67d8
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: I62c2e8cac3ed22 92f7762bc9d9da6 b3d7b969e28
Closes-bug: #1496826