summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/tls.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-04-10Tests: compatibility with OpenSSL 3.2.0Andrei Zeliankou1-1/+5
OpenSSL 3.2.0 generates X.509v3 certificates by default. These certificates, even self-signed, cannot sign other certificates unless "CA:TRUE" is explicitly set in the basicConstraints extension. As a result, tests attempting this are currently failing. Fix is to provide "CA:TRUE" in the basicConstraints for self-signed root certificates used in "openssl ca" commands. Closes: https://github.com/nginx/unit/issues/1202 Tested-by: Andrew Clayton <a.clayton@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-1/+1
Also fixed various pylint errors and style issues.
2023-11-08Tests: 8XXX used as default port range.Andrei Zeliankou1-1/+1
After the launch of the project, the testing infrastructure was shared with nginx project in some cases. To avoid port overlap, a decision was made to shift the port range for Unit tests. This problem was resolved a long time ago and is no longer relevant, so it is now safe to use port 8XXX range as the default, as it is more appropriate for testing purposes.
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-8/+10
Class usage came from the unittest framework and it was always redundant after migration to the pytest. This commit removes classes from files containing tests to make them more readable and understandable.
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-24/+18
Previously, it was necessary to support older versions of Python for compatibility. F-strings were released in Python 3.6. Python 3.5 was marked as unsupported by the end of 2020, so now it's possible to start using f-strings safely for better readability and performance.
2023-02-21Tests: removed list usage as default argument.Andrei Zeliankou1-1/+3
Mutable types as default arguments is bad practice since they are evaluated only once when the function is defined.
2022-01-31Tests: removed TestApplicationTLS.get_server_certificate().Andrei Zeliankou1-15/+0
distutils.version is replaced by packaging.version. Also minor style fixes.
2021-11-15Tests: refactored working with processes.Andrei Zeliankou1-1/+1
2021-05-12Tests: added test for TLS with IP in SAN.Andrei Zeliankou1-2/+7
2021-04-05Tests: style.Andrei Zeliankou1-7/+15
2021-03-26Tests: SNI.Andrei Zeliankou1-3/+18
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-10-19Tests: fixed unit.log print.Andrei Zeliankou1-8/+6
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+1
2020-10-01Tests: minor fixes.Andrei Zeliankou1-21/+0
Fixed temporary dir removing. Fixed printing path to log. Module checks moved to the separate file.
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-11/+12
2020-05-15Tests: style.Andrei Zeliankou1-0/+1
2020-03-10Tests: redirect tests output to the stdout.Andrei Zeliankou1-1/+2
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-0/+22
2019-07-14Tests: TestApplicationTLS.openssl_conf() introduced.Andrey Zelenkov1-5/+12
2019-07-14Tests: check application configuration loading in TLS tests.Andrey Zelenkov1-1/+1
2019-07-08Tests: made openssl certificates more strong to avoid errors.Andrey Zelenkov1-1/+1
2019-04-22Tests: using "pass" option instead of deprecated "application".Valentin Bartenev1-1/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-0/+92