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

Failing ES Promotion: FTR Configs #22 / detection engine api security and spaces enabled - rule execution logic Non ECS fields in alert document source should fail creating alert when ECS field mapping is geo_point #162247

Merged
merged 2 commits into from Jul 20, 2023

Conversation

e40pud
Copy link
Contributor

@e40pud e40pud commented Jul 19, 2023

Summary

Failing tests ticket: #154277

This PR fixes the non ECS fields in alert document source failing tests.

There are two failing tests:

  1. should remove source array of keywords field from alert if ECS field mapping is nested was filing due to wrong key path format passed to jest's toHaveProperty. When the field name has dot notation we should be using array format as a key path. See discussion here and usage examples here.
  2. should fail creating alert when ECS field mapping is geo_point was failing due to changed error message format.

…ecurity and spaces enabled - rule execution logic Non ECS fields in alert document source should fail creating alert when ECS field mapping is geo_point (elastic#154277)
@e40pud e40pud added release_note:skip Skip the PR/issue when compiling release notes test-failure-flaky labels Jul 19, 2023
@e40pud e40pud self-assigned this Jul 19, 2023
@e40pud e40pud requested a review from a team as a code owner July 19, 2023 13:35
@e40pud
Copy link
Contributor Author

e40pud commented Jul 19, 2023

@vitaliidm added you as a reviewer as well since you worked on these tests recently.

@e40pud
Copy link
Contributor Author

e40pud commented Jul 19, 2023

Run 100 times through flaky test runner.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @e40pud

Copy link
Contributor

@vitaliidm vitaliidm left a comment

Choose a reason for hiding this comment

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

LGTM

@e40pud e40pud merged commit 2cdcc18 into elastic:main Jul 20, 2023
18 checks passed
@kibanamachine kibanamachine added v8.10.0 backport:skip This commit does not require backporting labels Jul 20, 2023
dgieselaar pushed a commit to dgieselaar/kibana that referenced this pull request Jul 23, 2023
… and spaces enabled - rule execution logic Non ECS fields in alert document source should fail creating alert when ECS field mapping is geo_point (elastic#162247)

## Summary

Failing tests ticket: elastic#154277

This PR fixes the non ECS fields in alert document source failing tests.

There are two failing tests:
1. `should remove source array of keywords field from alert if ECS field
mapping is nested` was filing due to wrong key path format passed to
jest's `toHaveProperty`. When the field name has dot notation we should
be using array format as a key path. See discussion
[here](jestjs/jest#5653) and usage examples
[here](https://github.com/jestjs/jest/blob/main/docs/ExpectAPI.md#tohavepropertykeypath-value).
2. `should fail creating alert when ECS field mapping is geo_point` was
failing due to changed error message format.
ThomThomson pushed a commit to ThomThomson/kibana that referenced this pull request Aug 1, 2023
…ecurity and spaces enabled - rule execution logic Non ECS fields in alert document source should fail creating alert when ECS field mapping is geo_point (elastic#162247)

## Summary

Failing tests ticket: elastic#154277

This PR fixes the non ECS fields in alert document source failing tests.

There are two failing tests:
1. `should remove source array of keywords field from alert if ECS field
mapping is nested` was filing due to wrong key path format passed to
jest's `toHaveProperty`. When the field name has dot notation we should
be using array format as a key path. See discussion
[here](jestjs/jest#5653) and usage examples
[here](https://github.com/jestjs/jest/blob/main/docs/ExpectAPI.md#tohavepropertykeypath-value).
2. `should fail creating alert when ECS field mapping is geo_point` was
failing due to changed error message format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes test-failure-flaky v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants