mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
pillar matcher test
This commit is contained in:
parent
f7e2af08cf
commit
8bfab4e7c0
1 changed files with 13 additions and 1 deletions
|
@ -76,6 +76,19 @@ class MatchTest(integration.ShellCase):
|
|||
self.assertIn('sub_minion', data)
|
||||
self.assertNotIn('minion', data.replace('sub_minion', 'stub'))
|
||||
|
||||
def test_pillar(self):
|
||||
'''
|
||||
test pillar matcher
|
||||
'''
|
||||
data = self.run_salt('-I "monty:python" test.ping')
|
||||
data = '\n'.join(data)
|
||||
self.assertIn('minion', data)
|
||||
self.assertIn('sub_minion', data)
|
||||
data = self.run_salt('-I "sub:sub_minion" test.ping')
|
||||
data = '\n'.join(data)
|
||||
self.assertIn('sub_minion', data)
|
||||
self.assertNotIn('minion', data.replace('sub_minion', 'stub'))
|
||||
|
||||
def test_compound(self):
|
||||
'''
|
||||
test compound matcher
|
||||
|
@ -90,7 +103,6 @@ class MatchTest(integration.ShellCase):
|
|||
data = '\n'.join(data)
|
||||
self.assertIn('sub_minion', data)
|
||||
self.assertNotIn('minion', data.replace('sub_minion', 'stub'))
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Reference in a new issue