-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
375 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,19 +20,19 @@ function stopService() { | |
function testRequest() { | ||
echo "--------------------- 20s 后测试开始 ---------------------" | ||
sleep 20 | ||
for i in {1..3}; do | ||
echo -e "\n\n" | ||
echo ${i} 'curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}"' | ||
curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}" | ||
echo -e "\n\n" | ||
sleep 3 | ||
|
||
echo -e "\n\n" | ||
echo 'curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -H "X-Request-Id: qaz12wx3ed4" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}"' | ||
curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -H "X-Request-Id: qaz12wx3ed4" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}" | ||
echo -e "\n\n" | ||
sleep 3 | ||
done | ||
echo -e "\n\n" | ||
echo 'curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}"' | ||
curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}" | ||
echo -e "\n\n" | ||
sleep 3 | ||
|
||
echo -e "\n\n" | ||
echo 'curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -H "X-Request-Id: qaz12wx3ed4" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}"' | ||
curl -X POST http://localhost:8080/api/v1/auth/register -H "Content-Type: application/json" -H "X-Request-Id: qaz12wx3ed4" -d "{\"email\":\"[email protected]\",\"password\":\"123456\"}" | ||
echo -e "\n\n" | ||
sleep 3 | ||
|
||
echo "--------------------- 测试结束!---------------------" | ||
stopService | ||
} | ||
|
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,3 @@ | ||
#!/bin/bash | ||
|
||
rm -rf http-mysql http-postgresql http-sqlite http-mongodb grpc-mysql grpc-postgresql grpc-sqlite grpc-mongodb http-pb-mysql http-pb-mongodb grpc-pb-mysql grpc-pb-mongodb grpc-gw-pb |
Oops, something went wrong.