-
Notifications
You must be signed in to change notification settings - Fork 30
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
6 changed files
with
34 additions
and
39 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 |
---|---|---|
|
@@ -54,9 +54,6 @@ checkFailed(){ | |
DATAOWNER="[email protected]" | ||
BENCHMARKOWNER="[email protected]" | ||
|
||
DATAOWNERPASSWORD="Dataset123" | ||
BENCHMARKOWNERPASSWORD="Benchmark123" | ||
|
||
if ${FRESH}; then | ||
clean | ||
fi | ||
|
@@ -85,13 +82,13 @@ echo "==========================================" | |
medperf profile activate testbenchmark | ||
checkFailed "testbenchmark profile activation failed" | ||
|
||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $BENCHMARKOWNER -p $BENCHMARKOWNERPASSWORD | ||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $BENCHMARKOWNER | ||
checkFailed "testbenchmark login failed" | ||
|
||
medperf profile activate testdata | ||
checkFailed "testdata profile activation failed" | ||
|
||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $DATAOWNER -p $DATAOWNERPASSWORD | ||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $DATAOWNER | ||
checkFailed "testdata login failed" | ||
|
||
echo "=====================================" | ||
|
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 |
---|---|---|
|
@@ -96,11 +96,6 @@ DATAOWNER="[email protected]" | |
BENCHMARKOWNER="[email protected]" | ||
ADMIN="[email protected]" | ||
|
||
MODELOWNERPASSWORD="Model123" | ||
DATAOWNERPASSWORD="Dataset123" | ||
BENCHMARKOWNERPASSWORD="Benchmark123" | ||
ADMINPASSWORD="Admin123" | ||
|
||
########################################################## | ||
################### Start Testing ######################## | ||
########################################################## | ||
|
@@ -154,19 +149,19 @@ echo "==========================================" | |
medperf profile activate testbenchmark | ||
checkFailed "testbenchmark profile activation failed" | ||
|
||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $BENCHMARKOWNER -p $BENCHMARKOWNERPASSWORD | ||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $BENCHMARKOWNER | ||
checkFailed "testbenchmark login failed" | ||
|
||
medperf profile activate testmodel | ||
checkFailed "testmodel profile activation failed" | ||
|
||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $MODELOWNER -p $MODELOWNERPASSWORD | ||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $MODELOWNER | ||
checkFailed "testmodel login failed" | ||
|
||
medperf profile activate testdata | ||
checkFailed "testdata profile activation failed" | ||
|
||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $DATAOWNER -p $DATAOWNERPASSWORD | ||
timeout -k ${TIMEOUT}s ${TIMEOUT}s bash $LOGIN_SCRIPT -e $DATAOWNER | ||
checkFailed "testdata login failed" | ||
########################################################## | ||
|
||
|
@@ -233,7 +228,7 @@ checkFailed "Benchmark submission failed" | |
BMK_UID=$(medperf benchmark ls | tail -n 1 | tr -s ' ' | cut -d ' ' -f 2) | ||
|
||
# Approve benchmark | ||
ADMIN_TOKEN=$(python $ADMIN_LOGIN_SCRIPT --email $ADMIN --password $ADMINPASSWORD --env dev) | ||
ADMIN_TOKEN=$(python $ADMIN_LOGIN_SCRIPT --email $ADMIN --env dev) | ||
checkFailed "Retrieving admin token failed" | ||
curl -sk -X PUT $SERVER_URL$VERSION_PREFIX/benchmarks/$BMK_UID/ -d '{"approval_status": "APPROVED"}' -H 'Content-Type: application/json' -H "Authorization: Bearer $ADMIN_TOKEN" | ||
checkFailed "Benchmark approval failed" | ||
|
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,21 +17,9 @@ def seed(args): | |
api_server.validate(False) | ||
|
||
# get tokens | ||
admin_token = token_from_credentials( | ||
"[email protected]", | ||
"Admin123", | ||
env="dev", | ||
) | ||
benchmark_owner_token = token_from_credentials( | ||
"[email protected]", | ||
"Benchmark123", | ||
env="dev", | ||
) | ||
model_owner_token = token_from_credentials( | ||
"[email protected]", | ||
"Model123", | ||
env="dev", | ||
) | ||
admin_token = token_from_credentials("[email protected]", env="dev") | ||
benchmark_owner_token = token_from_credentials("[email protected]", env="dev") | ||
model_owner_token = token_from_credentials("[email protected]", env="dev") | ||
|
||
# set admin | ||
set_user_as_admin(api_server, admin_token) | ||
|
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