Changeset 67f2f58 in mod_gnutls for test


Ignore:
Timestamp:
Feb 11, 2016, 7:15:39 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
f0923c4
Parents:
5aae10e
Message:

Support curl or Wget for test case "26_redirect_HTTP_to_HTTPS"

Location:
test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile.am

    r5aae10e r67f2f58  
    166166        export TEST_MSVA_WAIT="$(TEST_MSVA_WAIT)"; \
    167167        export TEST_QUERY_DELAY="$(TEST_QUERY_DELAY)"; \
    168         export BACKEND_HOST="$(TEST_HOST)";
     168        export BACKEND_HOST="$(TEST_HOST)"; \
     169        export HTTP_CLI="@HTTP_CLI@";
    169170
    170171if ENABLE_NETNS
  • test/test-26_redirect_HTTP_to_HTTPS.bash

    r5aae10e r67f2f58  
    3333
    3434# Send status request over HTTP. This should get redirected to HTTPS.
    35 wget --ca-certificate=authority/x509.pem -O "${output}" \
    36      "http://${TEST_HOST}:${TEST_HTTP_PORT}/status?auto"
     35URL="http://${TEST_HOST}:${TEST_HTTP_PORT}/status?auto"
     36if [ "$(basename ${HTTP_CLI})" = "curl" ]; then
     37    ${HTTP_CLI} --location --cacert authority/x509.pem "${URL}" >"${output}"
     38elif [ "$(basename ${HTTP_CLI})" = "wget" ]; then
     39    ${HTTP_CLI} --ca-certificate=authority/x509.pem -O "${output}" "${URL}"
     40else
     41    echo "No HTTP client (curl or wget) found, skipping." 2>&1
     42    exit 77
     43fi
    3744
    3845# If the request was redirected correctly, the status report lists the
Note: See TracChangeset for help on using the changeset viewer.