unit/test
Gourav d67d350142 tests: Add tests for python application factories
Add the following tests cases:

1. When "factory" key is used inside the "targets" option.
2. When "factory" key is used at the root level of python application
   config.
3. When factory returns invalid callable or When factory is invalid
   callable

Link: <https://github.com/nginx/unit/pull/1336>
[ Commit subject & message formatting tweaks - Andrew ]
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-07-02 19:13:14 +01:00
..
go Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
java Tests: added Java threading tests. 2020-11-05 00:06:13 +03:00
njs Tests: added tests for NJS loadable modules. 2023-05-10 13:02:52 +01:00
node fix: Take options as well as requestListener (#1091) 2024-02-14 18:16:01 +00:00
perl Tests: added Perl test with many responses using streaming body. 2023-03-14 11:06:09 +00:00
php Tests: added more OPcache tests. 2021-12-11 00:16:59 +00:00
python tests: Add tests for python application factories 2024-07-02 19:13:14 +01:00
ruby Tests: added Ruby tests with array in header values 2024-01-16 15:59:30 +00:00
unit Tests: chunked request body 2024-06-24 14:17:51 +01:00
conftest.py Tests: print unit.log on unsuccessful unmount 2024-06-07 17:36:15 +01:00
pytest.ini Tests: hyphen sign used unstead of underscore as more common. 2020-12-12 20:08:03 +00:00
requirements.txt Tests: added "requirements.txt". 2021-11-04 18:13:19 +00:00
test_access_log.py Tests: "if" option in access logging. 2024-01-29 17:54:26 +00:00
test_asgi_application.py Python: bytearray body support for ASGI module. 2024-02-21 14:06:43 +00:00
test_asgi_application_unix_abstract.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_asgi_lifespan.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_asgi_targets.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_asgi_websockets.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_chunked.py Tests: chunked request body 2024-06-24 14:17:51 +01:00
test_client_ip.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_configuration.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_forwarded_header.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_go_application.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_go_isolation.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_go_isolation_rootfs.py Tests: get rid of classes in test files. 2023-06-14 18:20:09 +01:00
test_http_header.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_java_application.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_java_isolation_rootfs.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_java_websockets.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_njs.py Tests: NJS cacheable variables with access log 2024-03-12 18:37:46 +00:00
test_njs_modules.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_node_application.py fix: Take options as well as requestListener (#1091) 2024-02-14 18:16:01 +00:00
test_node_es_modules.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_node_websockets.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_perl_application.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_php_application.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_php_basic.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_php_isolation.py Tests: get rid of classes in test files. 2023-06-14 18:20:09 +01:00
test_php_targets.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_procman.py Tests: renamed test_python_procman.py since it's not Python-specific 2024-02-21 17:40:25 +00:00
test_proxy.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_proxy_chunked.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_python_application.py tests: REQUEST_URI variable test with rewrite 2024-05-09 09:51:34 +08:00
test_python_basic.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_python_environment.py Tests: get rid of classes in test files. 2023-06-14 18:20:09 +01:00
test_python_factory.py tests: Add tests for python application factories 2024-07-02 19:13:14 +01:00
test_python_isolation.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_python_isolation_chroot.py Tests: get rid of classes in test files. 2023-06-14 18:20:09 +01:00
test_python_targets.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_reconfigure.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_reconfigure_tls.py Tests: skip some of TLS reconfiguration tests under AddressSanitizer 2024-02-21 17:40:25 +00:00
test_respawn.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_response_headers.py Tests: error report corrected for unknown variables in "response_headers" 2024-04-10 17:04:30 +01:00
test_return.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_rewrite.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_routing.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_routing_tls.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_ruby_application.py Tests: added Ruby tests with array in header values 2024-01-16 15:59:30 +00:00
test_ruby_hooks.py Tests: Ruby hook tests unstable for version older 3.0 2024-02-21 17:40:25 +00:00
test_ruby_isolation.py Tests: get rid of classes in test files. 2023-06-14 18:20:09 +01:00
test_settings.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static_chroot.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static_fallback.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static_mount.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static_share.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static_symlink.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static_types.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_static_variables.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_status.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_status_tls.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_tls.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_tls_conf_command.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_tls_session.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_tls_sni.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_tls_tickets.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_unix_abstract.py Tests: 8XXX used as default port range. 2023-11-08 18:37:02 +00:00
test_upstreams_rr.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_usr1.py Tests: pathlib used where appropriate 2024-01-15 15:48:58 +00:00
test_variables.py tests: Change request_uri tests for changed behaviour 2024-05-09 09:51:34 +08:00