Skip to content

Commit 88a335f

Browse files
committed
fix dd test run path & mqtt3 ci
1 parent d611867 commit 88a335f

7 files changed

Lines changed: 6 additions & 242 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -352,21 +352,11 @@ jobs:
352352
with:
353353
role-to-assume: ${{ env.CI_FLEET_PROVISIONING_ROLE }}
354354
aws-region: ${{ env.AWS_DEFAULT_REGION }}
355-
- name: run Fleet Provisioning service client test for MQTT311
356-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
357-
run: |
358-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
359-
python3 ./test_cases/test_fleet_provisioning.py --config-file test_cases/mqtt3_fleet_provisioning_cfg.json --thing-name-prefix Fleet_Thing_
360355
- name: run Fleet Provisioning service client test for MQTT5
361356
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
362357
run: |
363358
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
364359
python3 ./test_cases/test_fleet_provisioning.py --config-file test_cases/mqtt5_fleet_provisioning_cfg.json --thing-name-prefix Fleet_Thing_
365-
- name: run Fleet Provisioning with CSR service client test for MQTT311
366-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
367-
run: |
368-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
369-
python3 ./test_cases/test_fleet_provisioning.py --config-file test_cases/mqtt3_fleet_provisioning_with_csr_cfg.json --thing-name-prefix Fleet_Thing_
370360
- name: run Fleet Provisioning with CSR service client test for MQTT5
371361
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
372362
run: |
@@ -377,11 +367,6 @@ jobs:
377367
with:
378368
role-to-assume: ${{ env.CI_JOBS_SERVICE_CLIENT_ROLE }}
379369
aws-region: ${{ env.AWS_DEFAULT_REGION }}
380-
- name: run mqtt3 Jobs serviceTests
381-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
382-
run: |
383-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
384-
python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/mqtt3_jobs_cfg.json
385370
- name: run mqtt5 Jobs serviceTests
386371
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
387372
run: |
@@ -397,16 +382,6 @@ jobs:
397382
run: |
398383
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
399384
python3 ./test_cases/test_shadow_update.py --config-file test_cases/mqtt5_shadow_cfg.json
400-
- name: run Shadow service client test for MQTT311
401-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
402-
run: |
403-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
404-
python3 ./test_cases/test_shadow_update.py --config-file test_cases/mqtt3_shadow_cfg.json
405-
- name: run Named Shadow service client test for MQTT311
406-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
407-
run: |
408-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
409-
python3 ./test_cases/test_shadow_update.py --config-file test_cases/mqtt3_named_shadow_cfg.json
410385
- name: run Named Shadow service client test for MQTT5
411386
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
412387
run: |
@@ -488,21 +463,11 @@ jobs:
488463
with:
489464
role-to-assume: ${{ env.CI_FLEET_PROVISIONING_ROLE }}
490465
aws-region: ${{ env.AWS_DEFAULT_REGION }}
491-
- name: run Fleet Provisioning service client test for MQTT311
492-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
493-
run: |
494-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
495-
python3 ./test_cases/test_fleet_provisioning.py --config-file test_cases/mqtt3_fleet_provisioning_cfg.json --thing-name-prefix Fleet_Thing_
496466
- name: run Fleet Provisioning service client test for MQTT5
497467
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
498468
run: |
499469
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
500470
python3 ./test_cases/test_fleet_provisioning.py --config-file test_cases/mqtt5_fleet_provisioning_cfg.json --thing-name-prefix Fleet_Thing_
501-
- name: run Fleet Provisioning with CSR service client test for MQTT311
502-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
503-
run: |
504-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
505-
python3 ./test_cases/test_fleet_provisioning.py --config-file test_cases/mqtt3_fleet_provisioning_with_csr_cfg.json --thing-name-prefix Fleet_Thing_
506471
- name: run Fleet Provisioning with CSR service client test for MQTT5
507472
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
508473
run: |
@@ -513,11 +478,6 @@ jobs:
513478
with:
514479
role-to-assume: ${{ env.CI_JOBS_SERVICE_CLIENT_ROLE }}
515480
aws-region: ${{ env.AWS_DEFAULT_REGION }}
516-
- name: run mqtt3 Jobs serviceTests
517-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
518-
run: |
519-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
520-
python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/mqtt3_jobs_cfg.json
521481
- name: run mqtt5 Jobs serviceTests
522482
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
523483
run: |
@@ -533,16 +493,6 @@ jobs:
533493
run: |
534494
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
535495
python3 ./test_cases/test_shadow_update.py --config-file test_cases/mqtt5_shadow_cfg.json
536-
- name: run Shadow service client test for MQTT311
537-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
538-
run: |
539-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
540-
python3 ./test_cases/test_shadow_update.py --config-file test_cases/mqtt3_shadow_cfg.json
541-
- name: run Named Shadow service client test for MQTT311
542-
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
543-
run: |
544-
export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils
545-
python3 ./test_cases/test_shadow_update.py --config-file test_cases/mqtt3_named_shadow_cfg.json
546496
- name: run Named Shadow service client test for MQTT5
547497
working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests
548498
run: |

devicedefender/script/DDTestRun.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ def delete_thing_with_certi(thingName, certiId, certiArn):
4343
thing_arn = None
4444
client_made_thing = False
4545
client_made_policy = False
46-
use_mqtt5 = False
47-
if len(sys.argv) > 1:
48-
use_mqtt5 = (sys.argv[1] == "mqtt5")
49-
print("Run Device Defender with Mqtt5 Client")
5046

5147
##############################################
5248
# create a test thing
@@ -227,14 +223,13 @@ def delete_thing_with_certi(thingName, certiId, certiArn):
227223

228224
print("[Device Defender]Info: Running sample (this should take ~60 seconds).")
229225

230-
if use_mqtt5:
231-
# Run the sample:
232-
exe_path = "build/samples/others/device_defender/mqtt5_basic_report/"
233-
# If running locally, comment out the line above and uncomment the line below:
234-
#exe_path = "samples/others/device_defender/basic_report/build/"
226+
# Run the sample:
227+
exe_path = "build/samples/others/device_defender/mqtt5_basic_report/"
228+
# If running locally, comment out the line above and uncomment the line below:
229+
#exe_path = "samples/others/device_defender/mqtt5_basic_report/build/"
235230

236-
# Windows has a different build folder structure, but this ONLY runs on Linux currently so we do not need to worry about it
237-
exe_path = os.path.join(exe_path, "mqtt5-basic-report")
231+
# Windows has a different build folder structure, but this ONLY runs on Linux currently so we do not need to worry about it
232+
exe_path = os.path.join(exe_path, "mqtt5-basic-report")
238233

239234
print("[Device Defender]Info: Start to run: " + exe_path)
240235
# The Device Defender sample will take ~1 minute to run even if successful

servicetests/test_cases/mqtt3_fleet_provisioning_cfg.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

servicetests/test_cases/mqtt3_fleet_provisioning_with_csr_cfg.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

servicetests/test_cases/mqtt3_jobs_cfg.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

servicetests/test_cases/mqtt3_named_shadow_cfg.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

servicetests/test_cases/mqtt3_shadow_cfg.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)