Testsuite: unbreak testcase
[users/jgh/exim.git] / test / scripts / 5730-OCSP-GnuTLS-events / 5730
1 # OCSP stapling, client, events
2 # duplicate of 5651
3 #
4 #
5 # Client works when we request but don't require OCSP stapling and none comes
6 exim -bd -oX PORT_D -DSERVER=server -DOPT=""
7 ****
8 exim norequire@test.ex
9 test message.
10 ****
11 sleep 1
12 killdaemon
13 #
14 #
15 #
16 #
17 # Client works when we request but don't require OCSP stapling and some arrives
18 exim -bd -oX PORT_D -DSERVER=server \
19  -DOPT=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
20 ****
21 exim norequire@test.ex
22 test message.
23 ****
24 millisleep 700
25 #
26 #
27 #
28 #
29 # Client works when we don't request OCSP stapling
30 exim nostaple@test.ex
31 test message.
32 ****
33 millisleep 700
34 #
35 #
36 #
37 #
38 # Client accepts good stapled info
39 exim good@test.ex
40 test message.
41 ****
42 sleep 1
43 killdaemon
44 #
45 #
46 #
47 # Client fails on lack of required stapled info
48 exim -bd -oX PORT_D -DSERVER=server -DOPT=""
49 ****
50 exim failrequire@test.ex
51 test message.
52 ****
53 sleep 1
54 killdaemon
55 sudo rm DIR/spool/db/retry
56 #
57 #
58 #
59 # Client fails on revoked stapled info
60 EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
61  -DOPT=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
62 ****
63 exim failrevoked@test.ex
64 test message.
65 ****
66 sleep 1
67 killdaemon
68 sudo rm DIR/spool/db/retry
69 #
70 #
71 #
72 #
73 # Client fails on expired stapled info
74 EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
75  -DOPT=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
76 ****
77 exim failexpired@test.ex
78 test message.
79 ****
80 sleep 1
81 killdaemon
82 #
83 #
84 #
85 #
86 no_msglog_check