-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pewpew examples and test (#243)
* Added script to test the examples and script with example variables * Updated example files to send to stdout so test_examples can view actual errors * Fixed the loggers for several broken examples
- Loading branch information
1 parent
376feed
commit b58e703
Showing
30 changed files
with
80 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/stats-*.json | ||
/search-results*.json | ||
/log-results* | ||
/*.yaml.out |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -40,7 +40,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
test_404s: | ||
limit: 1 | ||
to: stdout | ||
|
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
test_404s: | ||
limit: 1 | ||
to: stdout | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ loggers: | |
pretty: false | ||
|
||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ loggers: | |
pretty: false | ||
|
||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ loggers: | |
pretty: false | ||
|
||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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,7 +20,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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,7 +20,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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,7 +20,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ providers: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: POST | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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,7 +20,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ load_pattern: | |
|
||
loggers: | ||
test: | ||
to: stderr | ||
to: stdout | ||
|
||
endpoints: | ||
- method: GET | ||
|
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,26 @@ | ||
#!/bin/bash | ||
set -e | ||
set +x | ||
source ./variables.sh | ||
|
||
if [ -z ${PORT+x} ]; then | ||
echo "PORT is unset. Please start the test-server and specify the PORT variable when running this"; | ||
exit 1 | ||
else | ||
echo "Testing examples on PORT '$PORT'"; | ||
fi | ||
PEWPEW_PATH=("pewpew") | ||
if [[ ! -z "$1" ]] ; then | ||
PEWPEW_PATH=("$1") | ||
fi | ||
PEWPEW_VERSION=$($PEWPEW_PATH --version) | ||
echo "Testing examples against version $PEWPEW_VERSION" | ||
|
||
|
||
for file in *.yaml; do | ||
[ -f "$file" ] || break | ||
echo "Running: $PEWPEW_PATH run -f json $file" | ||
"$PEWPEW_PATH" run -f json "$file" > "$file.out" | ||
echo "Result: $?" | ||
done | ||
echo "All examples passed!" |
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,5 @@ | ||
#!/bin/bash | ||
export PASSWORD=bogus | ||
export RAMP_TIME=5s | ||
export LOAD_TIME=10s | ||
export SCALE_PERCENTAGE=100 |