neutron/neutron/tests/unit/plugins/ml2
Yuki Nishiwaki b803195a99 Dont use dict.get() to know certain key is in dict
In CommonAgentLoop class, there is logic to detect tap device is changed
locally or not by comparing timestamp with previous.
Sometimes timestamp value could be None depending on the timing (see bug/1781129)

But current _get_devices_locally_modified logic can not detect local
change from None to something because _get_devices_locally_modified
function don't always compare if previous timestamp value was None.

In order not to miss updated device always, better not to use dict.get() to
know previous iteration have timestamp or not.

Change-Id: Ib0361ad5c281f88558e8e048cfec588b9f9b1de4
Closes-Bug: #1781129
2018-07-25 16:08:42 +09:00
..
drivers Dont use dict.get() to know certain key is in dict 2018-07-25 16:08:42 +09:00
extensions Stop mocking keystoneauth internals 2018-06-02 11:25:20 +00:00
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
_test_mech_agent.py fix same mechanism driver called twice bug 2018-02-01 18:51:39 +08:00
base.py use service type constants from neutron_lib plugins 2017-06-27 15:16:05 -06:00
test_agent_scheduler.py Move db agent schedulers test to a more appropriate place 2015-08-24 15:14:13 +03:00
test_db.py Use OVO in ml2/test_db 2018-06-11 15:16:07 -04:00
test_driver_context.py Use objects instead of SQLA deep copies in PortContext 2017-06-20 01:34:10 -07:00
test_ext_portsecurity.py Refactoring config options for ml2 config opts 2017-09-08 15:34:49 -04:00
test_extension_driver_api.py Refactoring config options for ml2 config opts 2017-09-08 15:34:49 -04:00
test_managers.py fix same mechanism driver called twice bug 2018-02-01 18:51:39 +08:00
test_ovo_rpc.py Stop loading OVOServerRpcInterface in ML2 testcase 2017-04-18 01:27:37 -07:00
test_plugin.py Add support to regenerate port mac_address 2018-06-27 00:22:35 +02:00
test_port_binding.py Revert "Integration of (Distributed) Port Binding OVO" 2018-01-27 18:19:20 -06:00
test_rpc.py Replace usage of 'user' by 'user_id' 2018-04-04 09:37:18 +07:00
test_security_group.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00
test_tracked_resources.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00