test_ipagetkeytab: Fix assertion in negative test

The ipagetkeytab command recently changed its failure output
to accomodate pre-4.0 servers.
Update the test to reflect this.

Related: https://fedorahosted.org/freeipa/ticket/4446
Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
Petr Viktorin 2014-07-30 10:13:06 +02:00 committed by Martin Kosek
parent aa0639284c
commit 410da23aec

View File

@ -86,10 +86,8 @@ class test_ipagetkeytab(cmdline_test):
"-k", self.keytabname,
]
(out, err, rc) = ipautil.run(new_args, stdin=None, raiseonerr=False)
assert err == (
'Failed to parse result! PrincipalName not found.\n\n'
'Failed to get keytab\n'
), err
assert 'Failed to parse result: PrincipalName not found.\n' in err, err
assert rc > 0, rc
def test_2_run(self):
"""