summaryrefslogtreecommitdiff
path: root/test/scripts/5730-OCSP-GnuTLS-events
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2015-11-10 19:01:58 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2015-11-10 19:01:58 +0000
commit4b4a0e99e3329ce10b2bf1bbaae91836a4a20e3d (patch)
treef93178f9359021c6518949a58813e349137b67fc /test/scripts/5730-OCSP-GnuTLS-events
parentfc4a7f705d4c5911220cf9dbb0995d9f5dbabf02 (diff)
Testsuite: reorder for dependencies; rename TPDA to events
Diffstat (limited to 'test/scripts/5730-OCSP-GnuTLS-events')
-rw-r--r--test/scripts/5730-OCSP-GnuTLS-events/573084
-rw-r--r--test/scripts/5730-OCSP-GnuTLS-events/REQUIRES4
2 files changed, 88 insertions, 0 deletions
diff --git a/test/scripts/5730-OCSP-GnuTLS-events/5730 b/test/scripts/5730-OCSP-GnuTLS-events/5730
new file mode 100644
index 000000000..759810613
--- /dev/null
+++ b/test/scripts/5730-OCSP-GnuTLS-events/5730
@@ -0,0 +1,84 @@
+# OCSP stapling, client, tpda
+# duplicate of 5651
+#
+#
+# Client works when we request but don't require OCSP stapling and none comes
+exim -bd -oX PORT_D -DSERVER=server -DOCSP=""
+****
+exim norequire@test.ex
+test message.
+****
+sleep 1
+killdaemon
+#
+#
+#
+#
+# Client works when we request but don't require OCSP stapling and some arrives
+exim -bd -oX PORT_D -DSERVER=server \
+ -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.good.resp
+****
+exim norequire@test.ex
+test message.
+****
+millisleep 500
+#
+#
+#
+#
+# Client works when we don't request OCSP stapling
+exim nostaple@test.ex
+test message.
+****
+millisleep 500
+#
+#
+#
+#
+# Client accepts good stapled info
+exim good@test.ex
+test message.
+****
+sleep 1
+killdaemon
+#
+#
+#
+# Client fails on lack of required stapled info
+exim -bd -oX PORT_D -DSERVER=server -DOCSP=""
+****
+exim failrequire@test.ex
+test message.
+****
+sleep 1
+killdaemon
+no_msglog_check
+#
+#
+#
+# Client fails on revoked stapled info
+EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
+ -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.revoked.resp
+****
+exim failrevoked@test.ex
+test message.
+****
+sleep 1
+killdaemon
+#
+#
+#
+#
+# Client fails on expired stapled info
+EXIM_TESTHARNESS_DISABLE_OCSPVALIDITYCHECK=y exim -bd -oX PORT_D -DSERVER=server \
+ -DOCSP=DIR/aux-fixed/exim-ca/example.com/server1.example.com/server1.example.com.ocsp.dated.resp
+****
+exim failexpired@test.ex
+test message.
+****
+sleep 1
+killdaemon
+#
+#
+#
+#
diff --git a/test/scripts/5730-OCSP-GnuTLS-events/REQUIRES b/test/scripts/5730-OCSP-GnuTLS-events/REQUIRES
new file mode 100644
index 000000000..c06f36969
--- /dev/null
+++ b/test/scripts/5730-OCSP-GnuTLS-events/REQUIRES
@@ -0,0 +1,4 @@
+support GnuTLS
+support OCSP
+support Experimental_Event
+running IPv4