summaryrefslogtreecommitdiff
path: root/nova/tests/db/fakes.py
diff options
context:
space:
mode:
authorVictor Sergeyev <vsergeyev@mirantis.com>2013-05-15 17:10:37 +0300
committerVictor Sergeyev <vsergeyev@mirantis.com>2013-05-15 18:18:42 +0300
commitcefba4ce8012ad9cafbce87fdb569b41c80d90cd (patch)
treeb367f1ef4e2a0135979838e67dc1b89af482bdd6 /nova/tests/db/fakes.py
parentaf7823f5e7d4533f35841936a6c6fe1cdece6233 (diff)
downloadnova-cefba4ce8012ad9cafbce87fdb569b41c80d90cd.tar.gz
Add missing tests for db.fixed_ip_*(). functions.
Added new tests for fixed_ip*() functions. Function fixed_ip_create() should return FixedIp instance rather than FixedIp.address, because it is used in a tests later. Fix calls of fixed_ip_create() respectively. blueprint test-db-api Change-Id: Id5e9d4486605bde9d9fd1e631d868603a7a7c604
Diffstat (limited to 'nova/tests/db/fakes.py')
-rw-r--r--nova/tests/db/fakes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/db/fakes.py b/nova/tests/db/fakes.py
index 5556b6eb53..e64498937f 100644
--- a/nova/tests/db/fakes.py
+++ b/nova/tests/db/fakes.py
@@ -187,7 +187,7 @@ def stub_out_db_network_api(stubs):
ip['id'] = max([i['id'] for i in fixed_ips] or [-1]) + 1
for key in values:
ip[key] = values[key]
- return ip['address']
+ return ip
def fake_fixed_ip_disassociate(context, address):
ips = filter(lambda i: i['address'] == address,