diff options
| author | Soren Hansen <soren.hansen@rackspace.com> | 2010-10-03 20:22:35 +0200 |
|---|---|---|
| committer | Soren Hansen <soren.hansen@rackspace.com> | 2010-10-03 20:22:35 +0200 |
| commit | 4e45f9472a95207153d32c88df8396c633c67a5d (patch) | |
| tree | 8c78f2be51179b6c0be3b92a7d081d5b44f054e6 | |
| parent | 033c464882c3d74ecd863abde767f37e7ad6a956 (diff) | |
| download | nova-4e45f9472a95207153d32c88df8396c633c67a5d.tar.gz nova-4e45f9472a95207153d32c88df8396c633c67a5d.tar.xz nova-4e45f9472a95207153d32c88df8396c633c67a5d.zip | |
s/APIRequestContext/get_admin_context/ <-- sudo for request contexts.
| -rw-r--r-- | nova/tests/network_unittest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/network_unittest.py b/nova/tests/network_unittest.py index 5370966d2..59b0a36e4 100644 --- a/nova/tests/network_unittest.py +++ b/nova/tests/network_unittest.py @@ -56,8 +56,8 @@ class NetworkTestCase(test.TrialTestCase): 'netuser', name)) # create the necessary network data for the project - user_context = context.APIRequestContext(project=self.projects[i], - user=self.user) + user_context = context.get_admin_context(user=self.user) + self.network.set_network_host(user_context, self.projects[i].id) instance_ref = self._create_instance(0) self.instance_id = instance_ref['id'] |
