source: mod_gnutls/test/tests/10_basic_client_verification/test.yaml @ 2d5cf4e

asyncio
Last change on this file since 2d5cf4e was 2d5cf4e, checked in by Fiona Klute <fiona.klute@…>, 13 months ago

Test successful and failed client auth with the same server instance

The remaining and removed server configurations were identical. The
difference was that in the "fail" the client did not authenticate (no
cert/key) and expected the connection to fail. This test has been
moved to the 10_basic_client_verification test as a second test
connection, achieving the same test coverage with one less round of
server start/stop.

  • Property mode set to 100644
File size: 670 bytes
Line 
1- !connection
2  description: >-
3    The server requires authentication, a client presenting a valid
4    certificate gets a good response.
5  gnutls_params:
6    - x509cafile=authority/x509.pem
7    - x509keyfile=authority/client/secret.key
8    - x509certfile=authority/client/x509.pem
9  actions:
10    - !request
11      path: /test.txt
12      expect:
13        status: 200
14        body:
15          exactly: |
16            test
17- !connection
18  description: >-
19    The server requires authentication, a client without a certificate
20    is rejected.
21  gnutls_params:
22    - x509cafile=authority/x509.pem
23  actions:
24    - !request
25      path: /test.txt
26      expect:
27        reset: yes
Note: See TracBrowser for help on using the repository browser.