Changeset 4b9e34a in mod_gnutls for test/tests/12_cgi_variables/test.yaml


Ignore:
Timestamp:
Aug 30, 2020, 2:51:57 PM (13 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master
Children:
cbc3477
Parents:
9bffdec
Message:

Unify tests for CGI variables with and without client certificate

Both can work with the same server configuration, so it makes sense to
start only one server instance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/tests/12_cgi_variables/test.yaml

    r9bffdec r4b9e34a  
    1 !connection
    2 gnutls_params:
    3   - x509cafile=authority/x509.pem
    4   - x509keyfile=authority/client/secret.key
    5   - x509certfile=authority/client/x509.pem
    6 actions:
    7   - !request
    8     path: /dump.cgi
    9     expect:
    10       status: 200
    11       body:
    12         contains:
    13           - |
     1- !connection
     2  description: >-
     3    The server requests but does not require client
     4    authentication. The client authenticates, and the CGI script can
     5    include certificate details in the output using environment
     6    variables.
     7  gnutls_params:
     8    - x509cafile=authority/x509.pem
     9    - x509keyfile=authority/client/secret.key
     10    - x509certfile=authority/client/x509.pem
     11  actions:
     12    - !request
     13      path: /dump.cgi
     14      expect:
     15        status: 200
     16        body:
     17          contains:
     18            - |
     19              ----Certificate:----
     20              -----BEGIN CERTIFICATE-----
     21            - |
     22              -----END CERTIFICATE-----
     23
     24
     25              ----Verification Status:----
     26              SUCCESS
     27
     28              ----SubjectAltName:----
     29              RFC822NAME:test0@modgnutls.test
     30
     31- !connection
     32  description: >-
     33    The server requests but does not require client
     34    authentication. The client does not authenticate, and the CGI
     35    script can note that in the output using environment variables.
     36  gnutls_params:
     37    - x509cafile=authority/x509.pem
     38  actions:
     39    - !request
     40      path: /dump.cgi
     41      expect:
     42        status: 200
     43        body:
     44          contains: |
    1445            ----Certificate:----
    15             -----BEGIN CERTIFICATE-----
    16           - |
    17             -----END CERTIFICATE-----
    1846
    1947
    2048            ----Verification Status:----
    21             SUCCESS
     49            NONE
    2250
    2351            ----SubjectAltName:----
    24             RFC822NAME:test0@modgnutls.test
Note: See TracChangeset for help on using the changeset viewer.