Changeset 0f65ea9 in mod_gnutls for test/tests/28_HTTP2_support


Ignore:
Timestamp:
Jan 3, 2020, 5:05:34 AM (11 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
905063e
Parents:
076049a
Message:

Use post_check hook in 28_HTTP2_support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/tests/28_HTTP2_support/hooks.py

    r076049a r0f65ea9  
    11import os
     2import re
    23import subprocess
     4from mgstest import require_match
    35
    46def run_connection(testname, conn_log, response_log):
     
    1517    print(proc.stdout)
    1618    print(proc.stdout, file=response_log)
     19
     20def post_check(conn_log, response_log):
     21    print('Checking for HTTP/2 in logged header:')
     22    print(require_match(re.compile(r'\bHTTP/2 200\b'), conn_log).group(0))
     23    print('Checking for TLS session status:')
     24    print(require_match(re.compile(r'^Current TLS session:\s\(TLS.*$'),
     25                        response_log)
     26          .group(0))
Note: See TracChangeset for help on using the changeset viewer.