source: mod_gnutls/test/tests/01_priorities_config/test.yaml

mod_gnutls/0.12.0
Last change on this file was 21cd807, checked in by Fiona Klute <fiona.klute@…>, 13 months ago

Use .yaml ending for all YAML files

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[ec26b87]1- !connection
2  description: >-
3    The server-wide GnuTLSPriorities setting disables TLS 1.3. A
4    client with default priorities can connect using TLS 1.2 and make
5    a successful request.
6  gnutls_params:
7    - x509cafile=authority/x509.pem
8  actions:
9    - !request
10      path: /test.txt
11      expect:
12        status: 200
13        body:
14          exactly: |
15            test
16- !connection
17  description: >-
18    The server-wide GnuTLSPriorities setting disables TLS 1.3. A
19    client that allows only TLS 1.3 can't connect.
20  gnutls_params:
21    - x509cafile=authority/x509.pem
[1d62f86]22    - priority=NORMAL:-VERS-ALL:+VERS-TLS1.3
[ec26b87]23  actions:
24    - !request
25      path: /test.txt
26      expect:
27        reset: yes
28- !connection
29  description: >-
30    The GnuTLSPriorities setting for the test.example.com overrides
31    the global setting and allows only TLS 1.3. A client that allows
32    only TLS 1.3 can make a successful request.
33  gnutls_params:
34    - x509cafile=authority/x509.pem
35    - sni-hostname=test.example.com
[1d62f86]36    - priority=NORMAL:-VERS-ALL:+VERS-TLS1.3
[ec26b87]37  actions:
38    - !request
39      path: /test.txt
40      headers:
41        Host: test.example.com
42      expect:
43        status: 200
44        body:
45          exactly: |
46            test
47- !connection
48  description: >-
49    The GnuTLSPriorities setting for the test.example.com overrides
50    the global setting and allows only TLS 1.3. A client that allows
51    only TLS 1.2 can't connect.
52  gnutls_params:
53    - x509cafile=authority/x509.pem
54    - sni-hostname=test.example.com
[1d62f86]55    - priority=NORMAL:-VERS-ALL:+VERS-TLS1.2
[ec26b87]56  actions:
57    - !request
58      path: /test.txt
59      headers:
60        Host: test.example.com
61      expect:
62        reset: yes
Note: See TracBrowser for help on using the repository browser.