Skip to content

Sync staging - #512

Draft
gmatthews20 wants to merge 13 commits into
stagingfrom
main
Draft

Sync staging#512
gmatthews20 wants to merge 13 commits into
stagingfrom
main

Conversation

@gmatthews20

Copy link
Copy Markdown
Collaborator

Description:

Merge in the changes merged while setting up staging was WIP

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?

anish-mudaraddi and others added 8 commits August 26, 2026 11:47
sensors are breaking due to:

```TypeError: 'type' object is not subscriptable```

I suspect some issue with dependencies.

After some trial and error - downgrading the keystoneauth1 package to previous version seemed to work
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.
we maintain this template in our config management tool - aquilon - so we don't want to have config drift here
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.62420% with 21 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (staging@c5770eb). Learn more about missing BASE report.

Files with missing lines Patch % Lines
lib/apis/wazuh_api/structs/wazuh_account.py 69.44% 11 Missing ⚠️
lib/apis/elog_api/structs/elog_account.py 80.64% 6 Missing ⚠️
lib/apis/wazuh_api/wazuh_query_agents.py 93.54% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             staging     #512   +/-   ##
==========================================
  Coverage           ?   98.43%           
==========================================
  Files              ?      118           
  Lines              ?     2944           
  Branches           ?      346           
==========================================
  Hits               ?     2898           
  Misses             ?       43           
  Partials           ?        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.

azahmd and others added 5 commits August 27, 2026 16:23
Add a section for ELOG to the schema config file, so the credentials can
be read once their set.
Write the the API directory, including:
* logging setup in the init file
* dataclass in the structs directory
  * dataclass also contains a method to authenticate against the ELOG
    server

Write the basic functionalily to create new records in ELOG
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.

4 participants