Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support DEV/PROD configs for Smoke Testing
- Loading branch information
Showing
7 changed files
with
115 additions
and
11 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
28 changes: 28 additions & 0 deletions
28
connect-automation/config/connect-automation-config-dev.json
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,28 @@ | ||
{ | ||
"env": "dev", | ||
"username": "mailmemakar402", | ||
"password": "P@ssw0rd", | ||
"customerRole": { | ||
"email": "topcoderconnect+Customer@gmail.com", | ||
"password": "appirio123" | ||
}, | ||
"copilotRole": { | ||
"email": "topcoderconnect+Copilot@gmail.com", | ||
"password": "appirio123" | ||
}, | ||
"copilotManagerRole": { | ||
"email": "topcoderconnect+CopilotManager@gmail.com", | ||
"password": "appirio123" | ||
}, | ||
"homePageUrl": "https://connect.topcoder-dev.com/", | ||
"loginUrl": "https://auth.topcoder-dev.com", | ||
"redirectLoginUrl": "https://accounts-auth0.topcoder-dev.com/?regSource=tcBusiness&retUrl=https://connect.topcoder-dev.com", | ||
"logoutUrl": "https://accounts-auth0.topcoder-dev.com/?logout=true&retUrl=https://connect.topcoder-dev.com", | ||
"myProfileUrl": "https://connect.topcoder-dev.com/settings/profile", | ||
"notificationSettingsUrl": "https://connect.topcoder-dev.com/settings/notifications", | ||
"accountAndSecurityUrl": "https://connect.topcoder-dev.com/settings/account", | ||
"notificationsUrl": "https://connect.topcoder-dev.com/notifications", | ||
"allProjectsUrl": "https://connect.topcoder-dev.com/projects", | ||
"expiredProjectUrl": "https://connect.topcoder-dev.com/projects/17236", | ||
"platformUrl": "https://platform.topcoder-dev.com/taas/myteams" | ||
} |
28 changes: 28 additions & 0 deletions
28
connect-automation/config/connect-automation-config-local.json
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,28 @@ | ||
{ | ||
"env": "dev", | ||
"username": "mailmemakar402", | ||
"password": "P@ssw0rd", | ||
"customerRole": { | ||
"email": "topcoderconnect+Customer@gmail.com", | ||
"password": "appirio123" | ||
}, | ||
"copilotRole": { | ||
"email": "topcoderconnect+Copilot@gmail.com", | ||
"password": "appirio123" | ||
}, | ||
"copilotManagerRole": { | ||
"email": "topcoderconnect+CopilotManager@gmail.com", | ||
"password": "appirio123" | ||
}, | ||
"homePageUrl": "https://connect.topcoder-dev.com/", | ||
"loginUrl": "https://auth.topcoder-dev.com", | ||
"redirectLoginUrl": "https://accounts-auth0.topcoder-dev.com/?regSource=tcBusiness&retUrl=https://connect.topcoder-dev.com", | ||
"logoutUrl": "https://accounts-auth0.topcoder-dev.com/?logout=true&retUrl=https://connect.topcoder-dev.com", | ||
"myProfileUrl": "https://connect.topcoder-dev.com/settings/profile", | ||
"notificationSettingsUrl": "https://connect.topcoder-dev.com/settings/notifications", | ||
"accountAndSecurityUrl": "https://connect.topcoder-dev.com/settings/account", | ||
"notificationsUrl": "https://connect.topcoder-dev.com/notifications", | ||
"allProjectsUrl": "https://connect.topcoder-dev.com/projects", | ||
"expiredProjectUrl": "https://connect.topcoder-dev.com/projects/17236", | ||
"platformUrl": "https://platform.topcoder-dev.com/taas/myteams" | ||
} |
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,7 +1,28 @@ | ||
#!/bin/bash | ||
|
||
log() | ||
{ | ||
echo "`date +'%D %T'` : $1" | ||
} | ||
track_error() | ||
{ | ||
if [ $1 != "0" ]; then | ||
log "$2 exited with error code $1" | ||
log "completed execution IN ERROR at `date`" | ||
exit $1 | ||
fi | ||
|
||
} | ||
|
||
APPCONFIGFILENAME=$1 | ||
LOGICAL_PATH=$2 | ||
|
||
cd connect-automation | ||
aws s3 cp s3://tc-platform-${LOGICAL_PATH}/securitymanager/${APPCONFIGFILENAME} . | ||
track_error $? "Environment setting" | ||
cp ${APPCONFIGFILENAME} config/config.json | ||
|
||
docker build -t conn-smoke:latest . | ||
docker run --name conn-smoke --shm-size=2g conn-smoke:latest ./testrun.sh -d -p 4444:4444 | ||
docker cp conn-smoke:./connect-automation/test-results . | ||
docker build -t comm-smoke:latest . | ||
docker run --name comm-smoke --shm-size=2g comm-smoke:latest ./testrun.sh -d -p 4444:4444 | ||
docker cp comm-smoke:./connect-automation/test-results . | ||
track_error $? "Test case Failed" |