mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixed utils.pbm unit tests
This commit is contained in:
parent
4ff745d2c5
commit
ac79f89ffa
1 changed files with 2 additions and 2 deletions
|
@ -214,7 +214,7 @@ class GetCapabilityDefinitionsTestCase(TestCase):
|
|||
|
||||
def test_fetch_capabilities(self):
|
||||
salt.utils.pbm.get_capability_definitions(self.mock_prof_mgr)
|
||||
self.mock_prof_mgr.FetchCapabilityMetadata.assert_callend_once_with(
|
||||
self.mock_prof_mgr.FetchCapabilityMetadata.assert_called_once_with(
|
||||
self.mock_res_type)
|
||||
|
||||
def test_fetch_capabilities_raises_no_permissions(self):
|
||||
|
@ -268,7 +268,7 @@ class GetPoliciesByIdTestCase(TestCase):
|
|||
|
||||
def test_retrieve_policies(self):
|
||||
salt.utils.pbm.get_policies_by_id(self.mock_prof_mgr, self.policy_ids)
|
||||
self.mock_prof_mgr.RetrieveContent.assert_callend_once_with(
|
||||
self.mock_prof_mgr.RetrieveContent.assert_called_once_with(
|
||||
self.policy_ids)
|
||||
|
||||
def test_retrieve_policies_raises_no_permissions(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue