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 - Development of Test Creation and Execution Tool for Wazuh-Engine Helper Functions #23325

Closed
4 tasks done
JcabreraC opened this issue May 7, 2024 · 3 comments · Fixed by #23390
Closed
4 tasks done

Comments

@JcabreraC
Copy link
Member

JcabreraC commented May 7, 2024

Wazuh version Component Install type Install method Platform
5.0.0 Engine Manager Packages/Sources OS version

Description

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

Objective

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

Requirements

  • Automated Test Generation: The tool should automatically read all necessary for testing each helper function, including input values and expected outcomes based on the enhanced YAML configurations (Output of stage 1A)
  • 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 identifying the test case(s) with error(s) and the description of the error.
  • Integration with Existing Systems: Ensure that the tool integrates smoothly with the existing Wazuh development environment and testing frameworks.

Tasks

  • 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.
  • Implement functionality within the tool to execute these test cases, ensuring that each helper function is tested against its described behavior and expected results.
  • Create mechanisms within the tool to log test outcomes, track failures, and provide detailed reports on the test executions.
  • Ensure that the tool can update any necessary policy or asset configurations required for the proper testing of the helper functions.

Testing Criteria

  • Comprehensive Test Coverage: Verify that the tool can generate and execute test cases that cover all described scenarios within the enhanced YAML files.
  • Accuracy and Reliability: Ensure that the tool accurately executes tests and reliably reports outcomes, including handling edge cases and potential errors.
  • Integration Validation: Test the integration of the tool with the existing Wazuh development and testing environments to ensure seamless operations and interactions.

Notes

Stage 1B is a critical component of our testing framework, as it directly impacts our ability to verify the functionality and reliability of Wazuh-Engine helper functions automatically. The development of this tool must focus on robustness, accuracy, and ease of integration to support continuous development and testing efforts effectively.

@NahuFigueroa97
Copy link
Member

Update:

builder map:

  • I build the environment to build test
  • I build the environment to run test

@NahuFigueroa97
Copy link
Member

Update:

builder filter and transformation:

  • I build the environment to build test
  • I build the environment to run test

@NahuFigueroa97
Copy link
Member

Update:

  • Change asset_create for update
  • Add more tests cases
  • Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants