nova/nova/tests/objects
Dan Smith 526853ea20 Fix FloatingIP.save() passing FixedIP object to sqlalchemy
This prevents the FloatingIP.save() method from passing the
calculated FixedIP object to the sqlalchemy floating_ip_update()
function, which would expect it to be an SA object. It also
aborts any attempt to save the object with a modified fixed_ip_id
linkage, as associate/disassociate should be used for that.

This also fixes a bug where FloatingIP expects the result of
floating_ip_update() to be a FloatingIp SA object.

Added missing import to allow tests to work in stable/icehouse.

Change-Id: I065caedf4d81c8583a3b390934a1d403cf2e87bd
Closes-bug: #1334164
(cherry picked from commit 48de2895b9)
2014-08-07 23:48:15 -04:00
..
__init__.py Add base object model 2013-05-29 10:46:52 -07:00
test_aggregate.py Prevent caller from specifying id during Aggregate.create() 2014-02-27 08:17:58 +00:00
test_block_device.py Make swap_volume code path use BDM objects 2014-03-06 12:11:29 +01:00
test_compute_node.py Fix compute_node stats 2014-03-09 08:33:54 +00:00
test_dns_domain.py Replace assertEqual(None, *) with assertIsNone in tests 2014-02-16 17:31:28 +08:00
test_external_event.py Add external_instance_event() method to compute manager 2014-03-06 07:40:41 -08:00
test_fields.py Refactor CIDR field to use netaddr.IPNetwork 2014-01-14 11:05:29 -08:00
test_fixed_ip.py Add get_by_network() to FixedIPList 2014-03-12 06:51:14 -07:00
test_flavor.py Add Flavor object 2013-12-05 07:29:36 -08:00
test_floating_ip.py Fix FloatingIP.save() passing FixedIP object to sqlalchemy 2014-08-07 23:48:15 -04:00
test_instance.py Make NovaObject report changed-ness of its children 2014-03-17 16:59:41 +00:00
test_instance_action.py Add pack_action_start/finish helper to InstanceAction object 2014-02-26 09:19:45 +08:00
test_instance_fault.py Utilizes assertIsNone and assertIsNotNone - tests/etc 2013-10-31 06:06:02 +09:00
test_instance_group.py Instance groups: add method get_by_hint 2014-07-07 09:45:19 -04:00
test_instance_info_cache.py Prevent Instance.refresh() from returning a new info cache 2014-01-06 08:22:37 -08:00
test_keypair.py Prevent caller from specifying id during KeyPair.create() 2014-02-10 17:02:11 +08:00
test_migration.py Prevent caller from specifying id during Migration.create() 2014-02-10 17:02:11 +08:00
test_network.py Fix straggling uses of direct-to-database queries in nova-network 2014-04-08 17:21:52 -07:00
test_objects.py Make NovaObject report changed-ness of its children 2014-03-17 16:59:41 +00:00
test_pci_device.py Remove vi modelines 2014-02-03 14:19:44 +00:00
test_quotas.py Utilizes assertIsNone and assertIsNotNone - tests/etc 2013-10-31 06:06:02 +09:00
test_security_group.py Make SecurityGroup receive context 2013-10-15 12:19:02 -07:00
test_security_group_rule.py Refactor CIDR field to use netaddr.IPNetwork 2014-01-14 11:05:29 -08:00
test_service.py Merge "Prevent caller from specifying id during Service.create()" 2014-02-24 14:41:50 +00:00
test_virtual_interface.py Add VirtualInterface object 2014-01-20 11:29:41 -05:00