Commit Graph

4002 Commits

Author SHA1 Message Date
Jose Sanchez Robles
15a0ef4bb2 Add E2E tests to the enviroment (#1810)
* Add the test environment

* Add the first functional test

* Add two services to test the visualizations

* Add two tests for the alerts visualizations

* Refactoring and cleaning code

* Create two new services to test pie charts

* Create two tests for charts pie

* should top 5 agent chart pie values are correct
* should top 5 rule groups chart pie values are correct

* Add test and fix sort problem

* should alerts evolution - top 5 agents chart values are correct

* Add the missing ID property

* Fix problem with the sort function

* Add two classes to test visualization tables

* Add new test for alert summary table

`should alerts summary table values are correct`

* Refactoring duplicate code in `setTodayRange`

* Add 14 tests to cover query bar and filters

* should `alertStats` values ​​are correct when add the filter ` rule.level: 7`
* should `alert level evolution` chart values are correct when add the filter ` rule.level: 7`
* should `alert` chart values are correct when add the filter ` rule.level: 7`
* should `top 5 agent` chart pie values are correct when add the filter ` rule.level: 7`
* should `top 5 rule groups` chart pie values are correct when add the filter ` rule.level: 7`
* should `alerts evolution - top 5 agents` chart values are correct when add the filter ` rule.level: 7`
* should `alerts summary` table values are correct when add the filter ` rule.level: 7`
* should `alertStats` values ​​are correct when add to the query bar ` rule.level: 7`
* should `alert level evolution` chart values are correct when add to the query bar ` rule.level: 7`
* should `alert` chart values are correct when add to the query bar ` rule.level: 7`
* should `top 5 agent` chart pie values are correct when add to the query bar ` rule.level: 7`
* should `top 5 rule groups` chart pie values are correct when add to the query bar ` rule.level: 7`
* should `alerts evolution - top 5 agents` chart values are correct when add to the query bar ` rule.level: 7`
* should `alerts summary` table values are correct when add to the query bar ` rule.level: 7`

* Fix the problem with summary alerts test

* Fix expect problem with alert summary table

* Change the value of a param in visualization

The aggregation type of the visualization is `sum`

I change the value to `count`

* Add missing id properties to visualizations

* Create a new method to navigate to the FIM view

* Add a `beforeEach` method to remove duplicate code

* Add the tests for FIM Dashboard

* Add test for the filters and query bar in FIM

* Add documentation to the code

* Fix problem when comparing objects

* Set index pattern

* Fix the problem with the expected test result

* Removed discover from wz-menu
2019-10-09 10:19:34 +02:00
Jose Sanchez Robles
04b6265722 Extend RegisterAgent component (#1818)
* Get default API address and if is necessary the password

* Add missing `await`

* Change the properties of register-agent component

Set the background to transparent
Change the title: Add => Deploy

* Add register-agent component to add user to group

* Show button in general when no agents registered

* Show button in FIM when no agents registered

* Add the RegisterAgent component to overview

* Add the component `add new agents` to groups

* Remove duplicate componente addNewAgents from fim

* Remove `add new agents` component from group view
2019-10-09 10:16:29 +02:00
Adri Valle
de69af3b11
Check the admin mode (#1836) 2019-10-08 15:36:05 +02:00
Adri Valle
fc0e59e036 Fix tabs 2019-10-08 09:40:12 +02:00
Adri Valle
ea298e6c4a
Change toosl (#1828) 2019-10-01 12:01:24 +02:00
Adri Valle
170aeabee1
Upload files component (#1827)
* Component created

* Set limits

* Add limitation for extensions

* Change the list style

* Remove cross from file

* Change list color

* First component design and navigation improvement

* Adapt component

* Changed title based on tab

* Mock API call to get logtest result

* Right bar deprecated. New navigation and actions disposition

* Remove unused shortcuts files

* Redisign ruleset files management

* Remove unused file

* Set the property props

* Design changes in logtest component

* Rename cdblists by lists

* Clean files when closing the popover

* Rename cdblists by lists

* Adapt logtest for dark mode

* Read the files content

* Removed unused component

* Request changes

* Change Add files buttons position

* Logtest in Tools

* Add configuration validator

* Update Kibana version

* Change foreach by for

* Solves asynchronous problem

* Adapt ruleset handler

* Upload files

* Show what files were upload and hwat not

* Detail the error

* Expand fail list

* Add button to refresh lists

* Hide Logtest and Test config

* Update output of success/fail uploaded files

* Fix opened file on ruleset navigation

* Change the style of succes and errors messages

* Fix don't lose info
2019-10-01 11:09:35 +02:00
Pablo
333473411c Fix hidden column 2019-09-26 08:23:42 +02:00
Pablo
606a0d18dc Adapt Labels configuration section with new format 2019-09-25 15:27:35 +02:00
Adri Valle
991936fbbe
Hide index pattern is there are only one (#1814) 2019-09-20 16:07:52 +02:00
Adri Valle
478e27601c
Fix empty files (#1813)
* Fix when getting an empty file

* Prevent empty lines in cdb lists
2019-09-20 15:40:00 +02:00
Juanca Rodríguez
d9ed0c04e9 Removed Discover component from top menu (#1804) 2019-09-19 11:42:10 +02:00
JuanCarlos
2cbd63605d
Prettier 2019-09-17 09:13:09 +02:00
JuanCarlos
9a4c4e2ee7
Merge branch '3.11-7.3' of https://github.com/wazuh/wazuh-kibana-app into sorting-tables 2019-09-17 09:10:53 +02:00
JuanCarlos
aa8373655f
Prepare branch for 7.3.2 2019-09-16 15:08:49 +02:00
Adri Valle
55de37a912
Merge pull request #1797 from wazuh/fix-ruleset-filters
Fix chips in rules and decoders
2019-09-12 15:39:42 +02:00
JuanCarlos
00b3a12f6c
Fix chips in rules and decoders 2019-09-12 15:37:28 +02:00
JuanCarlos
1c9b5a0096
Fix in between Kibana native filters 2019-09-12 12:51:07 +02:00
JuanCarlos
82a256a9ea
Fix chips in rules and decoders 2019-09-12 11:45:02 +02:00
Jesús Ángel
ecfe6d6be8 Do not show "-" when the value is "0" 2019-09-04 11:53:26 +02:00
Jesús Ángel
3dc762907a Do not show "-" when the value is "0" 2019-09-04 11:35:29 +02:00
Adri Valle
4a38b71341 Fix selects and inputs colors 2019-09-03 16:55:04 +02:00
JuanCarlos
3a27c8c76d Prettier 2019-09-03 14:44:39 +02:00
Adri Valle
b85d9e1af3 Improve commands for register agents guide (#1762) 2019-09-03 14:44:39 +02:00
JuanCarlos
9856ac4635 Fix edit files navigation 2019-09-03 12:13:34 +02:00
JuanCarlos
972544653f Fix edit files navigation 2019-09-03 12:13:24 +02:00
Adri Valle
ccf183ae69 Improve commands for register agents guide (#1762) 2019-09-03 12:11:46 +02:00
Jesús Ángel
3e2a348f82 Renamed file from "hack-icon-style" to "icon-style" (avoid using "hack") 2019-09-03 10:12:02 +02:00
Jesús Ángel
084feedc3f Added missing copyright header 2019-09-03 10:12:02 +02:00
JuanCarlos
7e8fcee0df Fix pinned filters in syscollector 2019-09-03 10:11:54 +02:00
JuanCarlos
82bd8e3fa3 Remove not used files after merge 2019-09-03 10:11:45 +02:00
Jesús Ángel
525b3614d2 Added missing copyright header 2019-09-03 10:11:45 +02:00
Jesús Ángel
7f599a7974 Renamed file from "hack-icon-style" to "icon-style" (avoid using "hack") 2019-09-03 10:11:45 +02:00
Jesús Ángel
1901fc59a2 Restored "$state.interval" built-in logic for Discover 2019-09-02 13:21:20 +02:00
JuanCarlos
a3c1c67fb4 Restore ciscat visualizations number 2019-08-30 15:13:49 +02:00
Jesús Ángel
fce2e638a2 Reset dead visualizations counter to 0 on switchSubTab 2019-08-30 15:13:49 +02:00
Jesús Ángel
7f67a5fbd0 Fix typo 2019-08-30 15:13:49 +02:00
Jesús Ángel
9acce3861d Try two times before declaring a visualization as dead 2019-08-30 15:13:49 +02:00
Jesús Ángel
9d4d8520b7 Added "dead" visualizations counter 2019-08-30 15:13:49 +02:00
Jesús Ángel
1529cdebe0 Show '-' for empty metrics 2019-08-30 15:13:49 +02:00
JuanCarlos
7443ac29d8 Fix file lens in ruleset 2019-08-30 15:13:49 +02:00
Jesús Ángel
bb33b1f423 Fix condition in loading progress div 2019-08-30 15:13:49 +02:00
JuanCarlos
bcacfd93e4 Fix bad loading in syscollector 2019-08-30 15:13:49 +02:00
Jesús Ángel
988d5832bc Executed "yarn pretty" 2019-08-30 15:05:59 +02:00
Adri Valle
65bd6df7db Fix firefox arrow in settings 2019-08-30 14:49:10 +02:00
Adri Valle
ee45c4c17d Hide lens for file key 2019-08-30 14:49:10 +02:00
Jesús Ángel
f44737946e Reset dead visualizations counter to 0 on switchSubTab 2019-08-30 14:32:27 +02:00
Jesús Ángel
dff1dfadf7 Fix typo 2019-08-30 14:32:27 +02:00
Jesús Ángel
08f81042fe Try two times before declaring a visualization as dead 2019-08-30 14:32:27 +02:00
Jesús Ángel
eabb2bfc75 Added "dead" visualizations counter 2019-08-30 14:32:27 +02:00
Jesús Ángel
1c77d390a6 Show '-' for empty metrics 2019-08-30 14:32:27 +02:00
Jesús Ángel
a78715feb2 Fix condition in loading progress div 2019-08-30 11:19:28 +02:00
Jesús Ángel
25c1fff861 Moved "DynamicHeight" method to static methods 2019-08-29 15:58:26 +02:00
Adri Valle
ec3c2120a2 Class for the DynamicHeight 2019-08-29 15:58:26 +02:00
Adri Valle
9f4a47ac76 Added dynamic height to configuration sections 2019-08-29 15:58:26 +02:00
JuanCarlos
ea21c8cfba Revert "Add the repositories to the register agent component"
This reverts commit f3f7cce9fc48429269a7892a29e4a8b7aad3d8ef.
2019-08-29 15:58:26 +02:00
Jesús Ángel
dcf8763826 Removed console.log 2019-08-29 15:58:26 +02:00
Jesús Ángel
bb57b0bea1 Fix cluster monitoring visualizations 2019-08-29 15:58:26 +02:00
Jesús Ángel
4a521dcc06 Fix multiple visualization names 2019-08-29 15:58:26 +02:00
Jesús Ángel
bea2bb1e05 Set vis tab before doing any other thing 2019-08-29 15:58:26 +02:00
Jesús Ángel
b38d211aad Destroy all vis handlers if tab changed and vis still exists 2019-08-29 15:58:26 +02:00
Jesús Ángel
ba24694a0f Revert "Restrict controller loading"
This reverts commit 13dea09755.
2019-08-29 15:58:26 +02:00
Adri Valle
4ab4654602 Add the repositories to the register agent component 2019-08-29 15:58:26 +02:00
Jesús Ángel
3de4a8b075 Restrict controller loading 2019-08-29 15:58:26 +02:00
JuanCarlos
e14b8b9f93 Fix dashboards flick 2019-08-29 15:58:26 +02:00
Adri Valle
6ea5674f9a Show info toaster when restarting 2019-08-29 15:58:26 +02:00
JuanCarlos
18427ce60d Fix wz-menu z-index 2019-08-29 15:58:26 +02:00
Adri Valle
ef0631e718 Hide lens only for path key 2019-08-29 15:58:26 +02:00
JuanCarlos
4617dbb390 Fix tabs in groups management 2019-08-29 15:58:26 +02:00
Adri Valle
3c46efc138 Fix lens rules and decoders table 2019-08-29 15:58:26 +02:00
Jesús Ángel
c68f4a9105 Removed console.log 2019-08-29 15:17:16 +02:00
Jesús Ángel
f2933065d2 Fix cluster monitoring visualizations 2019-08-29 15:17:16 +02:00
Jesús Ángel
f560701a9a Fix multiple visualization names 2019-08-29 15:17:16 +02:00
Jesús Ángel
711ca7bbf8 Revert "Add the repositories to the register agent component"
This reverts commit f3f7cce9fc48429269a7892a29e4a8b7aad3d8ef.
2019-08-29 14:51:37 +02:00
Adri Valle
131908dc2c Add the repositories to the register agent component 2019-08-29 14:51:37 +02:00
Adri Valle
5412119b45 Fix top message bar misplaced 2019-08-29 14:51:37 +02:00
JuanCarlos
ab6ec53f07 Fix tabs in groups management 2019-08-29 14:51:37 +02:00
Adri Valle
d46bc48857 Show info toaster when restarting 2019-08-29 14:51:37 +02:00
Adri Valle
30a04ed4f0 Hide lens only for path key 2019-08-29 14:51:37 +02:00
Adri Valle
5d638e1dbf Fix lens rules and decoders table 2019-08-29 14:51:37 +02:00
Jesús Ángel
160282c77f Moved "DynamicHeight" method to static methods 2019-08-29 14:51:11 +02:00
Adri Valle
9c2809cccc Class for the DynamicHeight 2019-08-29 14:51:11 +02:00
Adri Valle
121a7dc7c2 Added dynamic height to configuration sections 2019-08-29 14:51:11 +02:00
Jesús Ángel
b593a0e797 Set vis tab before doing any other thing 2019-08-29 14:35:26 +02:00
Jesús Ángel
c897d8e051 Destroy all vis handlers if tab changed and vis still exists 2019-08-29 14:35:26 +02:00
Jesús Ángel
25cdcccda0 Revert "Restrict controller loading"
This reverts commit 13dea09755.
2019-08-29 14:35:26 +02:00
Jesús Ángel
13dea09755 Restrict controller loading 2019-08-29 13:37:21 +02:00
Jesús Ángel
ff2a15fe66 Fix condition for showing progress status 2019-08-29 12:58:58 +02:00
Jesús Ángel
d463f7e996 Update $rootScope.resultState explicitly 2019-08-29 12:58:58 +02:00
Jesús Ángel
22df876fa9 Restore $rootScope.rendered value when tab changes 2019-08-29 12:58:58 +02:00
Jesús Ángel
0ef4dc2dd7 Removed unused view template 2019-08-29 12:58:58 +02:00
Jesús Ángel
c7e75dd22a Fix wrong filters history 2019-08-29 11:44:10 +02:00
JuanCarlos
151782c9d9 Reduce blank screen time 2019-08-28 15:48:12 +02:00
JuanCarlos
148a96725c Hide first style setting in md-toolbar 2019-08-28 15:48:12 +02:00
JuanCarlos
d21da5efa8 Fix wz-menu calculated height 2019-08-28 15:48:12 +02:00
Jesús Ángel
04bc10e96e
Removed redundant event broadcast (not needed) 2019-08-28 15:46:15 +02:00
Jesús Ángel
98bd246823 Removed redundant event broadcast (not needed) 2019-08-28 15:44:36 +02:00
Jesús Ángel
ddbd276efd Replaced multiple SVGs with the proper EUI components 2019-08-28 15:08:01 +02:00
JuanCarlos
b72db675e9 Fix agents never connected messages 2019-08-28 15:08:01 +02:00
Adri Valle
c9a072b931 Fix bg-color when double clicking to move agents 2019-08-28 15:08:01 +02:00
JuanCarlos
789bf1fd04 Moved "hideWzMenu" to resolving section 2019-08-28 15:08:01 +02:00