fail('Message not echoed back.')
-success('User-2-user test programs.')
+success('User-2-user test programs')
realm.start_kdc(['-w', '3'])
realm.kinit(realm.user_princ, password('user'))
realm.klist(realm.user_princ)
-success('KDC worker processes.')
+success('KDC worker processes')
realm = K5Realm(create_kdb=False)
realm.run_as_master(['./t_stringattr'])
-success('String attribute unit tests.')
+success('String attribute unit tests')
realm.run_as_client([kdestroy])
cursor_test('noexist', [], [])
-success('Renewing credentials.')
+success('Renewing credentials')
'password_expiration = 0\n' in output:
fail('Expected non-zero password expiration not seen for days')
-success('Password expiration warning tests.')
+success('Password expiration warning tests')
os.remove(realm.keytab)
realm.run_as_server(['./t_vfy_increds'], expected_code=1)
-success('krb5_verify_init_creds tests.')
+success('krb5_verify_init_creds tests')
if 'does not match desired' not in output:
fail('Expected error not seen when k5identity selects bad principal.')
-success('GSSAPI credential selection tests.')
+success('GSSAPI credential selection tests')
if 'host/-nomatch-' not in output:
fail('Expected host/-nomatch- in t_accname output')
-success('GSSAPI tests.')
+success('GSSAPI tests')
# Skip this test if pkinit wasn't built.
if not os.path.exists(os.path.join(plugins, 'preauth', 'pkinit.so')):
- success('Warning: not testing pkinit because it is not built.')
+ success('Warning: not testing pkinit because it is not built')
exit(0)
# Construct a krb5.conf fragment configuring pkinit.
realm.kinit('@%s' % realm.realm, flags=['-n'])
realm.run_as_client([kvno, realm.host_princ], expected_code=1)
-success('Anonymous PKINIT.')
+success('Anonymous PKINIT')
if not output.endswith('---\n') or output.count('\n') != 2:
fail('kdestroy -a failed to empty cache collection.')
-success('Credential cache collection tests.')
+success('Credential cache collection tests')
fail('transited 2: Expected error message not in output')
stop(r1, r2, r3, r4)
-success('Cross-realm tests.')
+success('Cross-realm tests')
if 'Key: vno 258,' not in output:
fail('Expected vno not seen in kadmin.local output')
-success('Dump/load, FAST kinit, kdestroy, kvno wrapping.')
+success('Dump/load, FAST kinit, kdestroy, kvno wrapping')
output = realm.run_kadminl('modprinc -unlock user')
realm.kinit(realm.user_princ, password('user'))
-success('Account lockout.')
+success('Account lockout')
realm.kinit(realm.user_princ, flags=['-R'])
realm.klist(realm.user_princ)
-success('Renewing credentials.')
+success('Renewing credentials')
realm.run_kadminl('renprinc -force newnormal newnormal2')
realm.kinit('newnormal2', password('normal'))
-success('Principal renaming tests.')
+success('Principal renaming tests')
'attr1:' in output:
fail('Final attribute query')
-success('KDB string attributes.')
+success('KDB string attributes')
for realm in multipass_realms():
realm.run_as_client(['./t_kgss_user', realm.host_princ])
-success('Kernel GSSAPI subset tests.')
+success('Kernel GSSAPI subset tests')
realm.run_as_client(['./clientprog', realm.host_princ])
# Inform framework that tests completed successfully.
- success('World peace and cure for cancer.')
+ success('World peace and cure for cancer')
By default, the realm will have: