Skip to content

[Cloud Posture] test latest findings table sort#144668

Merged
orouz merged 18 commits intoelastic:mainfrom
orouz:csp_test_findings
Nov 28, 2022
Merged

[Cloud Posture] test latest findings table sort#144668
orouz merged 18 commits intoelastic:mainfrom
orouz:csp_test_findings

Conversation

@orouz
Copy link
Contributor

@orouz orouz commented Nov 6, 2022

Summary

this PR incudes initial setup and tests for cloud-posture's functional tests (for Findings)
it takes about 1.5 minutes to run in total. (including es/kibana, actual test run in about 25s)

a follow-up PR will include details on how to run/add FTR tests in our README file.


local testing:

  • development

    • server: yarn test:ftr:server --config x-pack/test/cloud_security_posture_functional/config.ts --debug
    • runner: yarn test:ftr:runner --config x-pack/test/cloud_security_posture_functional/config.ts
  • CI

    • both: node scripts/functional_tests.js --config x-pack/test/cloud_security_posture_functional/config.ts

@orouz orouz force-pushed the csp_test_findings branch from edcd16d to 050396d Compare November 6, 2022 19:11
@orouz orouz linked an issue Nov 6, 2022 that may be closed by this pull request
8 tasks
@orouz orouz force-pushed the csp_test_findings branch from 87bcfdb to 171de48 Compare November 10, 2022 16:32
@orouz orouz force-pushed the csp_test_findings branch from b69ac9c to 6734388 Compare November 14, 2022 13:04
@orouz orouz force-pushed the csp_test_findings branch 2 times, most recently from 3b2f220 to 4478b07 Compare November 14, 2022 14:04
@orouz orouz force-pushed the csp_test_findings branch from 4478b07 to 8db0b0f Compare November 14, 2022 15:28
@orouz orouz added release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.6.0 labels Nov 14, 2022
@orouz orouz marked this pull request as ready for review November 14, 2022 17:10
@orouz orouz requested review from a team as code owners November 14, 2022 17:10
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security Posture)

Copy link
Contributor

@kfirpeled kfirpeled left a comment

Choose a reason for hiding this comment

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

For some reason it didn't worked for me locally, from the view of it, it doesn't change the current page size from 25 to 10
This could be due to that we save in localstorage the user preference - I would recommend that part of your tests you'll always set the page size to be 10. Because you are relaying on this step on your pagination tests.

@orouz orouz requested review from CohenIdo and kfirpeled November 22, 2022 09:36
@kfirpeled kfirpeled self-requested a review November 24, 2022 15:44
@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloudSecurityPosture 127.0KB 127.0KB +37.0B
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 109 115 +6
securitySolution 443 449 +6
total +20

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 68 74 +6
osquery 110 117 +7
securitySolution 520 526 +6
total +21

History

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

@orouz orouz changed the title [Cloud Posture] add tests to findings page [Cloud Posture] test latest findings table sort Nov 28, 2022
@orouz orouz merged commit b9ffc29 into elastic:main Nov 28, 2022
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Nov 28, 2022
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 28, 2022
* main: (30 commits)
  [Cloud Posture] test latest findings table sort (elastic#144668)
  [api-docs] 2022-11-28 Daily api_docs build (elastic#146359)
  [api-docs] 2022-11-27 Daily api_docs build (elastic#146353)
  [api-docs] 2022-11-26 Daily api_docs build (elastic#146350)
  [DataViews] Fix form validation UX when the same data view name already exists (elastic#146126)
  [Discover] Prevent agg based visualizations of Discover saved objects with adhoc data views (elastic#145583)
  [Health Gateway] Update response aggregation (elastic#145761)
  [api-docs] 2022-11-25 Daily api_docs build (elastic#146341)
  [Metric threshold rule] Adds new context variable for group by keys (elastic#145654)
  [Controls] [Portable Dashboards] Add control group renderer example plugin (elastic#146189)
  Refactor Observability Overview Page (elastic#146182)
  Send complete test data to xMatters, so it can create an alert (elastic#145431)
  [Dashboard] [Controls] Allow options list suggestions to be sorted (elastic#144867)
  Add open API specification for list connector types (elastic#145951)
  skip flaky suite (elastic#146086)
  [ML] Removing duplicate tooltip text (elastic#146308)
  Refactor Rules Page (elastic#146193)
  [DOCS] Alert limit for cases (elastic#145950)
  Extend session index fields mapping with a session creation timestamp. (elastic#145997)
  [Files] Move <Image /> component to `@kbn/shared-ux` package (elastic#145995)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Cloud Posture] Add functional tests for Findings Table

7 participants