Add test to make sure #1348 does not happen again

This commit is contained in:
Thomas S Hatch 2012-05-27 17:41:49 -06:00
parent 4e9401c3c6
commit d8ca98f3a4

View file

@ -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()