source: mod_gnutls/test/tests/27_OCSP_server/ @ 0f52d48

Last change on this file since 0f52d48 was 0f52d48, checked in by Fiona Klute <fiona.klute@…>, 3 years ago

Switch most tests to instead of preconditions in test scripts

The new function mgstest.require_apache_modules() covers required
Apache modules, the rest is individual stuff.

  • Property mode set to 100644
File size: 450 bytes
1import os
2import re
3from mgstest import require_match
4from unittest import SkipTest
6def prepare_env():
7    if not 'OCSP_PORT' in os.environ:
8        raise SkipTest('OCSP_PORT is not set, check if openssl is available.')
10def post_check(conn_log, response_log):
11    print('Checking if the client actually got a stapled response:')
12    print(require_match(re.compile(r'^- Options: .*OCSP status request,'),
13                        conn_log).group(0))
Note: See TracBrowser for help on using the repository browser.