Changeset eb84747 in mod_gnutls
- Timestamp:
- Dec 7, 2019, 11:41:40 AM (3 years ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 3fbe087
- Parents:
- 0e069b6
- Location:
- test
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
test/https-test-client.py
r0e069b6 reb84747 65 65 sys.stdout.flush() 66 66 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() 68 71 test_conn.run(timeout=args.timeout) -
test/mgstest/tests.py
r0e069b6 reb84747 56 56 57 57 def __init__(self, actions, host=None, port=None, gnutls_params=[], 58 transport='gnutls' ):58 transport='gnutls', description=None): 59 59 self.gnutls_params = gnutls_params 60 60 self.actions = actions 61 61 self.transport = Transports[transport.upper()] 62 self.description = description 62 63 if host: 63 64 self.host = subst_env(host) … … 73 74 f'(host={self.host!r}, port={self.port!r}, ' 74 75 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})') 76 78 77 79 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 validation2 # fails)3 1 - !connection 2 description: >- 3 The reverse proxy can't access the backend (certificate validation 4 fails) 4 5 gnutls_params: 5 6 - x509cafile=authority/x509.pem … … 14 15 - 'Error reading from remote server' 15 16 16 # Check if the proxy itself works correctly and presents the expected17 # bad certificate18 17 - !connection 18 description: >- 19 Check if the proxy itself works correctly and presents the 20 expected bad certificate 19 21 host: '${BACKEND_HOST}' 20 22 port: '${BACKEND_PORT}' -
test/tests/26_redirect_HTTP_to_HTTPS/test.yml
r0e069b6 reb84747 1 # Plain HTTP connection that must be redirected to HTTPS2 1 - !connection 2 description: 'Plain HTTP connection that must be redirected to HTTPS' 3 3 transport: plain 4 4 host: '${TEST_HOST}' … … 14 14 contains: 'Moved Permanently' 15 15 16 # Check that the redirection target works17 16 - !connection 17 description: 'Check that the redirection target works' 18 18 host: '${TEST_HOST}' 19 19 port: '${TEST_PORT}'
Note: See TracChangeset
for help on using the changeset viewer.