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 analytics 2.10] Update index mappings #841

Merged

Conversation

amsiglan
Copy link
Contributor

@amsiglan amsiglan commented Sep 12, 2023

Description

Updated index alias mapping for security analytics dashboards plugin tests to comply with the latest backend mappings for correct rule query generation in a detector.

Issues Resolved

Resolves opensearch-project/security-analytics-dashboards-plugin#690

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Amardeepsingh Siglani <[email protected]>
@CEHENKLE
Copy link
Member

Whoooo...that's a big change.

What's the plan to completely close opensearch-project/security-analytics-dashboards-plugin#690 ?

@amsiglan amsiglan changed the base branch from 2.x to 2.10 September 13, 2023 00:17
@amsiglan
Copy link
Contributor Author

Whoooo...that's a big change.

What's the plan to completely close opensearch-project/security-analytics-dashboards-plugin#690 ?

Some additional commits showed up in the PR. The change should now be smaller.
There are 2 sets of failures I see with the tests, one with Findings and other with Alerts. The changes here fix the tests for Findings, working with the backend team to understand what is causing the Alerts failure.

@amsiglan amsiglan changed the title [Security analytics] Update index mappings [Security analytics 2.10] Update index mappings Sep 13, 2023
@amsiglan
Copy link
Contributor Author

Whoooo...that's a big change.
What's the plan to completely close opensearch-project/security-analytics-dashboards-plugin#690 ?

Some additional commits showed up in the PR. The change should now be smaller. There are 2 sets of failures I see with the tests, one with Findings and other with Alerts. The changes here fix the tests for Findings, working with the backend team to understand what is causing the Alerts failure.

Update: So the fix for the alerts piece will be coming from the backend. This PR should completely cater to the changes required in the tests

@peterzhuamazon peterzhuamazon merged commit c837967 into opensearch-project:2.10 Sep 13, 2023
33 of 35 checks passed
amsiglan added a commit to amsiglan/opensearch-dashboards-functional-test that referenced this pull request Sep 19, 2023
kavilla pushed a commit that referenced this pull request Oct 11, 2023
* updated tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* excluded a couple tests; fixed alerts tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* dummy change to trigger tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* Updated cypress commands to avoid duplication (#835)

* updated commands to avoid duplication

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated command header for create rule; changed url for searching rules

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* fix linter issues

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated mappings for test index (#841)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* avoid clicking filter menu btn twice (#849)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* removed check for url since it differs with and without security (#863)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* namespaced all commands; updated tests for 2.11

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* addressed PR comments

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
amsiglan added a commit to amsiglan/opensearch-dashboards-functional-test that referenced this pull request Oct 11, 2023
* updated tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* excluded a couple tests; fixed alerts tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* dummy change to trigger tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* Updated cypress commands to avoid duplication (opensearch-project#835)

* updated commands to avoid duplication

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated command header for create rule; changed url for searching rules

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* fix linter issues

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated mappings for test index (opensearch-project#841)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* avoid clicking filter menu btn twice (opensearch-project#849)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* removed check for url since it differs with and without security (opensearch-project#863)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* namespaced all commands; updated tests for 2.11

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* addressed PR comments

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
kavilla pushed a commit that referenced this pull request Oct 11, 2023
* updated tests



* excluded a couple tests; fixed alerts tests



* dummy change to trigger tests



* Updated cypress commands to avoid duplication (#835)

* updated commands to avoid duplication



* updated command header for create rule; changed url for searching rules



* fix linter issues



---------



* updated mappings for test index (#841)



* avoid clicking filter menu btn twice (#849)



* removed check for url since it differs with and without security (#863)



* namespaced all commands; updated tests for 2.11



* addressed PR comments



---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 11, 2023
* updated tests

* excluded a couple tests; fixed alerts tests

* dummy change to trigger tests

* Updated cypress commands to avoid duplication (#835)

* updated commands to avoid duplication

* updated command header for create rule; changed url for searching rules

* fix linter issues

---------

* updated mappings for test index (#841)

* avoid clicking filter menu btn twice (#849)

* removed check for url since it differs with and without security (#863)

* namespaced all commands; updated tests for 2.11

* addressed PR comments

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit c1f8c39)
AWSHurneyt pushed a commit to AWSHurneyt/opensearch-dashboards-functional-test that referenced this pull request Oct 15, 2023
ruanyl pushed a commit that referenced this pull request Oct 16, 2023
…930)

* [2.10] Latest tests security analytics (#826)

* updated tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* excluded a couple tests; fixed alerts tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated mappings for test index (#841)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* avoid clicking filter menu btn twice (#849)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* removed check for url since it differs with and without security (#863)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* excluded flaky test (#891)

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* Updated security analytics cypress tests for 2.9 patch.

Signed-off-by: AWSHurneyt <[email protected]>

* Skipping flaky test.

Signed-off-by: AWSHurneyt <[email protected]>

* Updated alerting cypress tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Co-authored-by: Amardeepsingh Siglani <[email protected]>
ruanyl pushed a commit that referenced this pull request Jan 22, 2024
* updated tests

* excluded a couple tests; fixed alerts tests

* dummy change to trigger tests

* Updated cypress commands to avoid duplication (#835)

* updated commands to avoid duplication

* updated command header for create rule; changed url for searching rules

* fix linter issues

---------

* updated mappings for test index (#841)

* avoid clicking filter menu btn twice (#849)

* removed check for url since it differs with and without security (#863)

* namespaced all commands; updated tests for 2.11

* addressed PR comments

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit c1f8c39)

Co-authored-by: Amardeepsingh Siglani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants