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

Engine - Add test cases executor #23390

Conversation

NahuFigueroa97
Copy link
Member

@NahuFigueroa97 NahuFigueroa97 commented May 14, 2024

Related issue
#23325

Summary

Continuing from Stage 1A, this PR focuses on developing a tool that uses enhanced YAML files to automatically generate necessary testing assets and execute test cases for Wazuh-Engine helper functions. This tool aims to validate the functionality and reliability of helper functions as described by the enhanced YAML configurations.

Changes

  • Development of a test creation and execution tool.
  • Automated generation of test cases based on enhanced YAML configurations.
  • Implementation of test execution capabilities.
  • Integration with existing Wazuh development environment and testing frameworks.

Implementation Details

Description

This PR aims to develop a tool that reads enhanced YAML configurations and automates the execution of test cases. The tool will perform the following tasks:

Objective

Test Creation and Execution Tool: Develop a tool that reads enhanced YAML configurations and automates the execution of test cases.

Requirements

  1. Automated Test Generation: The tool should automatically read all necessary information for testing each helper function, including input values and expected outcomes based on the enhanced YAML configurations (Output of Stage 1A).
  2. Test Execution: Implement the capability to automatically run the test cases, capture results, and handle exceptions or errors during test execution. In case of error, unibocatively identify the test case(s) with error(s) and provide a description of the error.
  3. Integration with Existing Systems: Ensure that the tool integrates smoothly with the existing Wazuh development environment and testing frameworks.

Tasks

  1. Develop a tool that can parse enhanced YAML files generated in Stage 1A and create corresponding test assets, such as mock data, configuration files, and test scripts.
  2. Implement functionality within the tool to execute these test cases, ensuring that each helper function is tested against its described behavior and expected results.
  3. Create mechanisms within the tool to log test outcomes, track failures, and provide detailed reports on the test executions.
  4. Ensure that the tool can update any necessary policy or asset configurations required for the proper testing of the helper functions.

@NahuFigueroa97 NahuFigueroa97 self-assigned this May 14, 2024
@NahuFigueroa97 NahuFigueroa97 changed the title Add test_cases executor Engine - Add test_cases executor May 14, 2024
@NahuFigueroa97 NahuFigueroa97 changed the title Engine - Add test_cases executor Engine - Add test cases executor May 14, 2024
@JcabreraC JcabreraC self-requested a review May 15, 2024 12:34
@NahuFigueroa97 NahuFigueroa97 force-pushed the 23325-engine-development-of-test-creation-and-execution-tool-for-wazuh-helper-function branch from 73e2987 to 0135ee8 Compare May 15, 2024 14:32
Copy link
Member

@JcabreraC JcabreraC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@JcabreraC JcabreraC merged commit cd2e3f6 into 11334-dev-new-wazuh-engine May 16, 2024
3 checks passed
@JcabreraC JcabreraC deleted the 23325-engine-development-of-test-creation-and-execution-tool-for-wazuh-helper-function branch May 16, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Engine - Development of Test Creation and Execution Tool for Wazuh-Engine Helper Functions
2 participants