@nordicsemiconductor/firmware-ci-runner-aws 7.0.247 → 7.0.250
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/deviceHasConnected.js +1 -1
- package/dist/run.js +7 -7
- package/dist/scheduleFOTA.d.ts +1 -1
- package/dist/scheduleFOTA.js +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deviceHasConnected = void 0;
|
|
4
|
-
const firmware_ci_device_helpers_1 = require("@nordicsemiconductor/firmware-ci-device-helpers");
|
|
5
4
|
const client_iot_data_plane_1 = require("@aws-sdk/client-iot-data-plane");
|
|
5
|
+
const firmware_ci_device_helpers_1 = require("@nordicsemiconductor/firmware-ci-device-helpers");
|
|
6
6
|
const util_1 = require("util");
|
|
7
7
|
const deviceHasConnected = async ({ deviceId, iotData, }) => {
|
|
8
8
|
var _a;
|
package/dist/run.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.run = void 0;
|
|
4
|
+
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
5
|
+
const client_iot_1 = require("@aws-sdk/client-iot");
|
|
6
|
+
const client_iot_data_plane_1 = require("@aws-sdk/client-iot-data-plane");
|
|
7
|
+
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
8
|
+
const cloudformation_helpers_1 = require("@nordicsemiconductor/cloudformation-helpers");
|
|
4
9
|
const firmware_ci_device_helpers_1 = require("@nordicsemiconductor/firmware-ci-device-helpers");
|
|
5
10
|
const fs_1 = require("fs");
|
|
6
11
|
const path = require("path");
|
|
7
12
|
const semver = require("semver");
|
|
8
|
-
const scheduleFOTA_1 = require("./scheduleFOTA");
|
|
9
|
-
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
10
|
-
const client_iot_1 = require("@aws-sdk/client-iot");
|
|
11
|
-
const client_iot_data_plane_1 = require("@aws-sdk/client-iot-data-plane");
|
|
12
|
-
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
13
|
-
const cloudformation_helpers_1 = require("@nordicsemiconductor/cloudformation-helpers");
|
|
14
13
|
const deviceHasConnected_1 = require("./deviceHasConnected");
|
|
14
|
+
const scheduleFOTA_1 = require("./scheduleFOTA");
|
|
15
15
|
const defaultPort = '/dev/ttyACM0';
|
|
16
16
|
const defaultSecTag = 42;
|
|
17
17
|
const run = ({ port, target, }) => {
|
|
@@ -47,7 +47,7 @@ const run = ({ port, target, }) => {
|
|
|
47
47
|
const iot = new client_iot_1.IoTClient(awsConfig);
|
|
48
48
|
const iotData = new client_iot_data_plane_1.IoTDataPlaneClient(awsConfig);
|
|
49
49
|
const { bucketName } = await (0, cloudformation_helpers_1.stackOutput)(new client_cloudformation_1.CloudFormationClient(awsConfig))(`${testEnv.stackName}-firmware-ci`);
|
|
50
|
-
const fotaFileName = `${deviceId.
|
|
50
|
+
const fotaFileName = `${deviceId.slice(0, 8)}.bin`;
|
|
51
51
|
if (powerCycle !== undefined) {
|
|
52
52
|
progress(`Power cycling device`);
|
|
53
53
|
progress(`Turning off ...`);
|
package/dist/scheduleFOTA.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IoTDataPlaneClient } from '@aws-sdk/client-iot-data-plane';
|
|
2
1
|
import { IoTClient } from '@aws-sdk/client-iot';
|
|
2
|
+
import { IoTDataPlaneClient } from '@aws-sdk/client-iot-data-plane';
|
|
3
3
|
export declare const schedulaFOTA: ({ deviceId, iot, fotaFile, fotaFileName, region, bucketName, appVersion, }: {
|
|
4
4
|
deviceId: string;
|
|
5
5
|
iot: IoTClient;
|
package/dist/scheduleFOTA.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.schedulaFOTA = void 0;
|
|
4
|
-
const firmware_ci_device_helpers_1 = require("@nordicsemiconductor/firmware-ci-device-helpers");
|
|
5
4
|
const client_iot_1 = require("@aws-sdk/client-iot");
|
|
5
|
+
const firmware_ci_device_helpers_1 = require("@nordicsemiconductor/firmware-ci-device-helpers");
|
|
6
6
|
const fs_1 = require("fs");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const schedulaFOTA = async ({ deviceId, iot, fotaFile, fotaFileName, region, bucketName, appVersion, }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordicsemiconductor/firmware-ci-runner-aws",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.250",
|
|
4
4
|
"description": "Exposes real nRF9160 hardware to be used for end-to-end tests. Runs on AWS.",
|
|
5
5
|
"bin": "./cli/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@aws-sdk/client-cloudformation": "3.118.1",
|
|
32
32
|
"@aws-sdk/client-iot": "3.118.1",
|
|
33
33
|
"@aws-sdk/client-iot-data-plane": "3.118.1",
|
|
34
|
-
"@aws-sdk/client-s3": "3.
|
|
34
|
+
"@aws-sdk/client-s3": "3.120.0",
|
|
35
35
|
"@aws-sdk/client-sts": "3.118.1",
|
|
36
|
-
"@aws-sdk/s3-presigned-post": "3.
|
|
36
|
+
"@aws-sdk/s3-presigned-post": "3.120.0",
|
|
37
37
|
"@nordicsemiconductor/cloudformation-helpers": "7.0.6",
|
|
38
|
-
"@nordicsemiconductor/firmware-ci-device-helpers": "13.0.
|
|
38
|
+
"@nordicsemiconductor/firmware-ci-device-helpers": "13.0.179",
|
|
39
39
|
"@serialport/parser-readline": "10.3.0",
|
|
40
40
|
"aws-iot-device-sdk": "2.2.12",
|
|
41
41
|
"commander": "9.3.0",
|