Changeset e3e0de1 in mod_gnutls for test/tests/21_TLS_reverse_proxy_wrong_cert
- Timestamp:
- Dec 7, 2019, 9:42:07 AM (2 years ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 8b72599
- Parents:
- 09d923b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/tests/21_TLS_reverse_proxy_wrong_cert/test.yml
r09d923b re3e0de1 1 !connection 2 gnutls_params: 3 - x509cafile=authority/x509.pem 4 actions: 5 - !request 6 path: /proxy/test.txt 7 expect: 8 status: 502 9 body: 10 contains: 11 - 'Proxy Error' 12 - 'Error reading from remote server' 1 # The reverse proxy can't access the backend (certificate validation 2 # fails) 3 - !connection 4 gnutls_params: 5 - x509cafile=authority/x509.pem 6 actions: 7 - !request 8 path: /proxy/test.txt 9 expect: 10 status: 502 11 body: 12 contains: 13 - 'Proxy Error' 14 - 'Error reading from remote server' 15 16 # Check if the proxy itself works correctly and presents the expected 17 # bad certificate 18 - !connection 19 host: '${BACKEND_HOST}' 20 port: '${BACKEND_PORT}' 21 gnutls_params: 22 - x509cafile=authority/x509.pem 23 - verify-hostname=imposter.example 24 actions: 25 - !request 26 path: /test.txt 27 expect: 28 status: 200 29 body: 30 exactly: | 31 test
Note: See TracChangeset
for help on using the changeset viewer.