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

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

Merged
merged 17 commits into from
Sep 1, 2020

Conversation

angorayc
Copy link
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
Contributor

Pinging @elastic/siem (Team:SIEM)


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

export const BULK_ACTIONS = '.siemUtilityBar__action button';
Copy link
Member

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
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
Member

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
Contributor Author

@elasticmachine merge upstream

@angorayc
Copy link
Contributor Author

@elasticmachine merge upstream

@angorayc
Copy link
Contributor Author

angorayc commented Sep 1, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
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 <[email protected]>
Co-authored-by: Gloria Hornero <[email protected]>
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 <[email protected]>
Co-authored-by: Gloria Hornero <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Gloria Hornero <[email protected]>
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
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