Skip to content

Add wazuh api - #500

Draft
jose-caballero wants to merge 6 commits into
mainfrom
add_wazuh_api
Draft

Add wazuh api#500
jose-caballero wants to merge 6 commits into
mainfrom
add_wazuh_api

Conversation

@jose-caballero

Copy link
Copy Markdown
Contributor

Description:

Special Notes:


Submitter:

Have you (where applicable):

  • Added unit tests?
  • Checked the latest commit runs on Dev?
  • Updated the example config file(s) and README?

Reviewer

Does this PR:

  • Place non-StackStorm code into the lib directory?
  • Have unit tests for the action/sensor and lib layers?
  • Have clear and obvious action parameter names and descriptions?

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.84211% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.68%. Comparing base (9052ea3) to head (ab07bdb).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/apis/wazuh_api/structs/wazuh_account.py 69.44% 11 Missing ⚠️
lib/apis/wazuh_api/wazuh_query_agents.py 93.54% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
- Coverage   99.19%   98.68%   -0.51%     
==========================================
  Files         112      115       +3     
  Lines        2723     2822      +99     
  Branches      336      341       +5     
==========================================
+ Hits         2701     2785      +84     
- Misses         19       34      +15     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jose-caballero
jose-caballero dismissed anish-mudaraddi’s stale review August 17, 2026 13:40

The merge-base changed after approval.

Comment thread config.schema.yaml
Comment thread lib/apis/wazuh_api/structs/__init__.ppy Outdated
Comment thread lib/apis/wazuh_api/structs/wazuh_account.py Outdated
Comment thread config.schema.yaml
Comment thread lib/apis/wazuh_api/structs/wazuh_account.py
Comment thread lib/apis/wazuh_api/wazuh_query_agents.py
Comment thread lib/apis/wazuh_api/wazuh_query_agents.py Outdated
@jose-caballero
jose-caballero marked this pull request as draft August 18, 2026 09:34
khalford
khalford previously approved these changes Aug 19, 2026
anish-mudaraddi and others added 6 commits August 21, 2026 12:35
Tried to remove the need for this flag in #491 and #501 but it introduced too many bugs

renamed "requires_openstack" to "create_openstack_connection" to make it more clear and add comments
Write the minimal code to be able to create an API for Wazuh:
* dataclass to handle credentials
* logger setup
Write the first functionality for the API: query Wazuh for the list of
OpenStack Servers running a given version of the Operating System.
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.

3 participants