mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
test pillar.items output (#33060)
This commit is contained in:
parent
398793bfc0
commit
d48b2b8b52
1 changed files with 11 additions and 0 deletions
|
@ -114,6 +114,17 @@ class PillarModuleTest(integration.ModuleCase):
|
|||
|
||||
self.assertEqual(grepo.rp_location, repo.remotes.origin.url)
|
||||
|
||||
def test_pillar_items(self):
|
||||
'''
|
||||
Test to ensure we get expected output
|
||||
from pillar.items
|
||||
'''
|
||||
get_items = self.run_function('pillar.items')
|
||||
self.assertDictContainsSubset({'info': 'bar'}, get_items)
|
||||
self.assertDictContainsSubset({'monty': 'python'}, get_items)
|
||||
self.assertDictContainsSubset(
|
||||
{'knights': ['Lancelot', 'Galahad', 'Bedevere', 'Robin']},
|
||||
get_items)
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
|
|
Loading…
Add table
Reference in a new issue