Changeset 1fe7cac in mod_gnutls for test/sample_fail.yml


Ignore:
Timestamp:
Jan 5, 2020, 5:43:41 AM (19 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master, proxy-ticket
Children:
459a982
Parents:
0b3733d
git-author:
Fiona Klute <fiona.klute@…> (01/05/20 05:41:39)
git-committer:
Fiona Klute <fiona.klute@…> (01/05/20 05:43:41)
Message:

TestReq10: Handle expected and unexpected connection failure

With this TestReq10 supports the same options as TestRequest?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sample_fail.yml

    r0b3733d r1fe7cac  
    1 # Example: The first TLS connection fails (certificate error), the
    2 # second succeeds but receives a 404.
    31- !connection
     2  description: 'This TLS connection must fail with a certificate error.'
    43  gnutls_params:
    54    - x509cafile=rogueca/x509.pem
     
    109        reset: yes
    1110- !connection
     11  description: 'TLS connection succeeds, the request receives error 404.'
    1212  gnutls_params:
    1313    - x509cafile=authority/x509.pem
    1414  actions:
    1515    - !request
    16       path: /
     16      path: /missing-file.txt
    1717      expect:
    1818        status: 404
     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 TracChangeset for help on using the changeset viewer.