-
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.
improve extractor promise wait timeout
add prevotereq to rafthttp optimize promise waiting change example domains so they work on raft instances add admin test
- Loading branch information
Showing
50 changed files
with
934 additions
and
822 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
set -eo xtrace | ||
|
||
ADMIN_URL=${ADMIN_URL:-"http://localhost:9080"} | ||
PROXY_URL=${PROXY_URL:-"http://localhost"} | ||
|
||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
|
||
# domain setup | ||
|
||
id=$(uuid) | ||
|
||
dgate-cli namespace create name=ns-$id | ||
|
||
dgate-cli domain create name=dm-$id \ | ||
namespace=ns-$id priority:=$RANDOM patterns="$id.example.com" | ||
|
||
dgate-cli service create \ | ||
name=svc-$id namespace=ns-$id \ | ||
urls="http://localhost:8888/$RANDOM" | ||
|
||
dgate-cli module create name=module1 \ | ||
payload@=$DIR/admin_test.ts \ | ||
namespace=ns-$id | ||
|
||
dgate-cli route create \ | ||
name=rt-$id \ | ||
service=svc-$id \ | ||
namespace=ns-$id \ | ||
paths="/,/{},/$id,/$id/{id}" \ | ||
methods=GET,POST,PUT \ | ||
modules=module1 \ | ||
preserveHost:=false \ | ||
stripPath:=false | ||
|
||
curl -f $ADMIN_URL/readyz | ||
|
||
curl -f ${PROXY_URL}/$id/$RANDOM-$j -H Host:$id.example.com | ||
|
||
echo "Admin Test Succeeded" |
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,4 @@ | ||
|
||
export const responseModifier = async (ctx: any) => { | ||
console.log("responseModifier -> path params", ctx.pathParams()); | ||
} |
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
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
Oops, something went wrong.