Skip to content

Commit

Permalink
test against iot account
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Nov 15, 2024
1 parent 120a8fc commit 3d967d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test-integration/run/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
# Define const
USAGE="usage: run.sh <testMode> <NumberOfMQTTMessages> <LengthOfShadowRandomString> <NumberOfNetworkFailure>"

AWSMutualAuth_TodWorker_private_key="arn:aws:secretsmanager:us-east-1:123124136734:secret:V1IotSdkIntegrationTestPrivateKey-vNUQU8"
AWSMutualAuth_TodWorker_certificate="arn:aws:secretsmanager:us-east-1:123124136734:secret:V1IotSdkIntegrationTestCertificate-vTRwjE"
AWSMutualAuth_TodWorker_private_key="arn:aws:secretsmanager:us-east-1:180635532705:secret:ci/mqtt5/us/Mqtt5Prod/key-kqgyvf"
AWSMutualAuth_TodWorker_certificate="arn:aws:secretsmanager:us-east-1:180635532705:secret:ci/mqtt5/us/Mqtt5Prod/cert-VDI1Gd"

AWSGGDiscovery_TodWorker_private_key="arn:aws:secretsmanager:us-east-1:123124136734:secret:V1IotSdkIntegrationTestGGDiscoveryPrivateKey-YHQI1F"
AWSGGDiscovery_TodWorker_certificate="arn:aws:secretsmanager:us-east-1:123124136734:secret:V1IotSdkIntegrationTestGGDiscoveryCertificate-TwlAcS"
Expand Down Expand Up @@ -82,11 +82,11 @@ else
python ${RetrieveAWSKeys} ${AWSDRSName_certificate} > ${CREDENTIAL_DIR}certificate_drs.pem.crt
python ${RetrieveAWSKeys} ${AWSDRSName_privatekey} > ${CREDENTIAL_DIR}privateKey_drs.pem.key
elif [ "$1"x == "Websocket"x ]; then
ACCESS_KEY_ID_ARN=$(python ${RetrieveAWSKeys} ${AWSSecretForWebsocket_TodWorker_KeyId})
ACCESS_SECRET_KEY_ARN=$(python ${RetrieveAWSKeys} ${AWSSecretForWebsocket_TodWorker_SecretKey})
# ACCESS_KEY_ID_ARN=$(python ${RetrieveAWSKeys} ${AWSSecretForWebsocket_TodWorker_KeyId})
# ACCESS_SECRET_KEY_ARN=$(python ${RetrieveAWSKeys} ${AWSSecretForWebsocket_TodWorker_SecretKey})
TestMode="Websocket"
export AWS_ACCESS_KEY_ID=${ACCESS_KEY_ID_ARN}
export AWS_SECRET_ACCESS_KEY=${ACCESS_SECRET_KEY_ARN}
# export AWS_ACCESS_KEY_ID=${ACCESS_KEY_ID_ARN}
# export AWS_SECRET_ACCESS_KEY=${ACCESS_SECRET_KEY_ARN}
curl -s "${CA_CERT_URL}" > ${CA_CERT_PATH}
echo -e "URL retrieved certificate data\n"
elif [ "$1"x == "ALPN"x ]; then
Expand Down

0 comments on commit 3d967d8

Please sign in to comment.