asyncio
Last change
on this file since af412db was
af412db,
checked in by Fiona Klute <fiona.klute@…>, 20 months ago
|
Integrate 29_force_handshake_vhost into 04_name_based_vhosts
|
-
Property mode set to
100644
|
File size:
1.4 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)' |
---|
Note: See
TracBrowser
for help on using the repository browser.