-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#550 fixes, refactorings and improvements in splitter
- Loading branch information
Showing
12 changed files
with
127 additions
and
57 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
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
18 changes: 0 additions & 18 deletions
18
gateleen-queue/src/test/resources/testresource_queuesplitter_configuration_valid
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
gateleen-queue/src/test/resources/testresource_queuesplitter_configuration_valid_1
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,25 @@ | ||
{ | ||
"my-queue-1" : { | ||
"description": "Simple splitter with static list", | ||
"postfixFromStatic": [ | ||
"A", | ||
"B", | ||
"C", | ||
"D" | ||
] | ||
}, | ||
"my-queue-[0-9]+" : { | ||
"description": "Simple splitter with request header", | ||
"postfixFromRequest": { | ||
"header": "x-rp-deviceid" | ||
}, | ||
"postfixDelimiter": "+" | ||
}, | ||
"my-queue-[a-zA-Z]+" : { | ||
"description": "Simple splitter with request url matching", | ||
"postfixFromRequest" : { | ||
"url": ".*/path1/(.*)/path3/path4/.*" | ||
}, | ||
"postfixDelimiter": "_" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
gateleen-queue/src/test/resources/testresource_queuesplitter_configuration_valid_2
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,10 @@ | ||
{ | ||
"my-queue-1" : { | ||
"postfixFromStatic": [ | ||
"A", | ||
"B", | ||
"C", | ||
"D" | ||
] | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
gateleen-queue/src/test/resources/testresource_queuesplitter_configuration_with_props
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"my-queue-[0-9]+" : { | ||
"postfixDelimiter": "${queue.splitter.delimiter}", | ||
"postfixFromHeader": "{x-rp-deviceid}" | ||
"postfixFromRequest": { | ||
"header": "x-rp-deviceid" | ||
} | ||
} | ||
} |
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