Fix integration tests test_list_acc_wrong_eauth, test_salt_run_with_wrong_eauth

This commit is contained in:
Alexey Aksenov 2018-04-14 20:59:36 +03:00
parent b84c4321c4
commit 26a6f79730
2 changed files with 6 additions and 2 deletions

View file

@ -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):

View file

@ -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)