wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Change vulnerabilities implicit filter field to wazuh.cluster.name

Open asteriscos opened this issue 9 months ago • 4 comments

Description

This pull request changes the implicit vulnerabilities filter field to wazuh.cluster.name whether the selected Wazuh server has cluster mode enabled or not.

Issues Resolved

Closes #6650

Evidence

** Wazuh server cluster configuration ** image

Single node mode implicit filter image

Test

  • Configure the Wazuh server to have cluster mode enabled

    • Go to Vulnerabilities dashboard and check the implicit filter uses wazuh.cluster.name
    • Go to Vulnerabilities inventory and check the implicit filter uses wazuh.cluster.name
    • Go to Vulnerabilities events and check the implicit filter uses cluster.name
  • Configure the Wazuh server to have cluster mode disabled

    • Go to Vulnerabilities dashboard and check the implicit filter uses wazuh.cluster.name
    • Go to Vulnerabilities inventory and check the implicit filter uses wazuh.cluster.name
    • Go to Vulnerabilities events and check the implicit filter uses manager.name

Check List

  • [x] All tests pass
    • [x] yarn test:jest
  • [ ] New functionality includes testing.
  • [ ] New functionality has been documented.
  • [x] Update CHANGELOG.md
  • [x] Commits are signed per the DCO using --signoff

asteriscos avatar May 08 '24 09:05 asteriscos

Wazuh Core plugin code coverage (Jest) test % values
Statements 20.94% ( 187 / 893 )
Branches 17.91% ( 79 / 441 )
Functions 13.79% ( 36 / 261 )
Lines 21.14% ( 184 / 870 )

github-actions[bot] avatar May 08 '24 09:05 github-actions[bot]

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 76.78% ( 172 / 224 )
Branches 58.65% ( 61 / 104 )
Functions 61.7% ( 29 / 47 )
Lines 76.78% ( 172 / 224 )

github-actions[bot] avatar May 08 '24 09:05 github-actions[bot]

Main plugin code coverage (Jest) test % values
Statements 12.19% ( 4234 / 34727 )
Branches 8.28% ( 1928 / 23280 )
Functions 11.58% ( 959 / 8277 )
Lines 12.36% ( 4122 / 33330 )

github-actions[bot] avatar May 08 '24 09:05 github-actions[bot]

Test

  • Configure the Wazuh server to have cluster mode enabled
    • Go to Vulnerabilities dashboard and check the implicit filter uses wazuh.cluster.name

image

  • Go to Vulnerabilities inventory and check the implicit filter uses wazuh.cluster.name

image

  • Go to Vulnerabilities events and check the implicit filter uses cluster.name

image

  • Configure the Wazuh server to have cluster mode disabled
    • Go to Vulnerabilities dashboard and check the implicit filter uses wazuh.cluster.name

image

  • Go to Vulnerabilities inventory and check the implicit filter uses wazuh.cluster.name

image

  • Go to Vulnerabilities events and check the implicit filter uses manager.name

image

JuanGarriuz avatar May 08 '24 11:05 JuanGarriuz

Test :green_circle:

Cluster enabled image image image

Cluster disabled image image image

Desvelao avatar May 08 '24 12:05 Desvelao