mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add initial salt-key test
This commit is contained in:
parent
e301fee420
commit
98027c3fb6
1 changed files with 18 additions and 0 deletions
18
tests/integration/shell/key.py
Normal file
18
tests/integration/shell/key.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Import salt libs
|
||||
import integration
|
||||
|
||||
class KeyTest(integration.CliCase):
|
||||
'''
|
||||
Test salt-key script
|
||||
'''
|
||||
def test_list(self):
|
||||
'''
|
||||
test salt-key -L
|
||||
'''
|
||||
data = self.run_key('-L')
|
||||
expect = [
|
||||
'\x1b[1;31mUnaccepted Keys:\x1b[0m',
|
||||
'\x1b[1;32mAccepted Keys:\x1b[0m',
|
||||
'\x1b[0;32mminion\x1b[0m',
|
||||
'\x1b[1;34mRejected:\x1b[0m', '']
|
||||
self.assertEqual(data, expect)
|
Loading…
Add table
Reference in a new issue