-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from rventuri76/feature/aws-lambda-web-adapter
Adding refactored Minimal API Project to use lambda web adapter inste…
- Loading branch information
Showing
44 changed files
with
1,388 additions
and
235 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
install: | ||
commands: | ||
- npm i artillery -g | ||
build: | ||
commands: | ||
- export temp1=$(pwd);echo $temp1 | ||
- cd loadtest/codebuild | ||
- ./run-all-load-tests.sh | ||
artifacts: | ||
files: | ||
- src/NET6MinimalAPI/Report/* | ||
- src/NET6MinimalAPIWebAdapter/Report/* | ||
name: loadtest-$(date +%Y-%m-%H-%M) |
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,51 @@ | ||
TEST_DURATIOMN_SEC=60 | ||
LOG_INTERVAL_MIN=20 | ||
LOG_DELETE=yes | ||
DELETE_STACK=yes | ||
|
||
if [ "x${LT_TEST_DURATIOMN_SEC}" != x ]; | ||
then | ||
TEST_DURATIOMN_SEC=$LT_TEST_DURATIOMN_SEC | ||
fi | ||
|
||
if [ "x${LT_LOG_INTERVAL_MIN}" != x ]; | ||
then | ||
LOG_INTERVAL_MIN=$LT_LOG_INTERVAL_MIN | ||
fi | ||
|
||
if [ "x${LT_LOG_DELETE}" != x ]; | ||
then | ||
LOG_DELETE=$LT_LOG_DELETE | ||
fi | ||
|
||
if [ "x${LT_DELETE_STACK}" != x ]; | ||
then | ||
DELETE_STACK=$LT_DELETE_STACK | ||
fi | ||
|
||
echo -------------------------------------------- | ||
echo TEST_DURATIOMN_SEC: $TEST_DURATIOMN_SEC | ||
echo LOG_INTERVAL_MIN: $LOG_INTERVAL_MIN | ||
echo LOG_DELETE: $LOG_DELETE | ||
echo DELETE_STACK: $DELETE_STACK | ||
echo -------------------------------------------- | ||
|
||
if [ "$LT_NET6_MINIMAL_API" != yes ]; | ||
then | ||
echo SKIPPING net6 minimal api :$LT_NET6_MINIMAL_API | ||
else | ||
echo "RUNNING load test for net6 minimal api" | ||
cd ../../src/NET6MinimalAPI/ | ||
source ./deploy.sh $DELETE_STACK | ||
source ./run-loadtest.sh $TEST_DURATIOMN_SEC $LOG_INTERVAL_MIN $LOG_DELETE | ||
fi | ||
|
||
if [ "$LT_NET6_MINIMAL_API_WEB_ADAPTER" != yes ]; | ||
then | ||
echo SKIPPING net6 minimal api web adapter :$LT_NET6_MINIMAL_API_WEB_ADAPTER | ||
else | ||
echo "RUNNING load test for net6 minimal api web adapter" | ||
cd ../../src/NET6MinimalAPIWebAdapter/ | ||
source ./deploy.sh $DELETE_STACK | ||
source ./run-loadtest.sh $TEST_DURATIOMN_SEC $LOG_INTERVAL_MIN $LOG_DELETE | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.