Skip to content

Monitor execution and finding integration tests#139

Merged
sbcd90 merged 3 commits intoopensearch-project:mainfrom
stevanbz:feature/bucket-rules-agg-integ-tests
Nov 18, 2022
Merged

Monitor execution and finding integration tests#139
sbcd90 merged 3 commits intoopensearch-project:mainfrom
stevanbz:feature/bucket-rules-agg-integ-tests

Conversation

@stevanbz
Copy link
Copy Markdown
Contributor

@stevanbz stevanbz commented Nov 10, 2022

Signed-off-by: Stevan Buzejic stevan.buzejic@htecgroup.com

Description

Adds integration tests that should cover different use-cases of detector creation by focusing on behavior during monitor creation and verifying the findings.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

@stevanbz stevanbz force-pushed the feature/bucket-rules-agg-integ-tests branch from 6336299 to a76b747 Compare November 10, 2022 21:35
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 10, 2022

Codecov Report

Merging #139 (c69669e) into main (1b36aa1) will decrease coverage by 0.22%.
The diff coverage is 11.62%.

@@             Coverage Diff              @@
##               main     #139      +/-   ##
============================================
- Coverage     39.29%   39.06%   -0.23%     
- Complexity      889      891       +2     
============================================
  Files           176      176              
  Lines          6665     6724      +59     
  Branches        809      820      +11     
============================================
+ Hits           2619     2627       +8     
- Misses         3807     3856      +49     
- Partials        239      241       +2     
Impacted Files Coverage Δ
...rch/securityanalytics/action/IndexRuleRequest.java 0.00% <0.00%> (ø)
...indexmanagment/DetectorIndexManagementService.java 0.00% <0.00%> (ø)
...search/securityanalytics/mapper/MapperService.java 34.35% <0.00%> (-0.81%) ⬇️
...yanalytics/transport/TransportGetAlertsAction.java 0.00% <0.00%> (ø)
...nalytics/transport/TransportGetFindingsAction.java 0.00% <0.00%> (ø)
...ics/transport/TransportGetIndexMappingsAction.java 0.00% <0.00%> (ø)
...tics/transport/TransportGetMappingsViewAction.java 0.00% <0.00%> (ø)
...lytics/transport/TransportIndexDetectorAction.java 0.00% <0.00%> (ø)
.../transport/TransportUpdateIndexMappingsAction.java 0.00% <0.00%> (ø)
...lytics/transport/TransportValidateRulesAction.java 0.00% <0.00%> (ø)
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
Mostly cover the scenarios related with rule and monitor updates

Updated integration tests when executing detectors to check and assert the findings

Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
@stevanbz stevanbz force-pushed the feature/bucket-rules-agg-integ-tests branch from 92ba4ca to c69669e Compare November 17, 2022 21:14
@stevanbz stevanbz changed the title WIP Added integration test for bucket level rules creation Monitor execution and finding integration tests Nov 17, 2022
@stevanbz stevanbz marked this pull request as ready for review November 17, 2022 21:19
@stevanbz stevanbz requested a review from a team November 17, 2022 21:19
@sbcd90 sbcd90 merged commit a4a542d into opensearch-project:main Nov 18, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 18, 2022
Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
(cherry picked from commit a4a542d)
sbcd90 pushed a commit that referenced this pull request Nov 18, 2022
Signed-off-by: Stevan Buzejic <stevan.buzejic@htecgroup.com>
sbcd90 pushed a commit that referenced this pull request Dec 1, 2022
)

Signed-off-by: Sriram <59816283+skkosuri-amzn@users.noreply.github.com>
riysaxen-amzn pushed a commit to riysaxen-amzn/security-analytics that referenced this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants