mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add test to make sure #1348 does not happen again
This commit is contained in:
parent
4e9401c3c6
commit
d8ca98f3a4
1 changed files with 9 additions and 1 deletions
|
@ -62,7 +62,7 @@ class MatchTest(integration.ShellCase):
|
|||
data = '\n'.join(data)
|
||||
self.assertIn('sub_minion', data)
|
||||
self.assertNotIn('minion', data.replace('sub_minion', 'stub'))
|
||||
|
||||
|
||||
def test_regrain(self):
|
||||
'''
|
||||
test salt grain matcher
|
||||
|
@ -104,6 +104,14 @@ class MatchTest(integration.ShellCase):
|
|||
self.assertIn('sub_minion', data)
|
||||
self.assertNotIn('minion', data.replace('sub_minion', 'stub'))
|
||||
|
||||
def test_static(self):
|
||||
'''
|
||||
test salt static call
|
||||
'''
|
||||
data = self.run_salt('minion test.ping --static')
|
||||
data = '\n'.join(data)
|
||||
self.assertIn('minion', data)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
loader = TestLoader()
|
||||
|
|
Loading…
Add table
Reference in a new issue