Skip to content

Commit

Permalink
add tests for parameters sbd watchdog and msgwait timeouts 3
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoldegrove committed May 14, 2020
1 parent 28d8333 commit 2d10991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/modules/test_crmshmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,15 +467,15 @@ def test_cluster_init_crm(self, crm_init, manage_sbd):

with patch.dict(crmshmod.__salt__, {'crm.use_crm': True}):
crm_init.return_value = 0
value = crmshmod.cluster_init('hacluster', 'dog', 'eth1', sbd_dev=['disk1', 'disk2'], '10', '20')
value = crmshmod.cluster_init('hacluster', 'dog', 'eth1', sbd_dev=['disk1', 'disk2'], sbd_timeout_watchdog='10', sbd_timeout_msgwait='20')
assert value == 0
crm_init.assert_called_once_with(
'hacluster', 'dog', 'eth1', None, None, 'sbd', 'devs', '10', '20', False, None)
crm_init.reset_mock()

with patch.dict(crmshmod.__salt__, {'crm.use_crm': True}):
crm_init.return_value = 0
value = crmshmod.cluster_init('hacluster', 'dog', 'eth1', sbd_dev='disk1', '10', '20')
value = crmshmod.cluster_init('hacluster', 'dog', 'eth1', sbd_dev='disk1', sbd_timeout_watchdog='10', sbd_timeout_msgwait='20')
assert value == 0
crm_init.assert_called_once_with(
'hacluster', 'dog', 'eth1', None, None, 'sbd', 'devs', '10', '20', False, None)
Expand Down

0 comments on commit 2d10991

Please sign in to comment.