Skip to content

[Security Solution] Add tests for import / export timelines#75537

Merged
angorayc merged 17 commits intoelastic:masterfrom
angorayc:integration
Sep 1, 2020
Merged

[Security Solution] Add tests for import / export timelines#75537
angorayc merged 17 commits intoelastic:masterfrom
angorayc:integration

Conversation

@angorayc
Copy link
Copy Markdown
Contributor

Summary

This PR is to add happy path tests for import timelines and export timelines.
#69972

@angorayc angorayc added Team:SIEM v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Aug 20, 2020
@angorayc angorayc requested review from a team as code owners August 20, 2020 10:27
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/siem (Team:SIEM)


export const TIMELINES_TABLE = '[data-test-subj="timelines-table"]';

export const BULK_ACTIONS = '.siemUtilityBar__action button';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is possible to add a data-test-subj locator so we can use it instead of the class?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! Thanks a lot, I'll change those selectors.


export const EXPORT_TIMELINE_ACTION = '[data-test-subj="export-timeline-action"]';

export const FIRST_TIMELINE = `${TIMELINES_TABLE} tr td input`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@angorayc
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@angorayc
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@angorayc
Copy link
Copy Markdown
Contributor Author

angorayc commented Sep 1, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
securitySolution 9.5MB +216.0B 9.5MB

distributable file count

id value diff baseline
total 45457 +2 45455

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@angorayc angorayc mentioned this pull request Sep 1, 2020
11 tasks
@angorayc angorayc merged commit e7966e9 into elastic:master Sep 1, 2020
angorayc added a commit to angorayc/kibana that referenced this pull request Sep 1, 2020
…75537)

* add intergration test for install prebuilt timelines

* add integration tests

* add functional test for export timeline

* clean up

* asserts the content of the exported timeline

* update selector

* update selector

* reuses the timeline id from the expected exported file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
angorayc added a commit that referenced this pull request Sep 1, 2020
…76357)

* add intergration test for install prebuilt timelines

* add integration tests

* add functional test for export timeline

* clean up

* asserts the content of the exported timeline

* update selector

* update selector

* reuses the timeline id from the expected exported file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants