wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Change vulnerabilities implicit filter field to wazuh.cluster.name
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 **
Single node mode implicit filter
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
- Go to Vulnerabilities dashboard and check the implicit filter uses
-
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
- Go to Vulnerabilities dashboard and check the implicit filter uses
Check List
- [x] All tests pass
- [x]
yarn test:jest
- [x]
- [ ] New functionality includes testing.
- [ ] New functionality has been documented.
- [x] Update CHANGELOG.md
- [x] Commits are signed per the DCO using --signoff
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 ) |
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 ) |
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 ) |
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 dashboard and check the implicit filter uses
- 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 dashboard and check the implicit filter uses
- 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
Test :green_circle:
Cluster enabled
Cluster disabled