-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release events that are not routed to any sinks (#3959)
* Release events that are not routed to any sinks Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com> * Addressed review comments Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com> * Fixed a bug in the code that's causing the test failures Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com> * Modified to determine unrouted events after all routing is done Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com> * Add test yaml files Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com> * Addressed review comments Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com> --------- Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com> Co-authored-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Showing
7 changed files
with
255 additions
and
15 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
40 changes: 40 additions & 0 deletions
40
...g/opensearch/dataprepper/pipeline/acknowledgements/three-pipeline-route-default-test.yaml
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,40 @@ | ||
three-pipelines-route-test-1: | ||
delay: 2 | ||
source: | ||
in_memory: | ||
testing_key: PipelinesWithAcksIT | ||
acknowledgments: true | ||
route: | ||
- 2xx_route: '/status >= 200 and /status < 300' | ||
- other_route: '/status >= 300 or /status < 200' | ||
sink: | ||
- pipeline: | ||
name: "three-pipelines-route-test-2" | ||
routes: | ||
- 2xx_route | ||
- pipeline: | ||
name: "three-pipelines-route-test-3" | ||
routes: | ||
- other_route | ||
- in_memory: | ||
testing_key: PipelinesWithAcksIT | ||
acknowledgments: true | ||
|
||
three-pipelines-route-test-2: | ||
source: | ||
pipeline: | ||
name: "three-pipelines-route-test-1" | ||
sink: | ||
- in_memory: | ||
testing_key: PipelinesWithAcksIT | ||
acknowledgments: true | ||
|
||
three-pipelines-route-test-3: | ||
source: | ||
pipeline: | ||
name: "three-pipelines-route-test-1" | ||
sink: | ||
- in_memory: | ||
testing_key: PipelinesWithAcksIT | ||
acknowledgments: true | ||
|
37 changes: 37 additions & 0 deletions
37
...es/org/opensearch/dataprepper/pipeline/acknowledgements/three-pipeline-unrouted-test.yaml
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,37 @@ | ||
three-pipelines-unrouted-test-1: | ||
delay: 2 | ||
source: | ||
in_memory: | ||
testing_key: PipelinesWithAcksIT | ||
acknowledgments: true | ||
route: | ||
- 1xx_route: '/status >= 700 and /status < 800' | ||
- other_route: '/status >= 800 and /status < 900' | ||
sink: | ||
- pipeline: | ||
name: "three-pipelines-unrouted-test-2" | ||
routes: | ||
- 1xx_route | ||
- pipeline: | ||
name: "three-pipelines-unrouted-test-3" | ||
routes: | ||
- other_route | ||
|
||
three-pipelines-unrouted-test-2: | ||
source: | ||
pipeline: | ||
name: "three-pipelines-unrouted-test-1" | ||
sink: | ||
- in_memory: | ||
testing_key: PipelinesWithAcksIT | ||
acknowledgments: true | ||
|
||
three-pipelines-unrouted-test-3: | ||
source: | ||
pipeline: | ||
name: "three-pipelines-unrouted-test-1" | ||
sink: | ||
- in_memory: | ||
testing_key: PipelinesWithAcksIT | ||
acknowledgments: true | ||
|
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