source: mod_gnutls/test/sample_fail.yml @ e2200db

asyncioproxy-ticket
Last change on this file since e2200db was 1fe7cac, checked in by Fiona Klute <fiona.klute@…>, 21 months ago

TestReq10: Handle expected and unexpected connection failure

With this TestReq10 supports the same options as TestRequest?.

  • Property mode set to 100644
File size: 702 bytes
RevLine 
[a2d1bb9]1- !connection
[1fe7cac]2  description: 'This TLS connection must fail with a certificate error.'
[a2d1bb9]3  gnutls_params:
4    - x509cafile=rogueca/x509.pem
5  actions:
6    - !request
7      path: /
8      expect:
9        reset: yes
10- !connection
[1fe7cac]11  description: 'TLS connection succeeds, the request receives error 404.'
[a2d1bb9]12  gnutls_params:
13    - x509cafile=authority/x509.pem
14  actions:
15    - !request
[1fe7cac]16      path: /missing-file.txt
[a2d1bb9]17      expect:
18        status: 404
[1fe7cac]19- !connection
20  description: 'This TLS connection must fail with a certificate error.'
21  gnutls_params:
22    - x509cafile=rogueca/x509.pem
23  actions:
24    - !request10
25      path: /test.txt
26      headers:
27        Host: localhost
28      expect:
29        reset: yes
Note: See TracBrowser for help on using the repository browser.