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.x] Added input parameter validation with few small changes #372

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport 0cfddbf from #371

1. Added datasource name validation in delete/update api
2. Added datasource name validation in processor creation method
3. Changed index name delimiter from `.` to `-` to be consistent with others

Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit 0cfddbf)
@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #372 (fad02f0) into 2.x (4f7a585) will increase coverage by 0.19%.
The diff coverage is 92.50%.

@@             Coverage Diff              @@
##                2.x     #372      +/-   ##
============================================
+ Coverage     88.50%   88.69%   +0.19%     
- Complexity      746      753       +7     
============================================
  Files            91       92       +1     
  Lines          2697     2707      +10     
  Branches        215      219       +4     
============================================
+ Hits           2387     2401      +14     
+ Misses          230      228       -2     
+ Partials         80       78       -2     
Files Changed Coverage Δ
...rch/geospatial/ip2geo/jobscheduler/Datasource.java 96.56% <ø> (+0.76%) ⬆️
...atial/ip2geo/jobscheduler/DatasourceExtension.java 100.00% <ø> (ø)
...spatial/ip2geo/action/DeleteDatasourceRequest.java 91.66% <66.66%> (+0.75%) ⬆️
...h/geospatial/ip2geo/common/ParameterValidator.java 90.00% <90.00%> (ø)
...geospatial/ip2geo/action/PutDatasourceRequest.java 98.24% <100.00%> (+4.41%) ⬆️
...spatial/ip2geo/action/UpdateDatasourceRequest.java 100.00% <100.00%> (ø)
...h/geospatial/ip2geo/processor/Ip2GeoProcessor.java 93.02% <100.00%> (+0.91%) ⬆️

@heemin32 heemin32 merged commit 7d032ef into 2.x Jul 27, 2023
8 of 21 checks passed
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.

2 participants