@@ -48,16 +48,32 @@ jobs:
48
48
run : |
49
49
python -m pip install boto3
50
50
- name : configure AWS credentials (containers)
51
- uses : aws-actions/configure-aws-credentials@v2
51
+ uses : aws-actions/configure-aws-credentials@v4
52
52
with :
53
53
role-to-assume : ${{ env.CI_BUILD_AND_TEST_ROLE }}
54
54
aws-region : ${{ env.AWS_DEFAULT_REGION }}
55
55
- name : Build ${{ env.PACKAGE_NAME }}
56
56
run : |
57
57
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
58
58
python builder.pyz build -p ${{ env.PACKAGE_NAME }}
59
- - name : configure AWS credentials (PubSub )
59
+ - name : configure AWS credentials (MQTT5 )
60
60
uses : aws-actions/configure-aws-credentials@v2
61
+ with :
62
+ role-to-assume : ${{ env.CI_MQTT5_ROLE }}
63
+ aws-region : ${{ env.AWS_DEFAULT_REGION }}
64
+ - name : Service tests
65
+ shell : bash
66
+ run : |
67
+ cd aws-iot-device-sdk-python-v2
68
+ python3 -m pip install .
69
+ source utils/test_setup.sh s3://iot-sdk-ci-bucket-us-east1/IotUsProdMqtt5EnvironmentVariables.txt us-east-1
70
+ python3 -m unittest test.test_shadow
71
+ python3 -m unittest test.test_jobs
72
+ python3 -m unittest test.test_identity
73
+ source utils/test_cleanup.sh
74
+ cd ..
75
+ - name : configure AWS credentials (PubSub)
76
+ uses : aws-actions/configure-aws-credentials@v4
61
77
with :
62
78
role-to-assume : ${{ env.CI_PUBSUB_ROLE }}
63
79
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -68,15 +84,15 @@ jobs:
68
84
run : |
69
85
python ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_windows_cert_connect_cfg.json
70
86
- name : configure AWS credentials (MQTT5 samples)
71
- uses : aws-actions/configure-aws-credentials@v2
87
+ uses : aws-actions/configure-aws-credentials@v4
72
88
with :
73
89
role-to-assume : ${{ env.CI_MQTT5_ROLE }}
74
90
aws-region : ${{ env.AWS_DEFAULT_REGION }}
75
91
- name : run MQTT5 PubSub sample
76
92
run : |
77
93
python ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_cfg.json
78
94
- name : configure AWS credentials (Device Advisor)
79
- uses : aws-actions/configure-aws-credentials@v2
95
+ uses : aws-actions/configure-aws-credentials@v4
80
96
with :
81
97
role-to-assume : ${{ env.CI_DEVICE_ADVISOR }}
82
98
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -103,7 +119,7 @@ jobs:
103
119
source .venv/bin/activate
104
120
python3 -m pip install boto3
105
121
- name : configure AWS credentials (containers)
106
- uses : aws-actions/configure-aws-credentials@v2
122
+ uses : aws-actions/configure-aws-credentials@v4
107
123
with :
108
124
role-to-assume : ${{ env.CI_BUILD_AND_TEST_ROLE }}
109
125
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -113,8 +129,25 @@ jobs:
113
129
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
114
130
chmod a+x builder
115
131
./builder build -p ${{ env.PACKAGE_NAME }}
116
- - name : configure AWS credentials (PubSub )
132
+ - name : configure AWS credentials (MQTT5 )
117
133
uses : aws-actions/configure-aws-credentials@v2
134
+ with :
135
+ role-to-assume : ${{ env.CI_MQTT5_ROLE }}
136
+ aws-region : ${{ env.AWS_DEFAULT_REGION }}
137
+ - name : Service tests
138
+ shell : bash
139
+ run : |
140
+ source .venv/bin/activate
141
+ cd aws-iot-device-sdk-python-v2
142
+ python3 -m pip install .
143
+ source utils/test_setup.sh s3://iot-sdk-ci-bucket-us-east1/IotUsProdMqtt5EnvironmentVariables.txt us-east-1
144
+ python3 -m unittest test.test_shadow
145
+ python3 -m unittest test.test_jobs
146
+ python3 -m unittest test.test_identity
147
+ source utils/test_cleanup.sh
148
+ cd ..
149
+ - name : configure AWS credentials (PubSub)
150
+ uses : aws-actions/configure-aws-credentials@v4
118
151
with :
119
152
role-to-assume : ${{ env.CI_PUBSUB_ROLE }}
120
153
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -131,7 +164,7 @@ jobs:
131
164
source .venv/bin/activate
132
165
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pkcs12_connect_cfg.json
133
166
- name : configure AWS credentials (MQTT5 samples)
134
- uses : aws-actions/configure-aws-credentials@v2
167
+ uses : aws-actions/configure-aws-credentials@v4
135
168
with :
136
169
role-to-assume : ${{ env.CI_MQTT5_ROLE }}
137
170
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -140,7 +173,7 @@ jobs:
140
173
source .venv/bin/activate
141
174
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_cfg.json
142
175
- name : configure AWS credentials (Device Advisor)
143
- uses : aws-actions/configure-aws-credentials@v2
176
+ uses : aws-actions/configure-aws-credentials@v4
144
177
with :
145
178
role-to-assume : ${{ env.CI_DEVICE_ADVISOR }}
146
179
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -155,11 +188,11 @@ jobs:
155
188
permissions :
156
189
id-token : write # This is required for requesting the JWT
157
190
steps :
158
- - name : Running samples in CI setup
191
+ - name : Install AWS SDK for Python
159
192
run : |
160
- python -m pip install boto3
193
+ python3 -m pip install boto3
161
194
- name : configure AWS credentials (containers)
162
- uses : aws-actions/configure-aws-credentials@v2
195
+ uses : aws-actions/configure-aws-credentials@v4
163
196
with :
164
197
role-to-assume : ${{ env.CI_BUILD_AND_TEST_ROLE }}
165
198
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -168,27 +201,40 @@ jobs:
168
201
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
169
202
chmod a+x builder
170
203
./builder build -p ${{ env.PACKAGE_NAME }}
171
- - name : Running samples in CI setup
204
+ - name : configure AWS credentials (MQTT5)
205
+ uses : aws-actions/configure-aws-credentials@v2
206
+ with :
207
+ role-to-assume : ${{ env.CI_MQTT5_ROLE }}
208
+ aws-region : ${{ env.AWS_DEFAULT_REGION }}
209
+ - name : Service tests
210
+ shell : bash
172
211
run : |
173
- python3 -m pip install boto3
212
+ cd aws-iot-device-sdk-python-v2
213
+ python3 -m pip install .
214
+ source utils/test_setup.sh s3://iot-sdk-ci-bucket-us-east1/IotUsProdMqtt5EnvironmentVariables.txt us-east-1
215
+ python3 -m unittest test.test_shadow
216
+ python3 -m unittest test.test_jobs
217
+ python3 -m unittest test.test_identity
218
+ source utils/test_cleanup.sh
219
+ cd ..
174
220
- name : configure AWS credentials (PubSub)
175
- uses : aws-actions/configure-aws-credentials@v2
221
+ uses : aws-actions/configure-aws-credentials@v4
176
222
with :
177
223
role-to-assume : ${{ env.CI_PUBSUB_ROLE }}
178
224
aws-region : ${{ env.AWS_DEFAULT_REGION }}
179
225
- name : run PubSub sample
180
226
run : |
181
227
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pubsub_cfg.json
182
228
- name : configure AWS credentials (MQTT5 samples)
183
- uses : aws-actions/configure-aws-credentials@v2
229
+ uses : aws-actions/configure-aws-credentials@v4
184
230
with :
185
231
role-to-assume : ${{ env.CI_MQTT5_ROLE }}
186
232
aws-region : ${{ env.AWS_DEFAULT_REGION }}
187
233
- name : run MQTT5 PubSub sample
188
234
run : |
189
235
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_pubsub_cfg.json
190
236
- name : configure AWS credentials (Device Advisor)
191
- uses : aws-actions/configure-aws-credentials@v2
237
+ uses : aws-actions/configure-aws-credentials@v4
192
238
with :
193
239
role-to-assume : ${{ env.CI_DEVICE_ADVISOR }}
194
240
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -210,7 +256,7 @@ jobs:
210
256
sudo apt-get install softhsm -y
211
257
softhsm2-util --version
212
258
- name : configure AWS credentials (containers)
213
- uses : aws-actions/configure-aws-credentials@v2
259
+ uses : aws-actions/configure-aws-credentials@v4
214
260
with :
215
261
role-to-assume : ${{ env.CI_BUILD_AND_TEST_ROLE }}
216
262
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -221,7 +267,7 @@ jobs:
221
267
./builder build -p ${{ env.PACKAGE_NAME }}
222
268
223
269
- name : configure AWS credentials (service tests Fleet Provisioning)
224
- uses : aws-actions/configure-aws-credentials@v2
270
+ uses : aws-actions/configure-aws-credentials@v4
225
271
with :
226
272
role-to-assume : ${{ env.CI_FLEET_PROVISIONING_ROLE}}
227
273
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -247,7 +293,7 @@ jobs:
247
293
python3 ./test_cases/test_fleet_provisioning.py --config-file test_cases/mqtt5_fleet_provisioning_with_csr_cfg.json --thing-name-prefix Fleet_Thing_
248
294
249
295
- name : configure AWS credentials (service tests Shadow)
250
- uses : aws-actions/configure-aws-credentials@v2
296
+ uses : aws-actions/configure-aws-credentials@v4
251
297
with :
252
298
role-to-assume : ${{ env.CI_SHADOW_SERVICE_CLIENT_ROLE }}
253
299
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -273,7 +319,7 @@ jobs:
273
319
python3 ./test_cases/test_shadow_update.py --config-file test_cases/mqtt3_named_shadow_cfg.json
274
320
275
321
- name : configure AWS credentials (service tests Jobs)
276
- uses : aws-actions/configure-aws-credentials@v2
322
+ uses : aws-actions/configure-aws-credentials@v4
277
323
with :
278
324
role-to-assume : ${{ env.CI_JOBS_SERVICE_CLIENT_ROLE}}
279
325
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -289,7 +335,7 @@ jobs:
289
335
python3 ./test_cases/test_jobs_execution.py --config-file test_cases/mqtt5_jobs_cfg.json
290
336
291
337
- name : configure AWS credentials (Connect and PubSub)
292
- uses : aws-actions/configure-aws-credentials@v2
338
+ uses : aws-actions/configure-aws-credentials@v4
293
339
with :
294
340
role-to-assume : ${{ env.CI_PUBSUB_ROLE }}
295
341
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -309,23 +355,23 @@ jobs:
309
355
echo "directories.tokendir = /tmp/tokens" > /tmp/softhsm2.conf
310
356
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_pkcs11_connect_cfg.json
311
357
- name : configure AWS credentials (Cognito)
312
- uses : aws-actions/configure-aws-credentials@v2
358
+ uses : aws-actions/configure-aws-credentials@v4
313
359
with :
314
360
role-to-assume : ${{ env.CI_COGNITO_ROLE }}
315
361
aws-region : ${{ env.AWS_DEFAULT_REGION }}
316
362
- name : run Cognito Connect sample
317
363
run : |
318
364
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_cognito_connect_cfg.json
319
365
- name : configure AWS credentials (X509)
320
- uses : aws-actions/configure-aws-credentials@v2
366
+ uses : aws-actions/configure-aws-credentials@v4
321
367
with :
322
368
role-to-assume : ${{ env.CI_X509_ROLE }}
323
369
aws-region : ${{ env.AWS_DEFAULT_REGION }}
324
370
- name : run X509 sample
325
371
run : |
326
372
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_x509_connect_cfg.json
327
373
- name : configure AWS credentials (MQTT5 samples)
328
- uses : aws-actions/configure-aws-credentials@v2
374
+ uses : aws-actions/configure-aws-credentials@v4
329
375
with :
330
376
role-to-assume : ${{ env.CI_MQTT5_ROLE }}
331
377
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -348,15 +394,15 @@ jobs:
348
394
run : |
349
395
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_shared_subscription_cfg.json
350
396
- name : configure AWS credentials (Custom Authorizer)
351
- uses : aws-actions/configure-aws-credentials@v2
397
+ uses : aws-actions/configure-aws-credentials@v4
352
398
with :
353
399
role-to-assume : ${{ env.CI_CUSTOM_AUTHORIZER_ROLE }}
354
400
aws-region : ${{ env.AWS_DEFAULT_REGION }}
355
401
- name : run CustomAuthorizerConnect sample
356
402
run : |
357
403
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_custom_authorizer_connect_cfg.json
358
404
- name : configure AWS credentials (Shadow)
359
- uses : aws-actions/configure-aws-credentials@v2
405
+ uses : aws-actions/configure-aws-credentials@v4
360
406
with :
361
407
role-to-assume : ${{ env.CI_SHADOW_ROLE }}
362
408
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -367,7 +413,7 @@ jobs:
367
413
run : |
368
414
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_shadow_cfg.json
369
415
- name : configure AWS credentials (Jobs)
370
- uses : aws-actions/configure-aws-credentials@v2
416
+ uses : aws-actions/configure-aws-credentials@v4
371
417
with :
372
418
role-to-assume : ${{ env.CI_JOBS_ROLE }}
373
419
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -378,7 +424,7 @@ jobs:
378
424
run : |
379
425
python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_mqtt5_jobs_cfg.json
380
426
- name : configure AWS credentials (Fleet provisioning)
381
- uses : aws-actions/configure-aws-credentials@v2
427
+ uses : aws-actions/configure-aws-credentials@v4
382
428
with :
383
429
role-to-assume : ${{ env.CI_FLEET_PROVISIONING_ROLE }}
384
430
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -404,7 +450,7 @@ jobs:
404
450
run : |
405
451
python3 -m pip install boto3
406
452
- name : configure AWS credentials (containers)
407
- uses : aws-actions/configure-aws-credentials@v2
453
+ uses : aws-actions/configure-aws-credentials@v4
408
454
with :
409
455
role-to-assume : ${{ env.CI_BUILD_AND_TEST_ROLE }}
410
456
aws-region : ${{ env.AWS_DEFAULT_REGION }}
@@ -418,7 +464,7 @@ jobs:
418
464
python3 -m pip install awsiotsdk
419
465
python3 -m pip install -U git+https://github.com/aws-greengrass/[email protected]
420
466
- name : Configure AWS credentials (Greengrass)
421
- uses : aws-actions/configure-aws-credentials@v2
467
+ uses : aws-actions/configure-aws-credentials@v4
422
468
with :
423
469
role-to-assume : ${{ env.CI_GREENGRASS_INSTALLER_ROLE }}
424
470
aws-region : ${{ env.AWS_DEFAULT_REGION }}
0 commit comments