source: mod_gnutls/test/tests/04_name_based_vhosts/test.yaml @ a21794d

asyncio
Last change on this file since a21794d was a21794d, checked in by Fiona Klute <fiona.klute@…>, 12 months ago

Integrate 31_vhost_SNI_serveralias_match into 04_name_based_vhosts

  • Property mode set to 100644
File size: 2.1 KB
Line 
1- !connection
2  description: >-
3    Connection to the default (first) vhost must work without SNI.
4  gnutls_params:
5    - x509cafile=authority/x509.pem
6    - disable-sni
7  actions:
8    - !request
9      path: /vhost0/test.txt
10      expect:
11        status: 200
12        body:
13          exactly: |
14            test
15- !connection
16  description: >-
17    Connection to the default vhost must work with SNI.
18  gnutls_params:
19    - x509cafile=authority/x509.pem
20  actions:
21    - !request
22      path: /vhost0/test.txt
23      expect:
24        status: 200
25        body:
26          exactly: |
27            test
28- !connection
29  description: >-
30    Connection to the second vhost must work with SNI.
31  gnutls_params:
32    - x509cafile=authority/x509.pem
33    - verify-hostname=meow.test
34    - sni-hostname=meow.test
35  actions:
36    - !request
37      path: /meow/test.txt
38      headers:
39        Host: meow.test
40      expect:
41        status: 200
42        body:
43          exactly: |
44            test
45- !connection
46  description: >-
47    Send SNI for first vhost (localhost), but a Host header for the
48    second one (vhost.example.com). Expect error 421.
49  gnutls_params:
50    - x509cafile=authority/x509.pem
51  actions:
52    - !request
53      path: /dump.cgi
54      headers:
55        Host: meow.test
56      expect:
57        status: 421
58        body:
59          - 'Misdirected Request'
60          - 'Server Name Indication (SNI)'
61- !connection
62  description: >-
63    Check if the third vhost is available using its non-wildcard
64    ServerAlias.
65  gnutls_params:
66    - x509cafile=authority/x509.pem
67    - sni-hostname=www.domain.test
68  actions:
69    - !request
70      path: /vhost2/test.txt
71      headers:
72        Host: www.domain.test
73      expect:
74        status: 200
75        body:
76          exactly: |
77            test
78- !connection
79  description: >-
80    Check if the third vhost is available using its wildcard
81    ServerAlias.
82  gnutls_params:
83    - x509cafile=authority/x509.pem
84    - sni-hostname=hello.example.test
85  actions:
86    - !request
87      path: /vhost2/test.txt
88      headers:
89        Host: hello.example.test
90      expect:
91        status: 200
92        body:
93          exactly: |
94            test
Note: See TracBrowser for help on using the repository browser.