Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 969841060D for ; Mon, 21 Dec 2015 10:54:05 +0000 (UTC) Received: (qmail 7636 invoked by uid 500); 21 Dec 2015 10:54:00 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 7570 invoked by uid 500); 21 Dec 2015 10:54:00 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 7561 invoked by uid 99); 21 Dec 2015 10:54:00 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2015 10:54:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 01173C04EA for ; Mon, 21 Dec 2015 10:54:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.8 X-Spam-Level: * X-Spam-Status: No, score=1.8 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id T7rYdqUbUSJY for ; Mon, 21 Dec 2015 10:53:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id B7CE0439B3 for ; Mon, 21 Dec 2015 10:53:45 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3E80DE0428 for ; Mon, 21 Dec 2015 10:53:45 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id F294F3A0051 for ; Mon, 21 Dec 2015 10:53:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1721120 - in /httpd/test/mod_h2/trunk: conf/httpd.conf htdocs/test.example.org/hello.py test/test_alt_host.sh test/test_common.sh test/test_curl_get.sh test/test_nghttp_get.sh Date: Mon, 21 Dec 2015 10:53:44 -0000 To: cvs@httpd.apache.org From: icing@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20151221105344.F294F3A0051@svn01-us-west.apache.org> Author: icing Date: Mon Dec 21 10:53:44 2015 New Revision: 1721120 URL: http://svn.apache.org/viewvc?rev=1721120&view=rev Log: added tests for new env vars HTTP2 and H2PUSH Modified: httpd/test/mod_h2/trunk/conf/httpd.conf httpd/test/mod_h2/trunk/htdocs/test.example.org/hello.py httpd/test/mod_h2/trunk/test/test_alt_host.sh httpd/test/mod_h2/trunk/test/test_common.sh httpd/test/mod_h2/trunk/test/test_curl_get.sh httpd/test/mod_h2/trunk/test/test_nghttp_get.sh Modified: httpd/test/mod_h2/trunk/conf/httpd.conf URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/conf/httpd.conf?rev=1721120&r1=1721119&r2=1721120&view=diff ============================================================================== --- httpd/test/mod_h2/trunk/conf/httpd.conf (original) +++ httpd/test/mod_h2/trunk/conf/httpd.conf Mon Dec 21 10:53:44 2015 @@ -106,6 +106,10 @@ MaxKeepAliveRequests 0 H2PushPriority image/png after 32 H2PushPriority application/javascript interleaved + = 2.4.19> + H2Timeout 1 + H2KeepAliveTimeout 5 + Modified: httpd/test/mod_h2/trunk/htdocs/test.example.org/hello.py URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/htdocs/test.example.org/hello.py?rev=1721120&r1=1721119&r2=1721120&view=diff ============================================================================== --- httpd/test/mod_h2/trunk/htdocs/test.example.org/hello.py (original) +++ httpd/test/mod_h2/trunk/htdocs/test.example.org/hello.py Mon Dec 21 10:53:44 2015 @@ -11,5 +11,7 @@ print """\ print "HTTPS=" + os.getenv('HTTPS', '') + "
" print "PROTOCOL=" + os.getenv('SERVER_PROTOCOL', '') + "
" print "SSL_PROTOCOL=" + os.getenv('SSL_PROTOCOL', '') + "
" +print "HTTP2=" + os.getenv('HTTP2', '') + "
" +print "H2PUSH=" + os.getenv('H2PUSH', '') + "
" print """ """ \ No newline at end of file Modified: httpd/test/mod_h2/trunk/test/test_alt_host.sh URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_alt_host.sh?rev=1721120&r1=1721119&r2=1721120&view=diff ============================================================================== --- httpd/test/mod_h2/trunk/test/test_alt_host.sh (original) +++ httpd/test/mod_h2/trunk/test/test_alt_host.sh Mon Dec 21 10:53:44 2015 @@ -52,6 +52,8 @@ curl_check_content hello.py "serveralias HTTPS=on
PROTOCOL=HTTP/2
SSL_PROTOCOL=${EXP_SSL_PROTOCOL}
+HTTP2=${EXP_HTTP2}
+H2PUSH=${EXP_H2PUSH}
EOF @@ -66,6 +68,8 @@ curl_check_content hello.py "test2 host" HTTPS=on
PROTOCOL=HTTP/2
SSL_PROTOCOL=${EXP_SSL_PROTOCOL}
+HTTP2=on
+H2PUSH=on
EOF Modified: httpd/test/mod_h2/trunk/test/test_common.sh URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_common.sh?rev=1721120&r1=1721119&r2=1721120&view=diff ============================================================================== --- httpd/test/mod_h2/trunk/test/test_common.sh (original) +++ httpd/test/mod_h2/trunk/test/test_common.sh Mon Dec 21 10:53:44 2015 @@ -22,6 +22,8 @@ OPT_DIRECT="$2" EXP_PROTOCOL="${3:-HTTP/2}" EXP_SSL_PROTOCOL="" EXP_HTTPS="" +EXP_HTTP2="" +EXP_H2PUSH="" AUTH="${URL_PREFIX#*://}" HOST="${AUTH%%:*}" @@ -70,6 +72,17 @@ fail() { exit 1 } +case "$URL_PREFIX" in + */proxy|*/rewrite) + EXP_HTTP2="" + EXP_H2PUSH="" + ;; + *) + EXP_HTTP2="on" + EXP_H2PUSH="on" + ;; +esac + case "$OPT_DIRECT" in "direct") ARG_UPGRADE="" Modified: httpd/test/mod_h2/trunk/test/test_curl_get.sh URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_curl_get.sh?rev=1721120&r1=1721119&r2=1721120&view=diff ============================================================================== --- httpd/test/mod_h2/trunk/test/test_curl_get.sh (original) +++ httpd/test/mod_h2/trunk/test/test_curl_get.sh Mon Dec 21 10:53:44 2015 @@ -45,6 +45,8 @@ curl_check_content hello.py "default" << HTTPS=${EXP_HTTPS}
PROTOCOL=HTTP/1.1
SSL_PROTOCOL=${EXP_SSL_PROTOCOL}
+HTTP2=
+H2PUSH=
EOF @@ -57,6 +59,8 @@ curl_check_content hello.py "http/1.1" - HTTPS=${EXP_HTTPS}
PROTOCOL=HTTP/1.1
SSL_PROTOCOL=${EXP_SSL_PROTOCOL}
+HTTP2=
+H2PUSH=
EOF @@ -69,6 +73,8 @@ curl_check_content hello.py "http2" - HTTPS=${EXP_HTTPS}
PROTOCOL=${EXP_PROTOCOL}
SSL_PROTOCOL=${EXP_SSL_PROTOCOL}
+HTTP2=${EXP_HTTP2}
+H2PUSH=${EXP_H2PUSH}
EOF Modified: httpd/test/mod_h2/trunk/test/test_nghttp_get.sh URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/test/test_nghttp_get.sh?rev=1721120&r1=1721119&r2=1721120&view=diff ============================================================================== --- httpd/test/mod_h2/trunk/test/test_nghttp_get.sh (original) +++ httpd/test/mod_h2/trunk/test/test_nghttp_get.sh Mon Dec 21 10:53:44 2015 @@ -264,6 +264,8 @@ nghttp_check_content hello.py "get hello HTTPS=${EXP_HTTPS}
PROTOCOL=${EXP_PROTOCOL}
SSL_PROTOCOL=${EXP_SSL_PROTOCOL}
+HTTP2=${EXP_HTTP2}
+H2PUSH=${EXP_H2PUSH}
EOF