source: mod_gnutls/test/tests/04_name_based_vhosts/test.yaml @ 3453f93

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

Integrate 33_vhost_SNI_serveralias_missinghost into 04_name_based_vhosts

  • Property mode set to 100644
File size: 3.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
16- !connection
17  description: >-
18    Connection to the default vhost must work with SNI.
19  gnutls_params:
20    - x509cafile=authority/x509.pem
21  actions:
22    - !request
23      path: /vhost0/test.txt
24      expect:
25        status: 200
26        body:
27          exactly: |
28            test
29
30- !connection
31  description: >-
32    Connection to the second vhost must work with SNI.
33  gnutls_params:
34    - x509cafile=authority/x509.pem
35    - verify-hostname=meow.test
36    - sni-hostname=meow.test
37  actions:
38    - !request
39      path: /meow/test.txt
40      headers:
41        Host: meow.test
42      expect:
43        status: 200
44        body:
45          exactly: |
46            test
47
48- !connection
49  description: >-
50    Send SNI for first vhost (localhost), but a Host header for the
51    second one (meow.test). Expect error 421.
52  gnutls_params:
53    - x509cafile=authority/x509.pem
54  actions:
55    - !request
56      path: /dump.cgi
57      headers:
58        Host: meow.test
59      expect:
60        status: 421
61        body:
62          - 'Misdirected Request'
63          - 'Server Name Indication (SNI)'
64
65- !connection
66  description: >-
67    Check if the third vhost is available using its non-wildcard
68    ServerAlias.
69  gnutls_params:
70    - x509cafile=authority/x509.pem
71    - sni-hostname=www.domain.test
72  actions:
73    - !request
74      path: /vhost2/test.txt
75      headers:
76        Host: www.domain.test
77      expect:
78        status: 200
79        body:
80          exactly: |
81            test
82
83- !connection
84  description: >-
85    Check if the third vhost is available using its wildcard
86    ServerAlias.
87  gnutls_params:
88    - x509cafile=authority/x509.pem
89    - sni-hostname=hello.example.test
90  actions:
91    - !request
92      path: /vhost2/test.txt
93      headers:
94        Host: hello.example.test
95      expect:
96        status: 200
97        body:
98          exactly: |
99            test
100
101- !connection
102  description: >-
103    Send SNI and Host header that are different, but both match the
104    wildcard ServerAlias of the third vhost (*.example.test). Expect
105    error 421.
106  gnutls_params:
107    - x509cafile=authority/x509.pem
108    - sni-hostname=www.example.test
109  actions:
110    - !request
111      path: /test.txt
112      headers:
113        Host: mismatched.example.test
114      expect:
115        status: 421
116        body:
117          contains:
118            - 'Misdirected Request'
119            - 'Server Name Indication (SNI)'
120
121- !connection
122  description: >-
123    Send SNI for the wildcard ServerAlias of the third vhost, but no
124    Host header (HTTP 1.0). Expect error 421.
125  gnutls_params:
126    - x509cafile=authority/x509.pem
127    - sni-hostname=example.virtual.host
128  actions:
129    - !request10
130      path: /test.txt
131      headers:
132        Connection: close
133      expect:
134        status: 421
135        body:
136          contains:
137            - 'Misdirected Request'
138            - 'Server Name Indication (SNI)'
Note: See TracBrowser for help on using the repository browser.