diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6141599bd..a0819fa65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -460,6 +460,23 @@ jobs: sudo apt-get update -y sudo apt-get install softhsm -y softhsm2-util --version + + - name: configure AWS credentials (Jobs) + uses: aws-actions/configure-aws-credentials@v2 + with: + role-to-assume: ${{ env.CI_JOBS_SERVICE_CLIENT_ROLE }} + aws-region: ${{ env.AWS_DEFAULT_REGION }} + - name: run mqtt3 Jobs serviceTests + working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests + run: | + export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils + python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/mqtt3_jobs_cfg.json + - name: run mqtt5 Jobs serviceTests + working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests + run: | + export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils + python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/mqtt5_jobs_cfg.json + - name: configure AWS credentials (Connect and PubSub) uses: aws-actions/configure-aws-credentials@v1 with: @@ -518,21 +535,6 @@ jobs: - name: run Mqtt5 Shadow sample run: | python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_shadow_mqtt5_cfg.json - - name: configure AWS credentials (Jobs) - uses: aws-actions/configure-aws-credentials@v2 - with: - role-to-assume: ${{ env.CI_JOBS_SERVICE_CLIENT_ROLE }} - aws-region: ${{ env.AWS_DEFAULT_REGION }} - - name: run mqtt5 Jobs serviceTests - working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests - run: | - export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils - python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/mqtt5_jobs_cfg.json - - name: run mqtt3 Jobs serviceTests - working-directory: ./aws-iot-device-sdk-cpp-v2/servicetests - run: | - export PYTHONPATH=${{ github.workspace }}/aws-iot-device-sdk-cpp-v2/utils - python3 ./test_cases/test_jobs_execution.py --config-file ${{ env.CI_SERVICE_TESTS_CFG_FOLDER }}/mqtt3_jobs_cfg.json - name: configure AWS credentials (Fleet provisioning) uses: aws-actions/configure-aws-credentials@v1 with: diff --git a/servicetests/tests/JobsExecution/main.cpp b/servicetests/tests/JobsExecution/main.cpp index cab212895..f4eb42ebf 100644 --- a/servicetests/tests/JobsExecution/main.cpp +++ b/servicetests/tests/JobsExecution/main.cpp @@ -45,7 +45,7 @@ std::vector availableJobs; int main(int argc, char *argv[]) { - fprintf(stdout, "staring the jobs execution programm\n"); + fprintf(stdout, "starting the jobs execution programm\n"); /************************ Setup ****************************/ // Do the global initialization for the API @@ -112,7 +112,7 @@ int main(int argc, char *argv[]) client5 = builder->Build(); if (client5 == nullptr) { fprintf( - stdout, "Failed to Init Mqtt5Client with error code %d: %s", LastError(), ErrorDebugString(LastError())); + stdout, "Failed to Init Mqtt5Client with error code %d: %s.\n", LastError(), ErrorDebugString(LastError())); return -1; } fprintf(stdout, "Connecting...\n");