neutron/neutron/tests/unit/scheduler
Oleg Bondarev 96ba199d73 Use admin context when removing DVR router on vm port deletion
In case non-admin tenant removes last VM on a shared network (owned
by admin) connected to a DVR router (also owned by admin) we need
to remove the router from the host where there are no more dvr
serviceable ports. Commit edbade4861
fixed logic that determines routers that should be removed from host.
However in order to actually remove the router we also need admin
context.

This was not caught by unit tests and one reason for that is so called
'mock everything' approach which is evil and generally useless.
This patch replaces unit tests with functional tests that we able
to catch the bug.

Closes-Bug: #1424096
Change-Id: Ia6cdf2294562c2a2727350c78eeab155097e0c33
2016-01-13 12:43:23 +03:00
..
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_dhcp_agent_scheduler.py Add functional test for availability_zone support 2015-12-14 10:07:47 +09:00
test_l3_agent_scheduler.py Use admin context when removing DVR router on vm port deletion 2016-01-13 12:43:23 +03:00