From 35c2cf26e8b8605d7eb17a2879ff760d6e9a096e Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 26 Jul 2022 18:52:59 +0530 Subject: [PATCH] UT: Add null byte case in CustomPBAConfigurationSchema linux filename validation test --- .../unit_tests/common/configuration/test_agent_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/common/configuration/test_agent_configuration.py b/monkey/tests/unit_tests/common/configuration/test_agent_configuration.py index 7941b9c17..f32337e71 100644 --- a/monkey/tests/unit_tests/common/configuration/test_agent_configuration.py +++ b/monkey/tests/unit_tests/common/configuration/test_agent_configuration.py @@ -83,7 +83,7 @@ def test_custom_pba_configuration_schema__empty_filenames_allowed(): assert config.windows_filename == "" -@pytest.mark.parametrize("linux_filename", ["\\", "\\\\\\"]) +@pytest.mark.parametrize("linux_filename", ["\\", "\\\\\\", "\0"]) def test_custom_pba_configuration_schema__invalid_linux_filename(linux_filename): schema = CustomPBAConfigurationSchema()