summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Walker (Daviey) <DaveWalker@ubuntu.com>2011-08-06 20:18:35 +0100
committerDave Walker (Daviey) <DaveWalker@ubuntu.com>2011-08-06 20:18:35 +0100
commit82eb299fd0fa6601d4704836ed7e76369f086ffc (patch)
tree9c85231ea13cb8c860d75f7b3b026f03e3fe80ab
parent43548ac4b2bf93dd6e6b1d0cbbc340ae005b4dbf (diff)
downloadnova-82eb299fd0fa6601d4704836ed7e76369f086ffc.tar.gz
nova-82eb299fd0fa6601d4704836ed7e76369f086ffc.tar.xz
nova-82eb299fd0fa6601d4704836ed7e76369f086ffc.zip
simplified test cases further, thanks to trunk changes
-rw-r--r--nova/tests/test_api.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/nova/tests/test_api.py b/nova/tests/test_api.py
index 3af1563fa..533447362 100644
--- a/nova/tests/test_api.py
+++ b/nova/tests/test_api.py
@@ -342,12 +342,6 @@ class ApiEc2TestCase(test.TestCase):
spaces, dashes, and underscores. """
self.expect_http()
self.mox.ReplayAll()
- user = self.manager.create_user('fake', 'fake', 'fake', admin=True)
- project = self.manager.create_project('fake', 'fake', 'fake')
-
- # At the moment, you need both of these to actually be netadmin
- self.manager.add_role('fake', 'netadmin')
- project.add_role('fake', 'netadmin')
# Test block group_name of non alphanumeric characters, spaces,
# dashes, and underscores.
@@ -361,12 +355,6 @@ class ApiEc2TestCase(test.TestCase):
API Spec states that the length should not exceed 255 chars """
self.expect_http()
self.mox.ReplayAll()
- user = self.manager.create_user('fake', 'fake', 'fake', admin=True)
- project = self.manager.create_project('fake', 'fake', 'fake')
-
- # At the moment, you need both of these to actually be netadmin
- self.manager.add_role('fake', 'netadmin')
- project.add_role('fake', 'netadmin')
# Test block group_name > 255 chars
security_group_name = "".join(random.choice("poiuytrewqasdfghjklmnbvc")