From cefba4ce8012ad9cafbce87fdb569b41c80d90cd Mon Sep 17 00:00:00 2001 From: Victor Sergeyev Date: Wed, 15 May 2013 17:10:37 +0300 Subject: 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 --- nova/db/sqlalchemy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/db') diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index 1fc273bec..dcc9fb2f8 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -1050,7 +1050,7 @@ def fixed_ip_create(context, values): fixed_ip_ref = models.FixedIp() fixed_ip_ref.update(values) fixed_ip_ref.save() - return fixed_ip_ref['address'] + return fixed_ip_ref @require_context -- cgit