git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NOTICE: Intent to T&R 2.4.36



> Am 10.10.2018 um 21:30 schrieb Jim Jagielski <jim@xxxxxxxxxxx>:
> 
> 
> 
>> On Oct 10, 2018, at 10:04 AM, Stefan Eissing <stefan.eissing@xxxxxxxxxxxxx> wrote:
>> I have started to convert the existing h2 testsuite in https://svn.apache.org/repos/asf/httpd/test/mod_h2/trunk from shell scripts to pytest in the github repro. I have a pytest suite for mod_md also in its github. 
>> 
>> My hope is to, one day, make those part of a httpd test suite, probably just by combining the separate standalone ones. Then we could have 'modules/ABC/test' as optional part of a module with a defined way to trigger them.
>> 
> 
> That would be great because it seems that almost no one is using it, or has been able to get that test suite to work. I know I haven't.

I would love to get feedback to mod-h2 tests from https://github.com/icing/mod_h2.

If you have an apxs and the apache/apr header files, pytest, nghttp2 and curl on your system, checkout and

> autoconf
> ./configure --with-apxs=<path to apxs>
> make
> make test

On my machine, this gives:

> make test
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C test/ test
rsync -a --exclude="*.in" e2e/conf/*.* /Users/sei/projects/mod-h2/test/gen/apache/conf
cd e2e && py.test
=================================================================== test session starts ====================================================================
platform darwin -- Python 2.7.10, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
rootdir: /Users/sei/projects/mod-h2/test/e2e, inifile:
collected 54 items

test_001_httpd_alive.py ..
test_002_curl_basics.py ......
test_003_curl_get.py .........
test_004_curl_post.py ....
test_100_conn_reuse.py .....
test_101_ssl_reneg.py .....
test_102_require.py ..
test_103_upgrade.py .......
test_200_header_invalid.py ...
test_201_header_conditional.py ..
test_202_trailer.py ....
test_300_interim.py ...
test_400_push.py ..

================================================================ 54 passed in 13.25 seconds ================================================================

On my ubuntu image I get additionally:

===================================================================== warnings summary =====================================================================
test_001_httpd_alive.py::TestStore::()::test_001_02
  /home/sei/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html
    InsecureRequestWarning)

-- Docs: http://doc.pytest.org/en/latest/warnings.html

as I am not using 'mkcert' as of yet and certs are self-signed.