Changeset 99eb567 in mod_gnutls


Ignore:
Timestamp:
Nov 4, 2018, 9:42:51 AM (10 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
7ff6c6c
Parents:
7f2fd55
Message:

Test suite: Use static output instead of CGI for test 30_ip_based_vhosts

The CGI output usually but not always chunked encoding, and the "not
always" part causes trouble because the output is compared literally
with the expected output. Requesting a static file avoids this.

Location:
test/tests/30_ip_based_vhosts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/tests/30_ip_based_vhosts/apache.conf

    r7f2fd55 r99eb567  
    11Include ${srcdir}/base_apache.conf
    2 Include ${srcdir}/cgi_module.conf
    32
    43GnuTLSCache ${DEFAULT_CACHE}
     4
     5LoadModule      rewrite_module  ${AP_LIBEXECDIR}/mod_rewrite.so
    56
    67<VirtualHost ${VHOST1_IP}:${TEST_PORT}>
     
    1718        GnuTLSKeyFile           server/secret.key
    1819
    19         # CGI is allowed only on this virtual host, so a successful
    20         # request to a CGI script shows that the right server has been
    21         # selected.
    22         <Directory ${srcdir}/data>
    23                 Options +ExecCGI
    24         </Directory>
     20        # Use mod_rewrite to set up a path that will work only on this
     21        # virtual host
     22        RewriteEngine   On
     23        RewriteRule     "^/vhost/test\.txt$" "/test.txt" [PT]
    2524</VirtualHost>
  • test/tests/30_ip_based_vhosts/input

    r7f2fd55 r99eb567  
    1 GET /dump.cgi HTTP/1.1
     1GET /vhost/test.txt HTTP/1.1
    22Host: __HOSTNAME__
    33
  • test/tests/30_ip_based_vhosts/output

    r7f2fd55 r99eb567  
    1 HTTP/1.1 200 OK
     1Accept-Ranges: bytes
     2Content-Length: 5
    23Connection: close
    3 Transfer-Encoding: chunked
    44Content-Type: text/plain
    55
    6 54
    7 ----Certificate:----
    8 
    9 
    10 ----Verification Status:----
    11 NONE
    12 
    13 ----SubjectAltName:----
    14 
    15 
    16 
    17 0
    18 
     6test
    197- Peer has closed the GnuTLS connection
Note: See TracChangeset for help on using the changeset viewer.