Skip to content

Switch to using a role for CI #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 26, 2024
Prev Previous commit
Next Next commit
test host
  • Loading branch information
xiazhvera committed Nov 15, 2024
commit aa8cbbaba20de8ce8a63139e52f32490eab246cd
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
Loading