asynciomainproxy-ticket
Last change
on this file since 0e069b6 was
0e069b6,
checked in by Fiona Klute <fiona.klute@…>, 3 years ago
|
Support plain HTTP in the Python test framework
This makes it possible to run test 26 "redirect HTTP to HTTPS" without
an external HTTP client, the only thing still different from most
other tests is the TEST_HTTP_PORT environment variable.
|
-
Property mode set to
100644
|
File size:
668 bytes
|
Line | |
---|
1 | # Plain HTTP connection that must be redirected to HTTPS |
---|
2 | - !connection |
---|
3 | transport: plain |
---|
4 | host: '${TEST_HOST}' |
---|
5 | port: '${TEST_HTTP_PORT}' |
---|
6 | actions: |
---|
7 | - !request |
---|
8 | path: /status?auto |
---|
9 | expect: |
---|
10 | status: 301 |
---|
11 | headers: |
---|
12 | Location: 'https://${TEST_HOST}:${TEST_PORT}/status?auto' |
---|
13 | body: |
---|
14 | contains: 'Moved Permanently' |
---|
15 | |
---|
16 | # Check that the redirection target works |
---|
17 | - !connection |
---|
18 | host: '${TEST_HOST}' |
---|
19 | port: '${TEST_PORT}' |
---|
20 | gnutls_params: |
---|
21 | - x509cafile=authority/x509.pem |
---|
22 | actions: |
---|
23 | - !request |
---|
24 | path: /status?auto |
---|
25 | expect: |
---|
26 | status: 200 |
---|
27 | body: |
---|
28 | contains: 'Current TLS session: (TLS' |
---|
Note: See
TracBrowser
for help on using the repository browser.