diff options
| author | Victor Sergeyev <vsergeyev@mirantis.com> | 2013-05-15 17:10:37 +0300 |
|---|---|---|
| committer | Victor Sergeyev <vsergeyev@mirantis.com> | 2013-05-15 18:18:42 +0300 |
| commit | cefba4ce8012ad9cafbce87fdb569b41c80d90cd (patch) | |
| tree | b367f1ef4e2a0135979838e67dc1b89af482bdd6 /nova/db | |
| parent | af7823f5e7d4533f35841936a6c6fe1cdece6233 (diff) | |
| download | nova-cefba4ce8012ad9cafbce87fdb569b41c80d90cd.tar.gz nova-cefba4ce8012ad9cafbce87fdb569b41c80d90cd.tar.xz nova-cefba4ce8012ad9cafbce87fdb569b41c80d90cd.zip | |
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/db')
| -rw-r--r-- | nova/db/sqlalchemy/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
