You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API specification has a key with an empty value that is causing some Framework unit tests to fail. The conflicting key is at /wazuh/api/api/spec/spec.yaml:11624 and can be fixed by adding a None value to it.
Tavern 1.2.2 and pykwalify 1.7.0 must be installed to reproduce the error.
Test results
(venv2) gasti@pop-os:~/wazuh$ python3 -m pytest ~/wazuh/framework/wazuh/tests/test_security.py==================================================================== test session starts ====================================================================platform linux -- Python 3.9.16, pytest-5.4.3, py-1.11.0, pluggy-0.13.1rootdir: /home/gasti/work/wazuh/frameworkplugins: aiohttp-0.3.0, tavern-1.2.2, trio-0.7.0, html-2.1.1, asyncio-0.15.1, metadata-2.0.4collected 71 items framework/wazuh/tests/test_security.py ............................................................FFFFFFF.... [100%]FAILED framework/wazuh/tests/test_security.py::test_rbac_catalog[get_rbac_actions-params0-expected_result0] - tavern.util.exceptions.BadSchemaError: Error at /wazuh/api/api/spec/spec.yaml:11623 - column 28 - cannot define an empty value in test - either give it a value or explicitly set it to NoneFAILED framework/wazuh/tests/test_security.py::test_rbac_catalog[get_rbac_actions-params1-expected_result1] - tavern.util.exceptions.BadSchemaError: Error at /wazuh/api/api/spec/spec.yaml:11623 - column 28 - cannot define an empty value in test - either give it a value or explicitly set it to NoneFAILED framework/wazuh/tests/test_security.py::test_rbac_catalog[get_rbac_actions-params2-expected_result2] - tavern.util.exceptions.BadSchemaError: Error at /wazuh/api/api/spec/spec.yaml:11623 - column 28 - cannot define an empty value in test - either give it a value or explicitly set it to NoneFAILED framework/wazuh/tests/test_security.py::test_rbac_catalog[get_rbac_actions-params3-expected_result3] - tavern.util.exceptions.BadSchemaError: Error at /wazuh/api/api/spec/spec.yaml:11623 - column 28 - cannot define an empty value in test - either give it a value or explicitly set it to NoneFAILED framework/wazuh/tests/test_security.py::test_rbac_catalog[get_rbac_resources-params4-expected_result4] - tavern.util.exceptions.BadSchemaError: Error at /wazuh/api/api/spec/spec.yaml:11623 - column 28 - cannot define an empty value in test - either give it a value or explicitly set it to NoneFAILED framework/wazuh/tests/test_security.py::test_rbac_catalog[get_rbac_resources-params5-expected_result5] - tavern.util.exceptions.BadSchemaError: Error at /wazuh/api/api/spec/spec.yaml:11623 - column 28 - cannot define an empty value in test - either give it a value or explicitly set it to NoneFAILED framework/wazuh/tests/test_security.py::test_rbac_catalog[get_rbac_resources-params6-expected_result6] - tavern.util.exceptions.BadSchemaError: Error at /wazuh/api/api/spec/spec.yaml:11623 - column 28 - cannot define an empty value in test - either give it a value or explicitly set it to None
Checks
The following elements have been updated or reviewed (should also be checked if no modification is required):
Tests (unit tests, API integration tests).
Changelog.
Documentation.
Integration test mapping (using api/test/integration/mapping/_test_mapping.py).
The text was updated successfully, but these errors were encountered:
Description
The API specification has a key with an empty value that is causing some Framework unit tests to fail. The conflicting key is at
/wazuh/api/api/spec/spec.yaml:11624
and can be fixed by adding aNone
value to it.Test results
Checks
The following elements have been updated or reviewed (should also be checked if no modification is required):
api/test/integration/mapping/_test_mapping.py
).The text was updated successfully, but these errors were encountered: