Skip to content

Commit

Permalink
certificate path
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred2g committed Nov 29, 2023
1 parent d9670ab commit 225fad9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,14 @@ jobs:
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: run mqtt3 Jobs serviceTests
run: |
working-directory: ./aws-iot-device-sdk-js-v2/servicetests
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
python3 ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER}}/mqtt3_jobs_cfg.json
python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER}}/mqtt3_jobs_cfg.json
- name: run mqtt5 Jobs serviceTests
run: |
working-directory: ./aws-iot-device-sdk-js-v2/servicetests
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
python3 ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER}}/mqtt5_jobs_cfg.json
python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER}}/mqtt5_jobs_cfg.json
# - name: run Jobs sample
# run: |
Expand Down
11 changes: 7 additions & 4 deletions servicetests/test_cases/test_jobs_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ def main():
SecretId="ci/JobsServiceClientTest/policy_name")["SecretString"]

# Temporary certificate/key file path.
certificate_path = os.path.join(os.getcwd(), "servicetests/certificate.pem.crt")
#certificate_path = os.path.join(os.getcwd(), "tests/jobs_execution/certificate.pem.crt")
key_path = os.path.join(os.getcwd(), "servicetests/private.pem.key")
#key_path = os.path.join(os.getcwd(), "tests/jobs_execution/private.pem.key")
#certificate_path = os.path.join(os.getcwd(), "servicetests/certificate.pem.crt")
certificate_path = os.path.join(os.getcwd(), "tests/jobs_execution/certificate.pem.crt")
#key_path = os.path.join(os.getcwd(), "servicetests/private.pem.key")
key_path = os.path.join(os.getcwd(), "tests/jobs_execution/private.pem.key")

open(certificate_path, "w")
open(key_path, "w")

try:
ci_iot_thing.create_iot_thing(
Expand Down

0 comments on commit 225fad9

Please sign in to comment.