Add exsel shell match test.

Although this commit does not exactly reference the problem see on #2167, it was added while working for that issue.
This commit is contained in:
Pedro Algarvio 2012-10-05 07:56:23 +01:00
parent 174ee8aab8
commit b0bf4919a3

View File

@ -108,6 +108,12 @@ class MatchTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
self.assertIn('sub_minion', data)
self.assertNotIn('minion', data.replace('sub_minion', 'stub'))
def test_exsel(self):
data = self.run_salt('-X test.ping test.ping')
data = '\n'.join(data)
self.assertIn('minion', data)
self.assertIn('sub_minion', data)
def test_static(self):
'''
test salt static call
@ -124,7 +130,6 @@ class MatchTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
self.assertIn('user.add:', data)
if __name__ == "__main__":
loader = TestLoader()
tests = loader.loadTestsFromTestCase(MatchTest)