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

Monitor execution and finding integration tests #139

Merged

Conversation

stevanbz
Copy link
Contributor

@stevanbz stevanbz commented Nov 10, 2022

Signed-off-by: Stevan Buzejic [email protected]

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

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.

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 <[email protected]>
@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 <[email protected]>
(cherry picked from commit a4a542d)
sbcd90 pushed a commit that referenced this pull request Nov 18, 2022
sbcd90 pushed a commit that referenced this pull request Dec 1, 2022
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