Changeset eb4cab7 in mod_gnutls


Ignore:
Timestamp:
Sep 28, 2018, 1:44:29 PM (13 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
1754503
Parents:
c33ef88
Message:

Test suite: Compare cipher suites to test the status page

Expecting a fixed output required a fixed cipher suite, which could
break due to minor changes in GnuTLS. Instead require the status page
and client log to agree about the cipher suite in use. Fix header line
endings in the request while at it.

Location:
test
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • test/test-16_view-status.bash

    rc33ef88 reb4cab7  
    11#!/bin/bash
     2set -e
    23${srcdir}/runtests t-16
     4
     5# expected output file
     6output="outputs/16_view-status.output"
     7# get the cipher suite reported by gnutls-cli
     8cli_suite="$(grep -o -P '(?<=^-\sDescription:\s).*$' "${output}")" || true
     9# extract cipher suite from the server status output
     10status_suite="$(grep -o -P '(?<=^Current TLS session:\s).*$' "${output}")" \
     11    || true
     12
     13echo
     14if [[ -n "${cli_suite}" && "${status_suite}" = "${cli_suite}" ]]; then
     15    echo "Server and client report matching cipher suite: ${status_suite}"
     16else
     17    echo "ERROR: Cipher suites mismatching or missing!"
     18    echo "Server: '${status_suite}'"
     19    echo "Client: '${cli_suite}'"
     20    exit 1
     21fi
  • test/tests/16_view-status/gnutls-cli.args

    rc33ef88 reb4cab7  
    11--x509cafile=authority/x509.pem
    2 --priority=NONE:+VERS-TLS1.2:+AES-128-CBC:+SHA256:+RSA:+COMP-NULL:+SIGN-RSA-SHA256
     2--priority=NORMAL
  • test/tests/16_view-status/input

    rc33ef88 reb4cab7  
    1 GET /status HTTP/1.0
     1GET /status?auto HTTP/1.0
    22Host: __HOSTNAME__
    33
  • test/tests/Makefile.am

    rc33ef88 reb4cab7  
    1616        14_resume_session/apache.conf 14_resume_session/gnutls-cli.args 14_resume_session/input 14_resume_session/output \
    1717        15_basic_msva/apache.conf 15_basic_msva/gnutls-cli.args 15_basic_msva/input 15_basic_msva/output \
    18         16_view-status/apache.conf 16_view-status/gnutls-cli.args 16_view-status/input 16_view-status/output \
     18        16_view-status/apache.conf 16_view-status/gnutls-cli.args 16_view-status/input \
    1919        17_cgi_vars_large_cert/apache.conf 17_cgi_vars_large_cert/gnutls-cli.args 17_cgi_vars_large_cert/input 17_cgi_vars_large_cert/output \
    2020        18_client_verification_wrong_cert/apache.conf 18_client_verification_wrong_cert/gnutls-cli.args 18_client_verification_wrong_cert/input 18_client_verification_wrong_cert/output \
Note: See TracChangeset for help on using the changeset viewer.