Lines Matching +refs:test +refs:fail
12 def test(testname, life, rlife, exp_life, exp_rlife, env=None): function
21 fail('%s: did not get tickets' % testname)
26 fail('%s: ticket unexpectedly renewable' % testname)
28 fail('%s: ticket unexpectedly non-renewable' % testname)
42 fail('%s: expected life %d, got %d' % (testname, exp_life, life))
46 fail('%s: ticket has unexpected renew_till' % testname)
48 fail('%s: ticket is renewable but has no renew_till' % testname)
52 fail('%s: expected rlife %d, got %d' %
56 test('simple', '1h', '2h', 3600, 7200)
69 test('non-renewable', '1h', None, 3600, None)
76 test('disallowed client', '1h', '2h', 3600, None)
82 test('disallowed server', '1h', '2h', 3600, None)
89 test('short', '2h', '1h', 7200, 7200)
97 test('long', '15h', None, 10 * 3600, 15 * 3600)
98 test('long noopts', '15h', None, 10 * 3600, None, env=no_opts)
104 test('maxrenewlife client 1', '4h', '5h', 4 * 3600, 5 * 3600)
105 test('maxrenewlife client 2', '6h', '10h', 6 * 3600, 5 * 3600)
111 test('maxrenewlife server 1', '2h', '3h', 2 * 3600, 3 * 3600)
112 test('maxrenewlife server 2', '4h', '8h', 4 * 3600, 3 * 3600)
119 test('maxrenewlife realm 1', '10h', '20h', 10 * 3600, 20 * 3600)
120 test('maxrenewlife realm 2', '21h', '40h', 20 * 3600, 20 * 3600)