Skip to content

Commit

Permalink
test host
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 15, 2024
1 parent f41536b commit aa8cbba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ def threadBRuntime(self, pyCoreClient, callback):
############################################################################
# Main #
# Check inputs
myCheckInManager = checkInManager.checkInManager(1)
myCheckInManager = checkInManager.checkInManager(2)
myCheckInManager.verify(sys.argv)

host = "ajje7lpljulm4-ats.iot.us-east-1.amazonaws.com"
rootCA = "./test-integration/Credentials/rootCA.crt"
certificate = "./test-integration/Credentials/certificate.pem.crt"
privateKey = "./test-integration/Credentials/privateKey.pem.key"
mode = myCheckInManager.mode
host = myCheckInManager.host

skip_when_match(ModeIsALPN(mode).And(
Python2VersionLowerThan((2, 7, 10)).Or(Python3VersionLowerThan((3, 5, 0)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ def verify(self, args):
exit(4)
self.mode = str(args[1])
self.host = str(args[2])
if self._numberOfInputParameters + 1 > 2:
if self._numberOfInputParameters + 1 > 3:
self.customParameter = int(args[3])
5 changes: 3 additions & 2 deletions test-integration/run/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ CREDENTIAL_DIR="./test-integration/Credentials/"
TEST_DIR="./test-integration/IntegrationTests/"
CA_CERT_URL="https://www.amazontrust.com/repository/AmazonRootCA1.pem"
CA_CERT_PATH=${CREDENTIAL_DIR}rootCA.crt
Host=$(python ${RetrieveAWSKeys} ${AWSHost})
TestHost=$(python ${RetrieveAWSKeys} ${AWSHost})
echo ${TestHost}



Expand Down Expand Up @@ -145,7 +146,7 @@ else
"IntegrationTestJobsClient.py") Scale=""
esac

python ${TEST_DIR}${file} ${TestMode} ${Host} ${Scale}
python ${TEST_DIR}${file} ${TestMode} ${TestHost} ${Scale}
currentTestStatus=$?
echo "[SUB] Test: ${file} completed. Exiting with status: ${currentTestStatus}"
if [ ${currentTestStatus} -ne 0 ]; then
Expand Down

0 comments on commit aa8cbba

Please sign in to comment.