summaryrefslogtreecommitdiff
path: root/testenv/Test--https.py
Commit message (Collapse)AuthorAgeFilesLines
* testenv/Test--https.py: Fix missing importDarshit Shah2020-12-281-1/+1
|
* Fix usage of Magic number of testsDarshit Shah2020-12-281-2/+2
| | | | | | | | | | | | | | testenv/test/base_test.py: Add new variable SKIP_TEST testenv/Test--https-crl.py: Use SKIP_TEST instead of magic number testenv/Test--https.py: Same testenv/Test-hsts.py: Same testenv/Test-no_proxy-env.py: Same testenv/Test-pinnedpubkey-der-https.py: Same testenv/Test-pinnedpubkey-der-no-check-https.py: Same testenv/Test-pinnedpubkey-hash-https.py: Same testenv/Test-pinnedpubkey-hash-no-check-fail-https.py: Same testenv/Test-pinnedpubkey-pem-fail-https.py: Same testenv/Test-pinnedpubkey-pem-https.py: Same
* Set X flags for python testsTim Rühsen2016-04-151-0/+0
| | | | | | * testenv/*.py: Set eXecute flags Regression from commit 926e42d4678689195a0bbed210c6d027db7cc390
* Use test file name for temp working directory nameTim Rühsen2016-04-111-2/+0
| | | | | | | | | | | | | | * testenv/test/base_test.py (__init__): Use test file name for name, remove 'name' parameter * testenv/test/http_test.py (__init__): Remove 'name' parameter * testenv/*.py: Remove TEST_NAME Using a fixed string (TEST_NAME) to build the working directory for testing caused random failures (or successes) when tests share the same TEST_NAME value. Not easy to find without digging into the python test suite code. We now use the test file name, which is unique within the test environment.
* SKIP SSL/TLS tests if configured without itTim Rühsen2015-12-041-0/+3
| | | | | | * testenv/Makefile.am: Set SSL_TESTS env variable * testenv/Test--https-crl.py, testenv/Test--https.py, testenv/Test-hsts.py: Return 77 (SKIP) if SSL/TLS is not configured
* Added new test Test--https-crl.py to check --crl-fileTim Rühsen2014-11-111-1/+3
| | | | | | For this test, a proper CA and server key/cert infrastructure was needed. E.g. without CN being 127.0.0.1 a matching CRL file couldn't be generated.
* Group common switches in test suite togetherDarshit Shah2014-08-041-1/+1
| | | | | | | | | | | | | Some command line switches are passed to Wget unconditionally. These switches should exist in a single place instead of being redundantly defined in each test file. We add the following two switches by default here: 1. --debug: This causes wget to be most verbose and output a lot of debugging information. Hence, if a test fails, the test log should provide valuable information. 2. --no-config: Users may have their own wgetrc files on the system. However, for the tests, we want Wget to run with vanilla settings. Hence, disbale loading any config files.
* Refactor the Python based test suiteZihang Chen2014-07-241-2/+4
| | | | | | | | | | | | This is a squashed commit of the following from parallel-wget: ecd6977 Refactor mainly the test cases classes d26c8eb Create package test for test case classes 507383d Move server classes to package server.protocol 195393b Create package conf where rules and hooks are put 42e482a Create package exc and move TestFailed to exc 82f44f3 Fix a typo in Test-Proto.py 31e5f33 From WgetTest.py move WgetFile to misc 422171d Create package misc, move ColourTerm.py to misc
* More features to Python based test suiteDarshit Shah2014-07-241-0/+51
Squashed Commit from parallel-wget of: b31e6e4 Add support for HTTPS Servers b828a6e Sleep for n seconds before calling Wget Executable 7effa90 Support programatically setting Handler class variables 7e1f4c1 Correct the call to stop_HTTP_Server f616192 Improve error handling when wget executable isn't available 31868fe Split large function to improve readability and extensibility