mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
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:
parent
174ee8aab8
commit
b0bf4919a3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user