kibana/x-pack/plugins/security_solution
Steph Milovic 9c546f1a21
Hide timeline bar if user does not have security solution crud capability (#123775) (#126289)
* Hide timeline bar if user does not have security solution crud capability

* change visibility to be based on show instead of crud

* PR fix

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
(cherry picked from commit 5aa26ed37d)

Co-authored-by: Kristof C <kpac.ja@gmail.com>
2022-02-23 14:33:21 -07:00
..
.storybook Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
common [SecuritySolution] Fix topN histograms for custom fields (#123489) (#124035) 2022-01-31 17:01:08 +01:00
cypress Fixes broken cypress test after ECS update to Rule Registry (#123429) (#123433) 2022-01-19 21:28:51 -07:00
public Hide timeline bar if user does not have security solution crud capability (#123775) (#126289) 2022-02-23 14:33:21 -07:00
scripts [Timelines] Update fields metadata from beats 8.0 (#123014) (#123304) 2022-01-18 15:40:38 -07:00
server [Security Solution] Apply field aliases to all legacy indices, not just <= version 45 (#125888) (#125900) 2022-02-17 00:44:12 -07:00
jest.config.dev.js [jest] Support meta project configs (#118122) (#118834) 2021-11-17 00:15:48 -07:00
kibana.json Add CreateFieldButton component to browser fields (#117627) (#119019) 2021-11-18 07:50:10 -07:00
package.json [Timelines] Update fields metadata from beats 8.0 (#123014) (#123304) 2022-01-18 15:40:38 -07:00
README.md [Fleet] Rename ingest_manager_api_integration tests fleet_api_integration (#83011) 2020-11-12 13:50:59 -05:00
tsconfig.json [Security Solution][Timelines] - Resolve UI (#114350) 2021-10-19 18:51:06 -04:00

Security Solution

Welcome to the Kibana Security Solution plugin! This README will go over getting started with development and testing.

Development

Tests

The endpoint specific tests leverage the ingest manager to install the endpoint package. Before the api integration and functional tests are run the ingest manager is initialized. This initialization process includes reaching out to a package registry service to install the endpoint package. The endpoint tests support three different ways to run the tests given the constraint on an available package registry.

  1. Using Docker
  2. Running your own local package registry
  3. Using the default external package registry

These scenarios will be outlined the sections below.

Endpoint API Integration Tests Location

The endpoint api integration tests are located here

Endpoint Functional Tests Location

The endpoint functional tests are located here

Using Docker

To run the tests using the recommended docker image version you must have docker installed. The testing infrastructure will stand up a docker container using the image defined here

Make sure you're in the Kibana root directory.

Endpoint API Integration Tests

In one terminal, run:

FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/security_solution_endpoint_api_int/config.ts

In another terminal, run:

FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/security_solution_endpoint_api_int/config.ts

Endpoint Functional Tests

In one terminal, run:

FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:server --config x-pack/test/security_solution_endpoint/config.ts

In another terminal, run:

FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner --config x-pack/test/security_solution_endpoint/config.ts

Running your own package registry

If you are doing endpoint package development it will be useful to run your own package registry to serve the latest package you're building. To do this use the following commands:

Make sure you're in the Kibana root directory.

Endpoint API Integration Tests

In one terminal, run:

PACKAGE_REGISTRY_URL_OVERRIDE=<url to your package registry like http://localhost:8080> yarn test:ftr:server --config x-pack/test/security_solution_endpoint_api_int/config.ts

In another terminal, run:

PACKAGE_REGISTRY_URL_OVERRIDE=<url to your package registry like http://localhost:8080>  yarn test:ftr:runner --config x-pack/test/security_solution_endpoint_api_int/config.ts

Endpoint Functional Tests

In one terminal, run:

PACKAGE_REGISTRY_URL_OVERRIDE=<url to your package registry like http://localhost:8080> yarn test:ftr:server --config x-pack/test/security_solution_endpoint/config.ts

In another terminal, run:

PACKAGE_REGISTRY_URL_OVERRIDE=<url to your package registry like http://localhost:8080>  yarn test:ftr:runner --config x-pack/test/security_solution_endpoint/config.ts

Using the default public registry

If you don't have docker installed and don't want to run your own registry, you can run the tests using the ingest manager's default public package registry. The actual package registry used is here

Make sure you're in the Kibana root directory.

Endpoint API Integration Tests

In one terminal, run:

yarn test:ftr:server --config x-pack/test/security_solution_endpoint_api_int/config.ts

In another terminal, run:

yarn test:ftr:runner --config x-pack/test/security_solution_endpoint_api_int/config.ts

Endpoint Functional Tests

In one terminal, run:

yarn test:ftr:server --config x-pack/test/security_solution_endpoint/config.ts

In another terminal, run:

yarn test:ftr:runner --config x-pack/test/security_solution_endpoint/config.ts