diff options
author | DJ Johnstone <dj.johnstone@rackspace.com> | 2013-03-06 15:49:38 -0600 |
---|---|---|
committer | DJ Johnstone <dj.johnstone@rackspace.com> | 2013-03-08 12:18:27 -0600 |
commit | b22056082d84915652f8ac5248e4cd5eb054d949 (patch) | |
tree | ff611a189ad66517a0f4fb456bd1854035934fa2 /run_tests.py | |
parent | dc0a82131d880b3ee3d20c5dd33bbf0d6970a83e (diff) | |
download | trove-b22056082d84915652f8ac5248e4cd5eb054d949.tar.gz |
Test no accept headers
Created a test to validate that the api still responds correctly without accept headers being passed.
Change-Id: Ia6e145d857eed7c20b1a048ceaf41e2b301c1ea1
Implements: blueprint no-accept-header-validation
Diffstat (limited to 'run_tests.py')
-rw-r--r-- | run_tests.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py index 7e7fdbe7..70ecd046 100644 --- a/run_tests.py +++ b/run_tests.py @@ -2,6 +2,7 @@ import gettext import os import urllib import sys +import traceback from reddwarf.common import cfg from reddwarf.openstack.common import log as logging @@ -111,6 +112,7 @@ if __name__ == "__main__": # Initialize the test configuration. CONFIG.load_from_file('etc/tests/localhost.test.conf') + from reddwarf.tests.api import header from reddwarf.tests.api import limits from reddwarf.tests.api import flavors from reddwarf.tests.api import versions @@ -128,7 +130,9 @@ if __name__ == "__main__": from reddwarf.tests.api.mgmt import instances from reddwarf.tests.api.mgmt import instances_actions from reddwarf.tests.api.mgmt import storage - except Exception, e: - print "Run tests failed %s" % e.msg + except Exception as e: + print("Run tests failed: %s" % e) + traceback.print_exc() + raise proboscis.TestProgram().run_and_exit() |