Merge "OVS agent add functional tests of OVS status"

This commit is contained in:
Jenkins 2015-09-04 05:02:36 +00:00 committed by Gerrit Code Review
commit 15c5371b4d
1 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,15 @@ class TestOVSAgent(base.OVSAgentTestFramework):
trigger_resync=True)
self.wait_until_ports_state(self.ports, up=True)
def test_reprocess_port_when_ovs_restarts(self):
self.setup_agent_and_ports(
port_dicts=self.create_test_ports())
self.wait_until_ports_state(self.ports, up=True)
self.agent.check_ovs_status.return_value = constants.OVS_RESTARTED
# OVS restarted, the agent should reprocess all the ports
self.agent.plugin_rpc.update_device_list.reset_mock()
self.wait_until_ports_state(self.ports, up=True)
def test_port_vlan_tags(self):
self.setup_agent_and_ports(
port_dicts=self.create_test_ports(),