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:
Jakub Libosvar 2015-06-19 15:52:35 +02:00
parent 4d35f15265
commit b336b7c438
1 changed files with 1 additions and 1 deletions

View File

@ -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()