-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
25f8e71
commit 1972734
Showing
6 changed files
with
34 additions
and
9 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,10 @@ | ||
config: | ||
deploymentId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
region: xxxx.pure.cloud | ||
scenarios: | ||
"Failing test using Containing": | ||
- say: hi | ||
- waitForReplyContaining: This is deliberately wrong | ||
"Failing test using Matching": | ||
- say: hi | ||
- waitForReplyMatching: This is [0-9]+ wrong |
File renamed without changes.
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,13 +1,28 @@ | ||
#sh | ||
|
||
# exit when any command fails | ||
set -e | ||
|
||
RED='\033[0;31m' | ||
NO_COLOUR='\033[0m' | ||
|
||
npm install -g ../../packages/genesys-web-messaging-tester-cli | ||
|
||
function cleanup { | ||
npm uninstall -g ../../packages/genesys-web-messaging-tester-cli | ||
} | ||
trap cleanup EXIT | ||
|
||
web-messaging-tester example.yml -id $DEPLOYMENT_ID -r $REGION -p 10 | ||
## Passing test exits with code 0 | ||
web-messaging-tester example-pass.yml -id $DEPLOYMENT_ID -r $REGION -p 10 | ||
if [ $? -ne 0 ] | ||
then | ||
echo "${RED}Passing test did not result in Exit Code of 0. Exit code was $?${NO_COLOUR}" | ||
exit 1 | ||
fi | ||
|
||
## Failing test exists with code 1 | ||
web-messaging-tester example-fail.yml -id $DEPLOYMENT_ID -r $REGION -p 10 | ||
if [ $? -ne 1 ] | ||
then | ||
echo "${RED}Failing test did not result in Exit Code of 1. Exit code was $?${NO_COLOUR}" | ||
exit 1 | ||
fi |
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