mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add some more key tests
This commit is contained in:
parent
98027c3fb6
commit
7530f39269
1 changed files with 20 additions and 0 deletions
|
@ -16,3 +16,23 @@ class KeyTest(integration.CliCase):
|
|||
'\x1b[0;32mminion\x1b[0m',
|
||||
'\x1b[1;34mRejected:\x1b[0m', '']
|
||||
self.assertEqual(data, expect)
|
||||
|
||||
def test_list_acc(self):
|
||||
'''
|
||||
test salt-key -l
|
||||
'''
|
||||
data = self.run_key('-l acc')
|
||||
self.assertEqual(
|
||||
data,
|
||||
['\x1b[0;32mminion\x1b[0m', '']
|
||||
)
|
||||
|
||||
def test_list_un(self):
|
||||
'''
|
||||
test salt-key -l
|
||||
'''
|
||||
data = self.run_key('-l un')
|
||||
self.assertEqual(
|
||||
data,
|
||||
['']
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue