summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-07-01Fixing multiple TLS-enabled listeners initialization.Max Romanov1-0/+13
Because of the incorrect 'last' field assignment, multiple listeners with a TLS certificate did not initialize properly, which caused a router crash while establishing a connection. Test with multiple TLS listeners added. The issue was introduced in the c548e46fe516 commit. This closes #561 issue on GitHub.
2021-05-26Tests: added TLS test without close notify.Andrei Zeliankou1-0/+23
2021-05-12Tests: added test for TLS with IP in SAN.Andrei Zeliankou1-0/+23
2021-05-07Tests: added test for TLS with empty Subject field.Andrei Zeliankou1-109/+130
2021-04-08Tests: preserving unit.log when run without restart.Max Romanov1-5/+0
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals.
2021-04-05Tests: style.Andrei Zeliankou1-1/+2
2021-02-08Tests: added "--restart" option.Andrei Zeliankou1-1/+1
Now Unit do not restart after each test by default.
2021-01-14Tests: added missing checks for configuration results.Andrei Zeliankou1-5/+7
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2020-12-08Tests: skip_alert() converted to the fixture.Andrei Zeliankou1-2/+1
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-11-16Tests: fixing tests interrupt in terminal.Max Romanov1-0/+4
KeyboardInterrupt re-raised.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-33/+34
2020-10-07Tests: minor fixes.Andrei Zeliankou1-3/+4
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-212/+186
2020-05-15Tests: style.Andrei Zeliankou1-1/+1
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2020-04-14Tests: minor fixes and style.Andrei Zeliankou1-2/+3
2020-03-10Tests: redirect tests output to the stdout.Andrei Zeliankou1-6/+12
2020-02-05Tests: added test for uploading files with SSL.Tiago Natel de Moura1-0/+22
* * * [mq]: multipart
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-07-14Tests: TestApplicationTLS.openssl_conf() introduced.Andrey Zelenkov1-0/+2
2019-07-14Tests: removed unnecessary initialization.Andrey Zelenkov1-2/+0
That could leads to the incorrect behaviour in test_tls_application_respawn.
2019-07-14Tests: removed unused import.Andrey Zelenkov1-1/+0
2019-07-08Tests: made openssl certificates more strong to avoid errors.Andrey Zelenkov1-2/+2
2019-05-30Tests: adjusted skipping tests.Andrey Zelenkov1-5/+5
2019-04-22Tests: using "pass" option instead of deprecated "application".Valentin Bartenev1-3/+8
2019-04-09Tests: speed up tests.Andrey Zelenkov1-0/+12
2019-04-09Tests: wait_for_record() introduced.Andrey Zelenkov1-8/+0
2019-04-09Tests: simplified module checking.Andrey Zelenkov1-3/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-4/+5
2019-03-26Tests: style.Andrey Zelenkov1-162/+307
2019-03-21Adjusting request schema value according to connection tls state.Max Romanov1-0/+21
This closes #223 issue on GitHub.
2019-02-27Tests: added "Host" and "Connetion" headers where necessary.Andrey Zelenkov1-14/+14
Also minor header organizing.
2018-12-25Tests: fixed test_tls_reconfigure.Andrey Zelenkov1-9/+11
Previously, order of applying TLS configuration and sending partial request to the application was uncertain. These changes make sure that client-application connection was established before reconfiguration. Additionally, added test to check that non-TLS connection works correctly after reconfiguration.
2018-11-15Tests: added command line arguments parsing in tests.Andrey Zelenkov1-1/+1
Added the following command line arguments: -d, --detailed: Show detailed output for tests Usage examples: ./test/run.py --detailed python3 test/test_access_log.py --detailed python3 test/test_access_log.py -d TestUnitAccessLog.test_access_log_ipv6 -l, --log: Save unit.log after the test execution Usage examples: ./test/run.py -l python3 test/test_access_log.py -l python3 test/test_access_log.py --log TestUnitAccessLog.test_access_log_ipv6
2018-10-18Tests: provide openssl.conf in test_tls_certificate_key_ec.Sergey Kandaurov1-0/+3
Previously, test failed if openssl was unable to load config info, or the system's openssl.cnf was picked up, which is wrong as well.
2018-09-20Tests: TLS tests.Andrey Zelenkov1-0/+417