mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix integration tests test_list_acc_wrong_eauth, test_salt_run_with_wrong_eauth
This commit is contained in:
parent
b84c4321c4
commit
26a6f79730
2 changed files with 6 additions and 2 deletions
|
@ -232,7 +232,9 @@ class KeyTest(ShellCase, ShellCaseCommonTestsMixin):
|
|||
test salt-key -l with wrong eauth
|
||||
'''
|
||||
data = self.run_key('-l acc --eauth wrongeauth --username {0} --password {1}'.format(USERA, USERA_PWD))
|
||||
expect = ['The specified external authentication system "wrongeauth" is not available']
|
||||
expect = ['The specified external authentication system "wrongeauth" is not available',
|
||||
'Available eauth types: auto, django, file, keystone, ldap, mysql, pam, ',
|
||||
'pki, rest, sharedsecret, yubico']
|
||||
self.assertEqual(data, expect)
|
||||
|
||||
def test_list_un(self):
|
||||
|
|
|
@ -208,5 +208,7 @@ class RunTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMixin)
|
|||
'''
|
||||
run_cmd = self.run_run('-a wrongeauth --username {0} --password {1}\
|
||||
test.arg arg kwarg=kwarg1'.format(USERA, USERA_PWD))
|
||||
expect = ['The specified external authentication system "wrongeauth" is not available']
|
||||
expect = ['The specified external authentication system "wrongeauth" is not available',
|
||||
'Available eauth types: auto, django, file, keystone, ldap, mysql, pam, ',
|
||||
'pki, rest, sharedsecret, yubico']
|
||||
self.assertEqual(expect, run_cmd)
|
||||
|
|
Loading…
Add table
Reference in a new issue