forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix to better handle lambda responses when they are empty or null or …
…not a valid json (opensearch-project#5211) * Fix to better handle lambda responses when they are empty or null or not a valid json Signed-off-by: Santhosh Gandhe <[email protected]> * UTs for strict mode response comparison Signed-off-by: Santhosh Gandhe <[email protected]> * Additional UTs for strict mode and aggregate mode Signed-off-by: Santhosh Gandhe <[email protected]> * removed unused method and better method naming Signed-off-by: Santhosh Gandhe <[email protected]> * doExecute method testing Signed-off-by: Santhosh Gandhe <[email protected]> * better exception message Signed-off-by: Santhosh Gandhe <[email protected]> * Add IT for aggregate mode cases Signed-off-by: Srikanth Govindarajan <[email protected]> * Testing with presence of tags Signed-off-by: Santhosh Gandhe <[email protected]> * Add IT to test behaviour for different lambda responses Signed-off-by: Srikanth Govindarajan <[email protected]> * removed unused imports Signed-off-by: Santhosh Gandhe <[email protected]> * fix checkstyle Signed-off-by: Srikanth Govindarajan <[email protected]> * fix checkstyle Signed-off-by: Srikanth Govindarajan <[email protected]> * Address comments Signed-off-by: Srikanth Govindarajan <[email protected]> --------- Signed-off-by: Santhosh Gandhe <[email protected]> Signed-off-by: Srikanth Govindarajan <[email protected]> Co-authored-by: Srikanth Govindarajan <[email protected]>
- Loading branch information
1 parent
6c9cdeb
commit 539d599
Showing
9 changed files
with
288 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...taprepper/plugins/lambda/processor/exception/StrictResponseModeNotRespectedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.opensearch.dataprepper.plugins.lambda.processor.exception; | ||
|
||
public class StrictResponseModeNotRespectedException extends RuntimeException { | ||
public StrictResponseModeNotRespectedException(final String message) { | ||
super(message); | ||
} | ||
} |
Oops, something went wrong.