Disable keepalived process in keepalived func test
Previously, keepalived process itself was disabled that lead to respawning of keepalived by KeepalivedManager. This patch disables KeepalivedManager in cleanup thus no respawn happens. Closes-Bug: #1466873 Change-Id: If5524116e5d4fc41600920d31481282c5b797f7b
This commit is contained in:
parent
4d35f15265
commit
b336b7c438
|
@ -35,7 +35,7 @@ class KeepalivedManagerTestCase(base.BaseTestCase,
|
|||
self.manager = keepalived.KeepalivedManager(
|
||||
'router1', self.expected_config, self.process_monitor,
|
||||
conf_path=cfg.CONF.state_path)
|
||||
self.addCleanup(self.manager.get_process().disable)
|
||||
self.addCleanup(self.manager.disable)
|
||||
|
||||
def test_keepalived_spawn(self):
|
||||
self.manager.spawn()
|
||||
|
|
Loading…
Reference in New Issue