Compare commits
1 Commits
aec8e7e31c
...
0ce2e344b0
Author | SHA1 | Date | |
---|---|---|---|
0ce2e344b0 |
@ -568,16 +568,6 @@ def test_set_param_cleaning_policy(mock_run_cmd):
|
|||||||
'--flush-max-buffers', '200'
|
'--flush-max-buffers', '200'
|
||||||
])
|
])
|
||||||
|
|
||||||
# Nop policy
|
|
||||||
mock_run_cmd.reset_mock()
|
|
||||||
opencas.casadm.set_param("cleaning", cache_id=3, policy="nop")
|
|
||||||
mock_run_cmd.assert_called_with([
|
|
||||||
'/sbin/casadm',
|
|
||||||
'--set-param', '--name', 'cleaning',
|
|
||||||
'--cache-id', '3',
|
|
||||||
'--policy', 'nop'
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
@patch("opencas.casadm.set_param_cleaning_policy")
|
@patch("opencas.casadm.set_param_cleaning_policy")
|
||||||
@patch("opencas.casadm.set_param")
|
@patch("opencas.casadm.set_param")
|
||||||
|
Loading…
Reference in New Issue
Block a user