summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-16/+15
Also fixed various pylint errors and style issues.
2023-11-08Tests: 8XXX used as default port range.Andrei Zeliankou1-10/+10
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-498/+519
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-06-12Tests: prerequisites checking reworked.Andrei Zeliankou1-2/+2
Prerequisites check moved to the module level to simplify class structure. Discovery and prerequisites checks functions moved to the separate files. Introduced "require" fixture to provide per-test requirements check.
2023-05-29Tests: more fixtures.Andrei Zeliankou1-11/+11
Common methods from applications/proto.py converted to the fixtures. sysctl check moved to the specific file where it is using. Some options moved to the constructor to have early access.
2023-05-25Tests: assertion related fixes.Andrei Zeliankou1-2/+2
2023-05-25Tests: removed unused variables.Andrei Zeliankou1-4/+4
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-44/+39
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.
2022-09-07Tests: minor fixes.Andrei Zeliankou1-15/+2
2022-08-11Fixing isolated process PID manipulation.Max Romanov1-1/+1
Registering an isolated PID in the global PID hash is wrong because it can be duplicated. Isolated processes are stored only in the children list until the response for the WHOAMI message is processed and the global PID is discovered. To remove isolated siblings, a pointer to the children list is introduced in the nxt_process_init_t struct. This closes #633 issue on GitHub.
2022-07-28Tests: added flags to search functions in proto.py.Andrei Zeliankou1-4/+1
Also removed unnesessary re.compile() calls.
2022-06-30Tests: minor improvements.Andrei Zeliankou1-1/+1
Added "go" availability check before trying to build an application. update_action() method used were possible and fixed bug with the relative path determination in test_static_chroot.py. Templates optimization and style fixes.
2022-05-09Tests: added more tests with reconfiguration.Andrei Zeliankou1-21/+0
2022-04-11Tests: style.Andrei Zeliankou1-3/+1
2022-02-15Tests: added test with long certificate chain.Andrei Zeliankou1-0/+45
2022-01-31Tests: removed TestApplicationTLS.get_server_certificate().Andrei Zeliankou1-4/+8
distutils.version is replaced by packaging.version. Also minor style fixes.
2021-11-15Tests: refactored working with processes.Andrei Zeliankou1-5/+5
2021-11-09Tests: app prototype related fixes.Max Romanov1-1/+1
2021-10-18Tests: style.Andrei Zeliankou1-2/+0
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