@nordicsemiconductor/firmware-ci-runner-azure 1.6.31 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/run.d.ts CHANGED
@@ -21,6 +21,7 @@ declare type Args = {
21
21
  location: string;
22
22
  resourceGroup: string;
23
23
  appName: string;
24
+ storageAccountName: string;
24
25
  };
25
26
  certDir: string;
26
27
  powerCycle?: {
package/dist/run.js CHANGED
@@ -37,8 +37,7 @@ const run = ({ port, target, }) => {
37
37
  const creds = new identity_1.ClientSecretCredential(tenantId, clientId, clientSecret);
38
38
  const iotHubRegistry = azure_iothub_1.Registry.fromTokenCredential(`${testEnv.resourceGroup}IotHub.azure-devices.net`, creds);
39
39
  const fotaStorageContainer = 'upgrades';
40
- const fotaStorageAccountName = `${testEnv.resourceGroup}fota`;
41
- const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://${fotaStorageAccountName}.blob.core.windows.net`, creds);
40
+ const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://${testEnv.storageAccountName}.blob.core.windows.net`, creds);
42
41
  const containerClient = blobServiceClient.getContainerClient(fotaStorageContainer);
43
42
  const fotaFileName = `${deviceId.substr(0, 8)}.bin`;
44
43
  if (powerCycle !== undefined) {
@@ -185,7 +184,7 @@ const run = ({ port, target, }) => {
185
184
  blobCacheControl: 'public, max-age=31536000',
186
185
  },
187
186
  });
188
- const url = new url_1.URL(`https://${fotaStorageAccountName}.blob.core.windows.net/${fotaStorageContainer}/${fotaFileName}`);
187
+ const url = new url_1.URL(`https://${testEnv.storageAccountName}.blob.core.windows.net/${fotaStorageContainer}/${fotaFileName}`);
189
188
  const res = await iotHubRegistry
190
189
  .createQuery(`SELECT * FROM devices WHERE deviceId='${deviceId}'`)
191
190
  .nextAsTwin();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/firmware-ci-runner-azure",
3
- "version": "1.6.31",
3
+ "version": "1.7.2",
4
4
  "description": "Runs firmware on a real device connected to Azure IoT hub.",
5
5
  "main": "./dist/export.js",
6
6
  "bin": "./cli/index.js",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@azure/identity": "2.0.1",
32
32
  "@azure/storage-blob": "12.8.0",
33
- "@nordicsemiconductor/firmware-ci-device-helpers": "11.1.0",
33
+ "@nordicsemiconductor/firmware-ci-device-helpers": "11.1.3",
34
34
  "@serialport/parser-readline": "9.2.4",
35
35
  "azure-iothub": "1.14.6",
36
36
  "semver": "7.3.5",
@@ -38,9 +38,9 @@
38
38
  "uuid": "8.3.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@nordicsemiconductor/asset-tracker-cloud-code-style": "9.2.21",
41
+ "@nordicsemiconductor/asset-tracker-cloud-code-style": "9.2.24",
42
42
  "@types/jest": "27.0.3",
43
- "@types/node": "16.11.9",
43
+ "@types/node": "16.11.10",
44
44
  "@types/semver": "7.3.9",
45
45
  "@types/serialport": "8.0.2",
46
46
  "@types/uuid": "8.3.3",