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

[SecuritySolution] Timeline api integration tests #183645

Open
angorayc opened this issue May 16, 2024 · 3 comments
Open

[SecuritySolution] Timeline api integration tests #183645

angorayc opened this issue May 16, 2024 · 3 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience skipped-test Team:Threat Hunting:Investigations Security Solution Investigations Team
Milestone

Comments

@angorayc
Copy link
Contributor

angorayc commented May 16, 2024

Here are some skipped tests needed to be updated or fixed:

  • x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/security_and_spaces/ess/basic/events.ts
  • x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/security_and_spaces/ess/basic/import_timelines.ts
  • x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/security_and_spaces/ess/basic/install_prepackaged_timelines.ts
  • x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/security_and_spaces/ess/trial/events.ts

To start the test server:

cd x-pack/test/security_solution_api_integration


node ../../../scripts/functional_tests_server.js --config ./test_suites/investigation/timeline/security_and_spaces/configs/ess.basic.config.ts

Once it's started, open a new terminal and go to the same folder

node ../../../scripts/functional_test_runner --config=test_suites/investigation/timeline/security_and_spaces/configs/ess.basic.config.ts

Originally posted by @angorayc in #183611 (comment)

@botelastic botelastic bot added the needs-team Issues missing a team label label May 16, 2024
@angorayc angorayc added the Team:Threat Hunting:Investigations Security Solution Investigations Team label May 16, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)

@botelastic botelastic bot removed the needs-team Issues missing a team label label May 16, 2024
@logeekal logeekal self-assigned this May 24, 2024
@logeekal logeekal added this to the 8.15 milestone Jun 6, 2024
@angorayc
Copy link
Contributor Author

angorayc commented Jul 23, 2024

@logeekal #188855 removes the duplicated serverless tests. Once it's merged, the path of timeline serverless tests will be the same as ESS tests.

  • security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/tests/index.ts

@logeekal
Copy link
Contributor

Working on to enable failing tests.

@logeekal logeekal added the bug Fixes for quality problems that affect the customer experience label Sep 30, 2024
logeekal added a commit that referenced this issue Oct 16, 2024
…est for MKI (#194707)

## Summary

This is Part 1 of the in resolving the issue :
#183645 .

This PR re-organizes investigations API tests so that they can be run in
Serveless MKI at both `basic/essentials` and `complete` licenses.

## How to test this PR 

Below are the commands that are affected by this change and you can test
the PR by running below commands.

Each commands sets up the test environment and give you a command to run
tests. Please run those tests to see if everything is okay. An example
is shown in below screenshot.

<img width="1916" alt="grafik"
src="https://github.com/user-attachments/assets/fa400450-e4aa-41dc-a1ea-ac21634c46d3">


|Module|Deployment|License|Command|
|--|--|--|--|
|Timelines|ESS|basic|`yarn investigations:basic:timeline:server:ess`|
|Timelines|ESS|Trial|`yarn investigations:timeline:server:ess`|
|Timelines|Serverless|basic|`yarn
investigations:basic:timeline:server:serverless`|
|Timelines|Serverless|Trial|`yarn
investigations:timeline:server:serverless`|
|Saved Objects|ESS|basic|`yarn
investigations:basic:saved-objects:server:ess`|
|Saved Objects|ESS|Trial|`yarn investigations:saved-objects:server:ess`|
|Saved Objects|Serverless|basic|`yarn
investigations:basic:saved-objects:server:serverless`|
|Saved Objects|Serverless|Trial|`yarn
investigations:saved-objects:server:serverless`|

---------

Co-authored-by: kibanamachine <[email protected]>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Oct 16, 2024
…est for MKI (elastic#194707)

## Summary

This is Part 1 of the in resolving the issue :
elastic#183645 .

This PR re-organizes investigations API tests so that they can be run in
Serveless MKI at both `basic/essentials` and `complete` licenses.

## How to test this PR

Below are the commands that are affected by this change and you can test
the PR by running below commands.

Each commands sets up the test environment and give you a command to run
tests. Please run those tests to see if everything is okay. An example
is shown in below screenshot.

<img width="1916" alt="grafik"
src="https://github.com/user-attachments/assets/fa400450-e4aa-41dc-a1ea-ac21634c46d3">

|Module|Deployment|License|Command|
|--|--|--|--|
|Timelines|ESS|basic|`yarn investigations:basic:timeline:server:ess`|
|Timelines|ESS|Trial|`yarn investigations:timeline:server:ess`|
|Timelines|Serverless|basic|`yarn
investigations:basic:timeline:server:serverless`|
|Timelines|Serverless|Trial|`yarn
investigations:timeline:server:serverless`|
|Saved Objects|ESS|basic|`yarn
investigations:basic:saved-objects:server:ess`|
|Saved Objects|ESS|Trial|`yarn investigations:saved-objects:server:ess`|
|Saved Objects|Serverless|basic|`yarn
investigations:basic:saved-objects:server:serverless`|
|Saved Objects|Serverless|Trial|`yarn
investigations:saved-objects:server:serverless`|

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 2eff6d1)
kibanamachine added a commit that referenced this issue Oct 16, 2024
…tion test for MKI (#194707) (#196588)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ Security Solution ]Re-organize the Investigations api integration
test for MKI (#194707)](#194707)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jatin
Kathuria","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-16T17:56:41Z","message":"[
Security Solution ]Re-organize the Investigations api integration test
for MKI (#194707)\n\n## Summary\r\n\r\nThis is Part 1 of the in
resolving the issue :\r\nhttps://github.com//issues/183645
.\r\n\r\nThis PR re-organizes investigations API tests so that they can
be run in\r\nServeless MKI at both `basic/essentials` and `complete`
licenses.\r\n\r\n## How to test this PR \r\n\r\nBelow are the commands
that are affected by this change and you can test\r\nthe PR by running
below commands.\r\n\r\nEach commands sets up the test environment and
give you a command to run\r\ntests. Please run those tests to see if
everything is okay. An example\r\nis shown in below
screenshot.\r\n\r\n<img width=\"1916\"
alt=\"grafik\"\r\nsrc=\"https://github.com/user-attachments/assets/fa400450-e4aa-41dc-a1ea-ac21634c46d3\">\r\n\r\n\r\n|Module|Deployment|License|Command|\r\n|--|--|--|--|\r\n|Timelines|ESS|basic|`yarn
investigations:basic:timeline:server:ess`|\r\n|Timelines|ESS|Trial|`yarn
investigations:timeline:server:ess`|\r\n|Timelines|Serverless|basic|`yarn\r\ninvestigations:basic:timeline:server:serverless`|\r\n|Timelines|Serverless|Trial|`yarn\r\ninvestigations:timeline:server:serverless`|\r\n|Saved
Objects|ESS|basic|`yarn\r\ninvestigations:basic:saved-objects:server:ess`|\r\n|Saved
Objects|ESS|Trial|`yarn
investigations:saved-objects:server:ess`|\r\n|Saved
Objects|Serverless|basic|`yarn\r\ninvestigations:basic:saved-objects:server:serverless`|\r\n|Saved
Objects|Serverless|Trial|`yarn\r\ninvestigations:saved-objects:server:serverless`|\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"2eff6d1046c94252ac0cc52f78859101383e6f71","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting:Investigations","backport:prev-minor"],"title":"[ Security
Solution ]Re-organize the Investigations api integration test for
MKI","number":194707,"url":"https://github.com/elastic/kibana/pull/194707","mergeCommit":{"message":"[
Security Solution ]Re-organize the Investigations api integration test
for MKI (#194707)\n\n## Summary\r\n\r\nThis is Part 1 of the in
resolving the issue :\r\nhttps://github.com//issues/183645
.\r\n\r\nThis PR re-organizes investigations API tests so that they can
be run in\r\nServeless MKI at both `basic/essentials` and `complete`
licenses.\r\n\r\n## How to test this PR \r\n\r\nBelow are the commands
that are affected by this change and you can test\r\nthe PR by running
below commands.\r\n\r\nEach commands sets up the test environment and
give you a command to run\r\ntests. Please run those tests to see if
everything is okay. An example\r\nis shown in below
screenshot.\r\n\r\n<img width=\"1916\"
alt=\"grafik\"\r\nsrc=\"https://github.com/user-attachments/assets/fa400450-e4aa-41dc-a1ea-ac21634c46d3\">\r\n\r\n\r\n|Module|Deployment|License|Command|\r\n|--|--|--|--|\r\n|Timelines|ESS|basic|`yarn
investigations:basic:timeline:server:ess`|\r\n|Timelines|ESS|Trial|`yarn
investigations:timeline:server:ess`|\r\n|Timelines|Serverless|basic|`yarn\r\ninvestigations:basic:timeline:server:serverless`|\r\n|Timelines|Serverless|Trial|`yarn\r\ninvestigations:timeline:server:serverless`|\r\n|Saved
Objects|ESS|basic|`yarn\r\ninvestigations:basic:saved-objects:server:ess`|\r\n|Saved
Objects|ESS|Trial|`yarn
investigations:saved-objects:server:ess`|\r\n|Saved
Objects|Serverless|basic|`yarn\r\ninvestigations:basic:saved-objects:server:serverless`|\r\n|Saved
Objects|Serverless|Trial|`yarn\r\ninvestigations:saved-objects:server:serverless`|\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"2eff6d1046c94252ac0cc52f78859101383e6f71"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194707","number":194707,"mergeCommit":{"message":"[
Security Solution ]Re-organize the Investigations api integration test
for MKI (#194707)\n\n## Summary\r\n\r\nThis is Part 1 of the in
resolving the issue :\r\nhttps://github.com//issues/183645
.\r\n\r\nThis PR re-organizes investigations API tests so that they can
be run in\r\nServeless MKI at both `basic/essentials` and `complete`
licenses.\r\n\r\n## How to test this PR \r\n\r\nBelow are the commands
that are affected by this change and you can test\r\nthe PR by running
below commands.\r\n\r\nEach commands sets up the test environment and
give you a command to run\r\ntests. Please run those tests to see if
everything is okay. An example\r\nis shown in below
screenshot.\r\n\r\n<img width=\"1916\"
alt=\"grafik\"\r\nsrc=\"https://github.com/user-attachments/assets/fa400450-e4aa-41dc-a1ea-ac21634c46d3\">\r\n\r\n\r\n|Module|Deployment|License|Command|\r\n|--|--|--|--|\r\n|Timelines|ESS|basic|`yarn
investigations:basic:timeline:server:ess`|\r\n|Timelines|ESS|Trial|`yarn
investigations:timeline:server:ess`|\r\n|Timelines|Serverless|basic|`yarn\r\ninvestigations:basic:timeline:server:serverless`|\r\n|Timelines|Serverless|Trial|`yarn\r\ninvestigations:timeline:server:serverless`|\r\n|Saved
Objects|ESS|basic|`yarn\r\ninvestigations:basic:saved-objects:server:ess`|\r\n|Saved
Objects|ESS|Trial|`yarn
investigations:saved-objects:server:ess`|\r\n|Saved
Objects|Serverless|basic|`yarn\r\ninvestigations:basic:saved-objects:server:serverless`|\r\n|Saved
Objects|Serverless|Trial|`yarn\r\ninvestigations:saved-objects:server:serverless`|\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"2eff6d1046c94252ac0cc52f78859101383e6f71"}}]}]
BACKPORT-->

Co-authored-by: Jatin Kathuria <[email protected]>
hop-dev pushed a commit to hop-dev/kibana that referenced this issue Oct 17, 2024
…est for MKI (elastic#194707)

## Summary

This is Part 1 of the in resolving the issue :
elastic#183645 .

This PR re-organizes investigations API tests so that they can be run in
Serveless MKI at both `basic/essentials` and `complete` licenses.

## How to test this PR 

Below are the commands that are affected by this change and you can test
the PR by running below commands.

Each commands sets up the test environment and give you a command to run
tests. Please run those tests to see if everything is okay. An example
is shown in below screenshot.

<img width="1916" alt="grafik"
src="https://github.com/user-attachments/assets/fa400450-e4aa-41dc-a1ea-ac21634c46d3">


|Module|Deployment|License|Command|
|--|--|--|--|
|Timelines|ESS|basic|`yarn investigations:basic:timeline:server:ess`|
|Timelines|ESS|Trial|`yarn investigations:timeline:server:ess`|
|Timelines|Serverless|basic|`yarn
investigations:basic:timeline:server:serverless`|
|Timelines|Serverless|Trial|`yarn
investigations:timeline:server:serverless`|
|Saved Objects|ESS|basic|`yarn
investigations:basic:saved-objects:server:ess`|
|Saved Objects|ESS|Trial|`yarn investigations:saved-objects:server:ess`|
|Saved Objects|Serverless|basic|`yarn
investigations:basic:saved-objects:server:serverless`|
|Saved Objects|Serverless|Trial|`yarn
investigations:saved-objects:server:serverless`|

---------

Co-authored-by: kibanamachine <[email protected]>
@PhilippeOberti PhilippeOberti modified the milestones: 8.16, 8.17 Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience skipped-test Team:Threat Hunting:Investigations Security Solution Investigations Team
Projects
None yet
Development

No branches or pull requests

4 participants