Changeset eb84747 in mod_gnutls


Ignore:
Timestamp:
Dec 7, 2019, 11:41:40 AM (10 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
3fbe087
Parents:
0e069b6
Message:

TestConnection?: Add optional "description" attribute for logging

Location:
test
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • test/https-test-client.py

    r0e069b6 reb84747  
    6565    sys.stdout.flush()
    6666
    67     for test_conn in conns:
     67    for i, test_conn in enumerate(conns):
     68        if test_conn.description:
     69            print(f'Running test connection {i}: {test_conn.description}')
     70            sys.stdout.flush()
    6871        test_conn.run(timeout=args.timeout)
  • test/mgstest/tests.py

    r0e069b6 reb84747  
    5656
    5757    def __init__(self, actions, host=None, port=None, gnutls_params=[],
    58                  transport='gnutls'):
     58                 transport='gnutls', description=None):
    5959        self.gnutls_params = gnutls_params
    6060        self.actions = actions
    6161        self.transport = Transports[transport.upper()]
     62        self.description = description
    6263        if host:
    6364            self.host = subst_env(host)
     
    7374                f'(host={self.host!r}, port={self.port!r}, '
    7475                f'gnutls_params={self.gnutls_params!r}, '
    75                 f'actions={self.actions!r}, transport={self.transport!r})')
     76                f'actions={self.actions!r}, transport={self.transport!r}, '
     77                f'description={self.description!r})')
    7678
    7779    def run(self, timeout=5.0):
  • test/tests/21_TLS_reverse_proxy_wrong_cert/test.yml

    r0e069b6 reb84747  
    1 # The reverse proxy can't access the backend (certificate validation
    2 # fails)
    31- !connection
     2  description: >-
     3    The reverse proxy can't access the backend (certificate validation
     4    fails)
    45  gnutls_params:
    56    - x509cafile=authority/x509.pem
     
    1415            - 'Error reading from remote server'
    1516
    16 # Check if the proxy itself works correctly and presents the expected
    17 # bad certificate
    1817- !connection
     18  description: >-
     19    Check if the proxy itself works correctly and presents the
     20    expected bad certificate
    1921  host: '${BACKEND_HOST}'
    2022  port: '${BACKEND_PORT}'
  • test/tests/26_redirect_HTTP_to_HTTPS/test.yml

    r0e069b6 reb84747  
    1 # Plain HTTP connection that must be redirected to HTTPS
    21- !connection
     2  description: 'Plain HTTP connection that must be redirected to HTTPS'
    33  transport: plain
    44  host: '${TEST_HOST}'
     
    1414          contains: 'Moved Permanently'
    1515
    16 # Check that the redirection target works
    1716- !connection
     17  description: 'Check that the redirection target works'
    1818  host: '${TEST_HOST}'
    1919  port: '${TEST_PORT}'
Note: See TracChangeset for help on using the changeset viewer.