source: mod_gnutls/test/sample_test.yml @ d762813

asyncioproxy-ticket
Last change on this file since d762813 was 096859f, checked in by Fiona Klute <fiona.klute@…>, 17 months ago

https-test-client.py: Check if the HTTP body contains certain strings

There are a few test cases where we currently only check the end of
the returned body. Searching for certain strings within the body
instead of expecting a full match allows them to work with the
Python-based test client.

  • Property mode set to 100644
File size: 414 bytes
Line 
1!connection
2gnutls_params:
3  - x509cafile=authority/x509.pem
4actions:
5  - !request
6    path: /
7    headers:
8      Host: localhost
9    expect:
10      status: 404
11  - !request
12    method: GET
13    path: /test.txt
14    expect:
15      status: 200
16      body:
17        exactly: |
18          test
19  - !request
20    path: /test.txt
21    expect:
22      status: 200
23      body:
24        contains:
25          - 'tes'
26          - 'est'
Note: See TracBrowser for help on using the repository browser.