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

[Backport 2.16] Add validation for threat intel source config #1407

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 364f42d from #1393.

* add validation for source config and allow null to be read in parser

Signed-off-by: Joanne Wang <jowg@amazon.com>

* add parsing tests

Signed-off-by: Joanne Wang <jowg@amazon.com>

* add additional validation

Signed-off-by: Joanne Wang <jowg@amazon.com>

---------

Signed-off-by: Joanne Wang <jowg@amazon.com>
(cherry picked from commit 364f42d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 49.15254% with 30 lines in your changes missing coverage. Please review.

Project coverage is 68.62%. Comparing base (4a7d588) to head (44c7c4d).
Report is 1 commits behind head on 2.16.

Files with missing lines Patch % Lines
...s/threatIntel/common/SourceConfigDtoValidator.java 29.72% 11 Missing and 15 partials ⚠️
...analytics/threatIntel/model/SATIFSourceConfig.java 81.81% 1 Missing and 1 partial ⚠️
...lytics/threatIntel/model/SATIFSourceConfigDto.java 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               2.16    #1407      +/-   ##
============================================
- Coverage     68.65%   68.62%   -0.04%     
- Complexity     3574     3586      +12     
============================================
  Files           404      404              
  Lines         20021    20052      +31     
  Branches       2041     2055      +14     
============================================
+ Hits          13746    13760      +14     
- Misses         5254     5264      +10     
- Partials       1021     1028       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AWSHurneyt AWSHurneyt merged commit e228d24 into 2.16 Oct 31, 2024
31 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants