-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Controller and Connector smoke tests
- Loading branch information
SergeRadinovich
committed
Apr 25, 2019
1 parent
f36d272
commit 886a0f5
Showing
7 changed files
with
164 additions
and
49 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,5 @@ | ||
# demo | ||
# Usage | ||
|
||
FIX ME! | ||
``` | ||
./run-smoke-tests.sh | ||
``` |
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 |
---|---|---|
@@ -1,29 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Our test suite config | ||
CONTROLLER_HOST="http://iofog-controller:51121" | ||
TEST_SUITE="tests/demo-test-suite.yml" | ||
|
||
# | ||
# Wait until we can connect to a url given in $1 | ||
# | ||
function waitFor() { | ||
|
||
# Can we connect? | ||
echo "Waiting for $1" | ||
until $(curl --output /dev/null --silent --head --connect-to --url ${1}); do | ||
printf '.' | ||
sleep 2 | ||
done | ||
echo "$1 is up" | ||
} | ||
|
||
|
||
# Wait until Controller has come up | ||
echo "Waiting for Controller to start" | ||
waitFor ${CONTROLLER_HOST} | ||
for HOST in http://iofog-controller:51121 http://iofog-connector:8080 http://iofog-agent:54321 ; do | ||
waitFor "$HOST" | ||
done | ||
|
||
echo "Beginning Test Runner Smoke tests.." | ||
python --version | ||
pyresttest ${CONTROLLER_HOST} tests/demo-test-suite.yml | ||
|
||
echo "Test Runner Smoke tests Complete" | ||
pyresttest http:// tests/demo-test-suite.yml #--log debug | ||
|
||
echo "Test Runner Smoke tests Complete" |
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