Ignore:
Timestamp:
Sep 27, 2020, 11:22:45 AM (12 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master
Children:
747a9c4
Parents:
2495b5a
Message:

Integrate basic SNI tests into 04_name_based_vhosts

06_verify_sni_a: Connection to first vhost must work while second
vhost exists, covered by the second connection.

07_verify_sni_b: Connection to second vhost must work, covered by the
third connection.

08_verify_no_sni_fallback_to_first_vhost: TLS handshake without SNI
must connect to default vhost, covered by the first connection.

09_verify_no_sni_fails_with_wrong_order: TLS handshake without SNI
must connect to default vhost, covered by the first connection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/tests/04_name_based_vhosts/test.yaml

    r2495b5a re27e01f  
    77  actions:
    88    - !request
    9       path: /test.txt
     9      path: /vhost0/test.txt
    1010      expect:
    1111        status: 200
     
    1313          exactly: |
    1414            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
Note: See TracChangeset for help on using the changeset viewer.