Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved alphanumeric_symbols regex to cover certain SCA remediation fields #16756

Merged

Added new symbol to regex for validator

df2b5db
Select commit
Failed to load commit list.
Merged

Improved alphanumeric_symbols regex to cover certain SCA remediation fields #16756

Added new symbol to regex for validator
df2b5db
Select commit
Failed to load commit list.
Wazuh CI / Test: API IT - Tier 0,1 -manager succeeded May 10, 2023 in 21m 2s

Test_integration

= 66 passed, 21 skipped, 4 deselected, 1 xfailed, 1 xpassed, 9 warnings in 1250.84s (0:20:50) =

Details

============================= test session starts ==============================
platform linux -- Python 3.10.9, pytest-7.1.2, pluggy-1.0.0 -- /bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.10.9', 'Platform': 'Linux-3.10.0-1160.81.1.el7.x86_64-x86_64-with-glibc2.17', 'Packages': {'pytest': '7.1.2', 'pluggy': '1.0.0'}, 'Plugins': {'testinfra': '5.0.0', 'metadata': 
'2.0.4', 'html': '3.1.1'}}
rootdir: /tmp/Test_integration_B38421_20230510142649/tests/integration, configfile: pytest.ini
plugins: testinfra-5.0.0, metadata-2.0.4, html-3.1.1
collecting ... collected 93 items / 4 deselected / 89 selected

test_api/test_config/test_DOS_blocking_system/test_DOS_blocking_system.py::test_DOS_blocking_system[get_configuration0-tags_to_apply0] PASSED [  1%]
test_api/test_config/test_DOS_blocking_system/test_DOS_blocking_system.py::test_DOS_blocking_system[get_configuration0-tags_to_apply1] SKIPPED [  2%]
test_api/test_config/test_DOS_blocking_system/test_DOS_blocking_system.py::test_DOS_blocking_system[get_configuration1-tags_to_apply0] SKIPPED [  3%]
test_api/test_config/test_DOS_blocking_system/test_DOS_blocking_system.py::test_DOS_blocking_system[get_configuration1-tags_to_apply1] PASSED [  4%]
test_api/test_config/test_bruteforce_blocking_system/test_bruteforce_blocking_system.py::test_bruteforce_blocking_system[get_configuration0-tags_to_apply0] PASSED [  5%]
test_api/test_config/test_bruteforce_blocking_system/test_bruteforce_blocking_system.py::test_bruteforce_blocking_system[get_configuration0-tags_to_apply1] SKIPPED [  6%]
test_api/test_config/test_bruteforce_blocking_system/test_bruteforce_blocking_system.py::test_bruteforce_blocking_system[get_configuration1-tags_to_apply0] SKIPPED [  7%]
test_api/test_config/test_bruteforce_blocking_system/test_bruteforce_blocking_system.py::test_bruteforce_blocking_system[get_configuration1-tags_to_apply1] PASSED [  8%]
test_api/test_config/test_cache/test_cache.py::test_cache[get_configuration0-tags_to_apply0] PASSED [ 10%]
test_api/test_config/test_cache/test_cache.py::test_cache[get_configuration0-tags_to_apply1] SKIPPED [ 11%]
test_api/test_config/test_cache/test_cache.py::test_cache[get_configuration1-tags_to_apply0] SKIPPED [ 12%]
test_api/test_config/test_cache/test_cache.py::test_cache[get_configuration1-tags_to_apply1] PASSED [ 13%]
test_api/test_config/test_cors/test_cors.py::test_cors[get_configuration0-https://test_url.com-tags_to_apply0] XFAIL [ 14%]
test_api/test_config/test_cors/test_cors.py::test_cors[get_configuration0-http://other_url.com-tags_to_apply1] XPASS [ 15%]
test_api/test_config/test_drop_privileges/test_drop_privileges.py::test_drop_privileges[get_configuration0-tags_to_apply0] PASSED [ 16%]
test_api/test_config/test_drop_privileges/test_drop_privileges.py::test_drop_privileges[get_configuration0-tags_to_apply1] SKIPPED [ 17%]
test_api/test_config/test_drop_privileges/test_drop_privileges.py::test_drop_privileges[get_configuration1-tags_to_apply0] SKIPPED [ 19%]
test_api/test_config/test_drop_privileges/test_drop_privileges.py::test_drop_privileges[get_configuration1-tags_to_apply1] PASSED [ 20%]
test_api/test_config/test_experimental_features/test_experimental_features.py::test_experimental_features[get_configuration0-tags_to_apply0] PASSED [ 21%]
test_api/test_config/test_experimental_features/test_experimental_features.py::test_experimental_features[get_configuration0-tags_to_apply1] SKIPPED [ 22%]
test_api/test_config/test_experimental_features/test_experimental_features.py::test_experimental_features[get_configuration1-tags_to_apply0] SKIPPED [ 23%]
test_api/test_config/test_experimental_features/test_experimental_features.py::test_experimental_features[get_configuration1-tags_to_apply1] PASSED [ 24%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration0-False-tags_to_apply0] PASSED [ 25%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration0-True-tags_to_apply1] SKIPPED [ 26%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration1-False-tags_to_apply0] PASSED [ 28%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration1-True-tags_to_apply1] SKIPPED [ 29%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration2-False-tags_to_apply0] SKIPPED [ 30%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration2-True-tags_to_apply1] PASSED [ 31%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration3-False-tags_to_apply0] SKIPPED [ 32%]
test_api/test_config/test_host_port/test_host_port.py::test_host_port[get_configuration3-True-tags_to_apply1] PASSED [ 33%]
test_api/test_config/test_https/test_https.py::test_https[get_configuration0-tags_to_apply0] PASSED [ 34%]
test_api/test_config/test_https/test_https.py::test_https[get_configuration0-tags_to_apply1] SKIPPED [ 35%]
test_api/test_config/test_https/test_https.py::test_https[get_configuration1-tags_to_apply0] SKIPPED [ 37%]
test_api/test_config/test_https/test_https.py::test_https[get_configuration1-tags_to_apply1] PASSED [ 38%]
test_api/test_config/test_jwt_token_exp_timeout/test_jwt_token_exp_timeout.py::test_jwt_token_exp_timeout[get_configuration0-tags_to_apply0] PASSED [ 39%]
test_api/test_config/test_jwt_token_exp_timeout/test_jwt_token_exp_timeout.py::test_jwt_token_exp_timeout[get_configuration0-tags_to_apply1] SKIPPED [ 40%]
test_api/test_config/test_jwt_token_exp_timeout/test_jwt_token_exp_timeout.py::test_jwt_token_exp_timeout[get_configuration1-tags_to_apply0] SKIPPED [ 41%]
test_api/test_config/test_jwt_token_exp_timeout/test_jwt_token_exp_timeout.py::test_jwt_token_exp_timeout[get_configuration1-tags_to_apply1] PASSED [ 42%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[INFO-JSON] PASSED [ 43%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[ERROR-JSON] PASSED [ 44%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[INFO-PLAIN] PASSED [ 46%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[ERROR-PLAIN] PASSED [ 47%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[INFO-JSON-PLAIN] PASSED [ 48%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[ERROR-JSON-PLAIN] PASSED [ 49%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[INFO-PLAIN-JSON] PASSED [ 50%]
test_api/test_config/test_logs/test_api_logs_formats.py::test_api_logs_formats[ERROR-PLAIN-JSON] PASSED [ 51%]
test_api/test_config/test_logs/test_logs.py::test_logs[info] PASSED      [ 52%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_request_headers[info] PASSED [ 53%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_json_body[info-GET-None] PASSED [ 55%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_json_body[info-POST-json_body1] PASSED [ 56%]
test_api/test_config/test_logs/test_logs.py::test_logs[debug] PASSED     [ 57%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_request_headers[debug] PASSED [ 58%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_json_body[debug-GET-None] PASSED [ 59%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_json_body[debug-POST-json_body1] PASSED [ 60%]
test_api/test_config/test_logs/test_logs.py::test_logs[debug2] SKIPPED   [ 61%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_request_headers[debug2] PASSED [ 62%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_json_body[debug2-GET-None] PASSED [ 64%]
test_api/test_config/test_logs/test_logs.py::test_request_logging_json_body[debug2-POST-json_body1] PASSED [ 65%]
test_api/test_config/test_rbac/test_rbac_mode.py::test_rbac_mode[get_configuration0-tags_to_apply0] PASSED [ 66%]
test_api/test_config/test_rbac/test_rbac_mode.py::test_rbac_mode[get_configuration0-tags_to_apply1] SKIPPED [ 67%]
test_api/test_config/test_rbac/test_rbac_mode.py::test_rbac_mode[get_configuration1-tags_to_apply0] SKIPPED [ 68%]
test_api/test_config/test_rbac/test_rbac_mode.py::test_rbac_mode[get_configuration1-tags_to_apply1] PASSED [ 69%]
test_api/test_config/test_request_timeout/test_request_timeout.py::test_request_timeout[get_configuration0-tags_to_apply0] PASSED [ 70%]
test_api/test_middlewares/test_response_postprocessing.py::test_response_postprocessing[POST-/agents-json_body0-True-400-expected_response_text0] PASSED [ 71%]
test_api/test_middlewares/test_response_postprocessing.py::test_response_postprocessing[GET-/not_found_endpoint-None-True-404-expected_response_text1] PASSED [ 73%]
test_api/test_middlewares/test_response_postprocessing.py::test_response_postprocessing[GET-/agents-None-False-401-expected_response_text2] PASSED [ 74%]
test_api/test_middlewares/test_response_postprocessing.py::test_response_postprocessing[POST-/security/user/authenticate-None-False-401-expected_response_text3] PASSED [ 75%]
test_api/test_middlewares/test_set_secure_headers.py::test_secure_headers PASSED [ 76%]
test_api/test_rbac/test_add_old_resource.py::test_add_old_user PASSED    [ 77%]
test_api/test_rbac/test_add_old_resource.py::test_add_old_role PASSED    [ 78%]
test_api/test_rbac/test_add_old_resource.py::test_add_old_policy PASSED  [ 79%]
test_api/test_rbac/test_add_old_resource.py::test_add_old_rule PASSED    [ 80%]
test_api/test_rbac/test_admin_resources.py::test_admin_users PASSED      [ 82%]
test_api/test_rbac/test_admin_resources.py::test_admin_roles PASSED      [ 83%]
test_api/test_rbac/test_admin_resources.py::test_admin_policies PASSED   [ 84%]
test_api/test_rbac/test_admin_resources.py::test_admin_rules PASSED      [ 85%]
test_api/test_rbac/test_policy_position.py::test_policy_position PASSED  [ 86%]
test_api/test_rbac/test_remove_relationship.py::test_remove_user_role_relationship PASSED [ 87%]
test_api/test_rbac/test_remove_relationship.py::test_remove_role_policy_relationship PASSED [ 88%]
test_api/test_rbac/test_remove_relationship.py::test_remove_role_rule_relationship PASSED [ 89%]
test_api/test_rbac/test_remove_resource.py::test_remove_rule PASSED      [ 91%]
test_api/test_rbac/test_remove_resource.py::test_remove_policy PASSED    [ 92%]
test_api/test_rbac/test_remove_resource.py::test_remove_user PASSED      [ 93%]
test_api/test_rbac/test_remove_resource.py::test_remove_role PASSED      [ 94%]
test_api/test_statistics/test_statistics_format.py::test_manager_statistics_format[remoted_endpoint] PASSED [ 95%]
test_api/test_statistics/test_statistics_format.py::test_manager_statistics_format[analysisd_endpoint] PASSED [ 96%]
test_api/test_statistics/test_statistics_format.py::test_manager_statistics_format[wazuh-db_endpoint] PASSED [ 97%]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[remoted_endpoint] PASSED [ 98%]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[analysisd_endpoint] PASSED [100%]

=============================== warnings summary ===============================
test_api/test_config/test_request_timeout/test_request_timeout.py::test_request_timeout[get_configuration0-tags_to_apply0]
  /usr/local/python-3.10/lib/python3.10/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verificatio
n is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
    warnings.warn(

test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[remoted_endpoint]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[analysisd_endpoint]
  /usr/local/python-3.10/lib/python3.10/site-packages/wazuh_testing-4.5.0-py3.10.egg/wazuh_testing/tools/agent_simulator.py:240: DeprecationWarning: ssl.PROTOCOL_TLSv1_2 is deprecated
    context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)

test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[remoted_endpoint]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[remoted_endpoint]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[remoted_endpoint]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[analysisd_endpoint]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[analysisd_endpoint]
test_api/test_statistics/test_statistics_format.py::test_agent_statistics_format[analysisd_endpoint]
  /usr/local/python-3.10/lib/python3.10/site-packages/wazuh_testing-4.5.0-py3.10.egg/wazuh_testing/tools/agent_simulator.py:1519: DeprecationWarning: setDaemon() is deprecated, set the daemon attribut
e instead
    self.threads[thread].setDaemon(True)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated html file: file:///tmp/Test_integration_B38421_20230510142649/report.html -
= 66 passed, 21 skipped, 4 deselected, 1 xfailed, 1 xpassed, 9 warnings in 1250.84s (0:20:50) =