mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Address test issues
This commit is contained in:
parent
93dd8b4b10
commit
20edbfd4ac
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@ def test_connected_ids_remote_minions():
|
|||
# These validate_tgt tests make the assumption that CkMinions.check_minions is
|
||||
# correct. In other words, these tests are only worthwhile if check_minions is
|
||||
# also correct.
|
||||
def test_validate_tgt_should_return_false_when_no_valid_minions_have_been_found():
|
||||
def test_validate_tgt_returns_true_when_no_valid_minions_have_been_found():
|
||||
"""
|
||||
CKMinions is only able to check against minions the master knows about. If
|
||||
no minion keys have been accepted it will return True.
|
||||
"""
|
||||
ckminions = salt.utils.minions.CkMinions(opts={})
|
||||
with patch(
|
||||
"salt.utils.minions.CkMinions.check_minions", autospec=True, return_value={}
|
||||
|
|
Loading…
Add table
Reference in a new issue