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

Add Tests for Stateful Event Deletion Response in Queue Handling #413

Closed
Tracked by #241
vikman90 opened this issue Dec 11, 2024 · 0 comments · Fixed by #414
Closed
Tracked by #241

Add Tests for Stateful Event Deletion Response in Queue Handling #413

vikman90 opened this issue Dec 11, 2024 · 0 comments · Fixed by #414
Assignees
Labels
level/task Task issue module/agent module/inventory Inventory module mvp Minimum Viable Product refinement type/enhancement Enhancement issue

Comments

@vikman90
Copy link
Member

Parent Issue: #241

Description

The feature to exclude the event body when reporting a delete operation, implemented in PR #393, lacks adequate testing. To ensure its correct behavior, we need to add tests covering both the Inventory module and the core of the agent.

Requirements

  1. Inventory Module Behavior
    • When the Inventory module pushes a stateful message into the Queue, it must insert an empty JSON object ({}) as data if metadata.operation is "delete".
  2. Agent Core Behavior
    • When the core of the agent extracts a stateful message from the Queue, it must:
      • Transmit data + \n + metadata if data is not an empty object ({}).
      • Transmit only metadata if data is an empty object ({}).
@vikman90 vikman90 added mvp Minimum Viable Product refinement level/task Task issue labels Dec 11, 2024
@vikman90 vikman90 added type/enhancement Enhancement issue module/agent module/inventory Inventory module labels Dec 11, 2024
@wazuhci wazuhci moved this to Backlog in Release 5.0.0 Dec 11, 2024
@vikman90 vikman90 self-assigned this Dec 11, 2024
@wazuhci wazuhci moved this from Backlog to In progress in Release 5.0.0 Dec 11, 2024
@vikman90 vikman90 linked a pull request Dec 11, 2024 that will close this issue
@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Dec 11, 2024
@wazuhci wazuhci moved this from Pending review to Done in Release 5.0.0 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue module/agent module/inventory Inventory module mvp Minimum Viable Product refinement type/enhancement Enhancement issue
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant