summaryrefslogtreecommitdiffstats
path: root/tests/test_contrib_s3_core.py
diff options
context:
space:
mode:
authormathrock <nathanael.i.burton.work@gmail.com>2013-02-10 01:06:29 -0500
committermathrock <nathanael.i.burton.work@gmail.com>2013-02-10 01:06:29 -0500
commit94017094dd64b7ea960d7b4ba16604761b61b8ba (patch)
treea01e270ee0ab7445083e9a674ba1c643506aa0c9 /tests/test_contrib_s3_core.py
parent1f258c4d18d876658a67b66efc42c61f9ba4df05 (diff)
downloadkeystone-94017094dd64b7ea960d7b4ba16604761b61b8ba.tar.gz
keystone-94017094dd64b7ea960d7b4ba16604761b61b8ba.tar.xz
keystone-94017094dd64b7ea960d7b4ba16604761b61b8ba.zip
Fix test_contrib_s3_core unit test
When running the full suite of run_tests.sh the test_contrib_s3_core tests run fine, however when run standalone the tests fail Change-Id: I287d05aaab40f441dca9fdca0a5dc6bee1fd073d Fixes: bug #1120896
Diffstat (limited to 'tests/test_contrib_s3_core.py')
-rw-r--r--tests/test_contrib_s3_core.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/test_contrib_s3_core.py b/tests/test_contrib_s3_core.py
index 42315091..0dceefbf 100644
--- a/tests/test_contrib_s3_core.py
+++ b/tests/test_contrib_s3_core.py
@@ -16,14 +16,20 @@
import uuid
-import unittest2 as unittest
-
from keystone.contrib.s3.core import S3Controller
+from keystone.contrib import ec2
+
from keystone import exception
+from keystone import test
-class S3ContribCore(unittest.TestCase):
+class S3ContribCore(test.TestCase):
def setUp(self):
+ super(S3ContribCore, self).setUp()
+
+ self.load_backends()
+
+ self.ec2_api = ec2.Manager()
self.controller = S3Controller()
def test_good_signature(self):