summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gundlach <michael.gundlach@rackspace.com>2010-12-02 14:14:31 -0600
committerMichael Gundlach <michael.gundlach@rackspace.com>2010-12-02 14:14:31 -0600
commit84b130f5fcc02964bc38423bb0153db9cc89e520 (patch)
treea9b30359adbc00d9b5eef64a82443e43b1c89042
parent7bcbc2a6e1b907886e03e5254dcd0a726ccdcd9d (diff)
downloadnova-84b130f5fcc02964bc38423bb0153db9cc89e520.tar.gz
nova-84b130f5fcc02964bc38423bb0153db9cc89e520.tar.xz
nova-84b130f5fcc02964bc38423bb0153db9cc89e520.zip
Update tests to use proper id
-rw-r--r--nova/tests/api/openstack/test_servers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/api/openstack/test_servers.py b/nova/tests/api/openstack/test_servers.py
index 2eee4e506..8060995ad 100644
--- a/nova/tests/api/openstack/test_servers.py
+++ b/nova/tests/api/openstack/test_servers.py
@@ -48,8 +48,8 @@ def return_security_group(context, instance_id, security_group_id):
def stub_instance(id, user_id=1):
- return Instance(id=id, state=0, image_id=10, display_name='server%s' % id,
- user_id=user_id)
+ return Instance(id=id+123456, state=0, image_id=10, user_id=user_id,
+ display_name='server%s' % id, internal_id=id)
class ServersTest(unittest.TestCase):