@signageos/cli 0.10.2 → 1.0.0
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/CHANGELOG.md +16 -0
- package/README.md +16 -1
- package/config/parameters.d.ts +1 -0
- package/config/parameters.js +4 -0
- package/dist/Applet/Generate/appletGenerateCommand.d.ts +44 -2
- package/dist/Applet/Generate/appletGenerateCommand.js +44 -35
- package/dist/Applet/Generate/appletGenerateCommand.js.map +1 -1
- package/dist/Applet/Start/appletStartCommand.d.ts +59 -2
- package/dist/Applet/Start/appletStartCommand.js +31 -22
- package/dist/Applet/Start/appletStartCommand.js.map +1 -1
- package/dist/Applet/Start/appletStartCommandHelper.d.ts +3 -2
- package/dist/Applet/Start/appletStartCommandHelper.js +5 -4
- package/dist/Applet/Start/appletStartCommandHelper.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestRunCommand.d.ts +52 -2
- package/dist/Applet/Test/Upload/appletTestRunCommand.js +44 -36
- package/dist/Applet/Test/Upload/appletTestRunCommand.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestRunFacade.js +2 -1
- package/dist/Applet/Test/Upload/appletTestRunFacade.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestUploadCommand.d.ts +42 -2
- package/dist/Applet/Test/Upload/appletTestUploadCommand.js +45 -37
- package/dist/Applet/Test/Upload/appletTestUploadCommand.js.map +1 -1
- package/dist/Applet/Test/Upload/appletTestUploadFacade.js +2 -1
- package/dist/Applet/Test/Upload/appletTestUploadFacade.js.map +1 -1
- package/dist/Applet/Test/appletTestCommand.d.ts +93 -2
- package/dist/Applet/Test/appletTestCommand.js +4 -2
- package/dist/Applet/Test/appletTestCommand.js.map +1 -1
- package/dist/Applet/Upload/appletUploadCommand.d.ts +63 -5
- package/dist/Applet/Upload/appletUploadCommand.js +142 -150
- package/dist/Applet/Upload/appletUploadCommand.js.map +1 -1
- package/dist/Applet/Upload/appletUploadCommandHelper.d.ts +17 -5
- package/dist/Applet/Upload/appletUploadCommandHelper.js +30 -47
- package/dist/Applet/Upload/appletUploadCommandHelper.js.map +1 -1
- package/dist/Applet/Upload/appletUploadFacade.d.ts +0 -7
- package/dist/Applet/Upload/appletUploadFacade.js +21 -23
- package/dist/Applet/Upload/appletUploadFacade.js.map +1 -1
- package/dist/Applet/Upload/appletUploadFacadeHelper.js +5 -4
- package/dist/Applet/Upload/appletUploadFacadeHelper.js.map +1 -1
- package/dist/Applet/appletCommand.d.ts +257 -2
- package/dist/Applet/appletCommand.js +4 -2
- package/dist/Applet/appletCommand.js.map +1 -1
- package/dist/Applet/appletFacade.d.ts +1 -3
- package/dist/Applet/appletFacade.js +28 -53
- package/dist/Applet/appletFacade.js.map +1 -1
- package/dist/Auth/loginCommand.d.ts +18 -2
- package/dist/Auth/loginCommand.js +16 -13
- package/dist/Auth/loginCommand.js.map +1 -1
- package/dist/Cache/tmpCache.js +1 -0
- package/dist/Cache/tmpCache.js.map +1 -1
- package/dist/Cli/helper.js +1 -0
- package/dist/Cli/helper.js.map +1 -1
- package/dist/Cli/packageVersion.d.ts +0 -6
- package/dist/Cli/packageVersion.js +10 -15
- package/dist/Cli/packageVersion.js.map +1 -1
- package/dist/Command/commandDefinition.d.ts +28 -0
- package/dist/Command/commandDefinition.js +8 -0
- package/dist/Command/commandDefinition.js.map +1 -0
- package/dist/Command/commandProcessor.d.ts +2 -10
- package/dist/Command/commandProcessor.js +13 -20
- package/dist/Command/commandProcessor.js.map +1 -1
- package/dist/Command/globalArgs.d.ts +2 -0
- package/dist/Command/globalArgs.js +16 -0
- package/dist/Command/globalArgs.js.map +1 -0
- package/dist/CommandLine/progressBarFactory.js +1 -0
- package/dist/CommandLine/progressBarFactory.js.map +1 -1
- package/dist/Device/Connect/connectCommand.d.ts +50 -2
- package/dist/Device/Connect/connectCommand.js +23 -18
- package/dist/Device/Connect/connectCommand.js.map +1 -1
- package/dist/Device/Connect/connectHelper.d.ts +0 -1
- package/dist/Device/Connect/connectHelper.js +39 -75
- package/dist/Device/Connect/connectHelper.js.map +1 -1
- package/dist/Device/Content/setContentCommand.d.ts +42 -2
- package/dist/Device/Content/setContentCommand.js +21 -13
- package/dist/Device/Content/setContentCommand.js.map +1 -1
- package/dist/Device/PowerAction/powerActionCommand.d.ts +42 -2
- package/dist/Device/PowerAction/powerActionCommand.js +17 -13
- package/dist/Device/PowerAction/powerActionCommand.js.map +1 -1
- package/dist/Device/deviceCommand.d.ts +129 -2
- package/dist/Device/deviceCommand.js +4 -2
- package/dist/Device/deviceCommand.js.map +1 -1
- package/dist/Device/deviceFacade.d.ts +11 -10
- package/dist/Device/deviceFacade.js +20 -15
- package/dist/Device/deviceFacade.js.map +1 -1
- package/dist/Emulator/createDomain.js +3 -2
- package/dist/Emulator/createDomain.js.map +1 -1
- package/dist/Emulator/emulatorFacade.d.ts +3 -1
- package/dist/Emulator/emulatorFacade.js +29 -27
- package/dist/Emulator/emulatorFacade.js.map +1 -1
- package/dist/Emulator/emulatorFactory.d.ts +3 -1
- package/dist/Emulator/emulatorFactory.js +19 -17
- package/dist/Emulator/emulatorFactory.js.map +1 -1
- package/dist/FileSystem/helper.js +21 -15
- package/dist/FileSystem/helper.js.map +1 -1
- package/dist/FileSystem/packageConfig.js +1 -0
- package/dist/FileSystem/packageConfig.js.map +1 -1
- package/dist/Firmware/Upload/firmwareUploadCommand.d.ts +48 -2
- package/dist/Firmware/Upload/firmwareUploadCommand.js +33 -20
- package/dist/Firmware/Upload/firmwareUploadCommand.js.map +1 -1
- package/dist/Firmware/Upload/firmwareUploadFacade.js +5 -4
- package/dist/Firmware/Upload/firmwareUploadFacade.js.map +1 -1
- package/dist/Firmware/Upload/firmwareUploadHelper.js +2 -2
- package/dist/Firmware/Upload/firmwareUploadHelper.js.map +1 -1
- package/dist/Firmware/firmwareCommand.d.ts +51 -2
- package/dist/Firmware/firmwareCommand.js +5 -8
- package/dist/Firmware/firmwareCommand.js.map +1 -1
- package/dist/Helper/localMachineHelper.d.ts +1 -0
- package/dist/Helper/localMachineHelper.js +94 -0
- package/dist/Helper/localMachineHelper.js.map +1 -0
- package/dist/Organization/Get/organizationGetCommand.d.ts +26 -2
- package/dist/Organization/Get/organizationGetCommand.js +11 -7
- package/dist/Organization/Get/organizationGetCommand.js.map +1 -1
- package/dist/Organization/List/organizationListCommand.d.ts +7 -2
- package/dist/Organization/List/organizationListCommand.js +6 -4
- package/dist/Organization/List/organizationListCommand.js.map +1 -1
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.d.ts +18 -2
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.js +12 -9
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.js.map +1 -1
- package/dist/Organization/organizationCommand.d.ts +49 -2
- package/dist/Organization/organizationCommand.js +4 -2
- package/dist/Organization/organizationCommand.js.map +1 -1
- package/dist/Organization/organizationFacade.d.ts +20 -5
- package/dist/Organization/organizationFacade.js +60 -12
- package/dist/Organization/organizationFacade.js.map +1 -1
- package/dist/RunControl/runControlHelper.d.ts +1 -1
- package/dist/RunControl/runControlHelper.js +38 -14
- package/dist/RunControl/runControlHelper.js.map +1 -1
- package/dist/Stream/helper.js +1 -0
- package/dist/Stream/helper.js.map +1 -1
- package/dist/Timing/List/timingListCommand.d.ts +34 -2
- package/dist/Timing/List/timingListCommand.js +14 -10
- package/dist/Timing/List/timingListCommand.js.map +1 -1
- package/dist/Timing/timingCommand.d.ts +37 -2
- package/dist/Timing/timingCommand.js +4 -2
- package/dist/Timing/timingCommand.js.map +1 -1
- package/dist/generalCommand.d.ts +64 -0
- package/dist/generalCommand.js +46 -0
- package/dist/generalCommand.js.map +1 -0
- package/dist/helper.d.ts +6 -2
- package/dist/helper.js +13 -12
- package/dist/helper.js.map +1 -1
- package/dist/index.js +6 -18
- package/dist/index.js.map +1 -1
- package/package-lock.json +1094 -870
- package/package.json +14 -13
- package/dist/Command/ICommand.d.ts +0 -10
- package/dist/Command/ICommand.js +0 -3
- package/dist/Command/ICommand.js.map +0 -1
|
@@ -51,39 +51,47 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
51
51
|
}
|
|
52
52
|
return ar;
|
|
53
53
|
};
|
|
54
|
-
var
|
|
55
|
-
for (var
|
|
56
|
-
|
|
54
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
55
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
+
if (ar || !(i in from)) {
|
|
57
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
+
ar[i] = from[i];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
57
62
|
};
|
|
58
63
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
|
+
exports.appletTestRun = void 0;
|
|
59
65
|
var chalk_1 = require("chalk");
|
|
60
66
|
var prompts = require("prompts");
|
|
61
67
|
var helper_1 = require("../../../helper");
|
|
62
68
|
var organizationFacade_1 = require("../../../Organization/organizationFacade");
|
|
63
69
|
var appletFacade_1 = require("../../appletFacade");
|
|
64
|
-
var appletUploadCommandHelper_1 = require("../../Upload/appletUploadCommandHelper");
|
|
65
70
|
var progressBarFactory_1 = require("../../../CommandLine/progressBarFactory");
|
|
66
71
|
var deviceFacade_1 = require("../../../Device/deviceFacade");
|
|
67
72
|
var appletTestRunFacade_1 = require("./appletTestRunFacade");
|
|
68
73
|
var wait_1 = require("../../../Timer/wait");
|
|
69
|
-
|
|
74
|
+
var commandDefinition_1 = require("../../../Command/commandDefinition");
|
|
75
|
+
var OPTION_LIST = [
|
|
76
|
+
organizationFacade_1.NO_DEFAULT_ORGANIZATION_OPTION,
|
|
77
|
+
deviceFacade_1.DEVICE_UID_OPTION,
|
|
78
|
+
organizationFacade_1.ORGANIZATION_UID_OPTION,
|
|
79
|
+
{
|
|
80
|
+
name: 'test',
|
|
81
|
+
type: String,
|
|
82
|
+
multiple: true,
|
|
83
|
+
description: "Specify the test identifiers/files to be run. If not specified, all will be run.",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'yes',
|
|
87
|
+
type: Boolean,
|
|
88
|
+
description: "Allow to run applet test without confirmation step",
|
|
89
|
+
},
|
|
90
|
+
];
|
|
91
|
+
exports.appletTestRun = (0, commandDefinition_1.createCommandDefinition)({
|
|
70
92
|
name: 'run',
|
|
71
93
|
description: 'Runs applet tests',
|
|
72
|
-
optionList:
|
|
73
|
-
deviceFacade_1.DEVICE_UID_OPTION,
|
|
74
|
-
organizationFacade_1.ORGANIZATION_UID_OPTION,
|
|
75
|
-
{
|
|
76
|
-
name: 'test',
|
|
77
|
-
type: String,
|
|
78
|
-
multiple: true,
|
|
79
|
-
description: "Specify the test identifiers/files to be run. If not specified, all will be run.",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'yes',
|
|
83
|
-
type: Boolean,
|
|
84
|
-
description: "Allow to run applet test without confirmation step",
|
|
85
|
-
},
|
|
86
|
-
],
|
|
94
|
+
optionList: OPTION_LIST,
|
|
87
95
|
commands: [],
|
|
88
96
|
run: function (options) {
|
|
89
97
|
var _a, _b, _c, _d;
|
|
@@ -95,27 +103,27 @@ exports.appletTestRun = {
|
|
|
95
103
|
skipConfirmation = !!options.yes;
|
|
96
104
|
tests = options.test;
|
|
97
105
|
currentDirectory = process.cwd();
|
|
98
|
-
return [4 /*yield*/,
|
|
106
|
+
return [4 /*yield*/, (0, organizationFacade_1.getOrganizationUidOrDefaultOrSelect)(options)];
|
|
99
107
|
case 1:
|
|
100
108
|
organizationUid = _e.sent();
|
|
101
|
-
return [4 /*yield*/, organizationFacade_1.getOrganization(organizationUid)];
|
|
109
|
+
return [4 /*yield*/, (0, organizationFacade_1.getOrganization)(organizationUid)];
|
|
102
110
|
case 2:
|
|
103
111
|
organization = _e.sent();
|
|
104
|
-
restApi = helper_1.createOrganizationRestApi(organization);
|
|
105
|
-
return [4 /*yield*/, deviceFacade_1.getDeviceUid(restApi, options)];
|
|
112
|
+
restApi = (0, helper_1.createOrganizationRestApi)(organization);
|
|
113
|
+
return [4 /*yield*/, (0, deviceFacade_1.getDeviceUid)(restApi, options)];
|
|
106
114
|
case 3:
|
|
107
115
|
deviceUid = _e.sent();
|
|
108
116
|
return [4 /*yield*/, restApi.device.get(deviceUid)];
|
|
109
117
|
case 4:
|
|
110
118
|
device = _e.sent();
|
|
111
|
-
return [4 /*yield*/, appletFacade_1.getAppletVersion(currentDirectory)];
|
|
119
|
+
return [4 /*yield*/, (0, appletFacade_1.getAppletVersion)(currentDirectory)];
|
|
112
120
|
case 5:
|
|
113
121
|
version = _e.sent();
|
|
114
|
-
return [4 /*yield*/, appletFacade_1.
|
|
122
|
+
return [4 /*yield*/, (0, appletFacade_1.getAppletUid)(restApi)];
|
|
115
123
|
case 6:
|
|
116
124
|
appletUid = _e.sent();
|
|
117
125
|
if (!appletUid) {
|
|
118
|
-
throw new Error(
|
|
126
|
+
throw new Error('Not selected Applet or sos.appletUid is not present in package.json');
|
|
119
127
|
}
|
|
120
128
|
return [4 /*yield*/, restApi.applet.get(appletUid)];
|
|
121
129
|
case 7:
|
|
@@ -129,14 +137,14 @@ exports.appletTestRun = {
|
|
|
129
137
|
if (!tests || tests.length === 0) {
|
|
130
138
|
tests = testSuites.map(function (testSuite) { return testSuite.identifier; });
|
|
131
139
|
}
|
|
132
|
-
appletTestRunFacade_1.validateTestIdentifiers(tests, testSuites);
|
|
140
|
+
(0, appletTestRunFacade_1.validateTestIdentifiers)(tests, testSuites);
|
|
133
141
|
printRunTests(tests);
|
|
134
142
|
if (!!skipConfirmation) return [3 /*break*/, 11];
|
|
135
143
|
return [4 /*yield*/, prompts({
|
|
136
144
|
type: 'confirm',
|
|
137
145
|
name: 'continue',
|
|
138
|
-
message: "Do you want to start testing "
|
|
139
|
-
+
|
|
146
|
+
message: "Do you want to start testing ".concat(chalk_1.default.green(applet.name), " ")
|
|
147
|
+
+ "and version ".concat(chalk_1.default.green(version), " on device ").concat(device.name, "?"),
|
|
140
148
|
})];
|
|
141
149
|
case 10:
|
|
142
150
|
response = _e.sent();
|
|
@@ -146,7 +154,7 @@ exports.appletTestRun = {
|
|
|
146
154
|
_e.label = 11;
|
|
147
155
|
case 11:
|
|
148
156
|
RUNNING_TEST_TITLE = "Running applet tests";
|
|
149
|
-
progressBar = progressBarFactory_1.createProgressBar();
|
|
157
|
+
progressBar = (0, progressBarFactory_1.createProgressBar)();
|
|
150
158
|
_e.label = 12;
|
|
151
159
|
case 12:
|
|
152
160
|
_e.trys.push([12, , 19, 20]);
|
|
@@ -159,7 +167,7 @@ exports.appletTestRun = {
|
|
|
159
167
|
_e.sent();
|
|
160
168
|
deviceAppletTest = void 0;
|
|
161
169
|
_e.label = 14;
|
|
162
|
-
case 14: return [4 /*yield*/, wait_1.default(1e3)];
|
|
170
|
+
case 14: return [4 /*yield*/, (0, wait_1.default)(1e3)];
|
|
163
171
|
case 15:
|
|
164
172
|
_e.sent();
|
|
165
173
|
lastCountFinished = ((_a = deviceAppletTest === null || deviceAppletTest === void 0 ? void 0 : deviceAppletTest.successfulTests.length) !== null && _a !== void 0 ? _a : 0) + ((_b = deviceAppletTest === null || deviceAppletTest === void 0 ? void 0 : deviceAppletTest.failedTests.length) !== null && _b !== void 0 ? _b : 0);
|
|
@@ -167,7 +175,7 @@ exports.appletTestRun = {
|
|
|
167
175
|
case 16:
|
|
168
176
|
deviceAppletTest = _e.sent();
|
|
169
177
|
nextCountFinished = ((_c = deviceAppletTest === null || deviceAppletTest === void 0 ? void 0 : deviceAppletTest.successfulTests.length) !== null && _c !== void 0 ? _c : 0) + ((_d = deviceAppletTest === null || deviceAppletTest === void 0 ? void 0 : deviceAppletTest.failedTests.length) !== null && _d !== void 0 ? _d : 0);
|
|
170
|
-
progressName = RUNNING_TEST_TITLE + ' ' +
|
|
178
|
+
progressName = RUNNING_TEST_TITLE + ' ' + __spreadArray(__spreadArray(__spreadArray([], __read(deviceAppletTest.failedTests.map(function (t) { return chalk_1.default.red(t); })), false), __read(deviceAppletTest.successfulTests.map(function (t) { return chalk_1.default.green(t); })), false), __read(deviceAppletTest.pendingTests.map(function (t) { return chalk_1.default.gray(t); })), false).join(',');
|
|
171
179
|
progressBar.update({
|
|
172
180
|
add: nextCountFinished - lastCountFinished,
|
|
173
181
|
name: progressName,
|
|
@@ -193,13 +201,13 @@ exports.appletTestRun = {
|
|
|
193
201
|
});
|
|
194
202
|
});
|
|
195
203
|
},
|
|
196
|
-
};
|
|
204
|
+
});
|
|
197
205
|
function displaySuccessMessage(appletName, appletVersion, deviceAppletTest) {
|
|
198
|
-
console.log("Applet "
|
|
206
|
+
console.log("Applet ".concat(chalk_1.default.green(appletName), " version ").concat(chalk_1.default.green(appletVersion), " tests ").concat(chalk_1.default.green('succeeded'), "."));
|
|
199
207
|
deviceAppletTest.successfulTests.forEach(function (file) { return console.log(chalk_1.default.green('✓ ' + file)); });
|
|
200
208
|
}
|
|
201
209
|
function displayFailureMessage(appletName, appletVersion, deviceAppletTest) {
|
|
202
|
-
console.log("Applet "
|
|
210
|
+
console.log("Applet ".concat(chalk_1.default.green(appletName), " version ").concat(chalk_1.default.green(appletVersion), " tests ").concat(chalk_1.default.red('failed'), "."));
|
|
203
211
|
deviceAppletTest.failedTests.forEach(function (file) { return console.log(chalk_1.default.red('× ' + file)); });
|
|
204
212
|
deviceAppletTest.successfulTests.forEach(function (file) { return console.log(chalk_1.default.green('✓ ' + file)); });
|
|
205
213
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletTestRunCommand.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestRunCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appletTestRunCommand.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestRunCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA0B;AAC1B,iCAAmC;AACnC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AAK,OAAA,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,EAArC,CAAqC,CAAC,CAAC;AACnG,CAAC;AAED,SAAS,qBAAqB,CAC7B,UAAkB,EAClB,aAAqB,EACrB,gBAAmC;IAEnC,OAAO,CAAC,GAAG,CAAC,iBAAU,eAAK,CAAC,KAAK,CAAC,UAAU,CAAC,sBAAY,eAAK,CAAC,KAAK,CAAC,aAAa,CAAC,oBAAU,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAG,CAAC,CAAC;IACrH,gBAAgB,CAAC,WAAW,CAAC,OAAO,CAAC,UAAC,IAAY,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,EAAnC,CAAmC,CAAC,CAAC;IAC5F,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,UAAC,IAAY,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,EAArC,CAAqC,CAAC,CAAC;AACnG,CAAC;AAED,SAAS,aAAa,CAAC,WAAqB;IAC3C,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,wCAAwC,CAAC,CAAC,CAAC;KACpE;IACD,WAAW,CAAC,OAAO,CAAC,UAAC,IAAY,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAjB,CAAiB,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -11,6 +11,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
11
11
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.validateTestIdentifiers = void 0;
|
|
14
15
|
function validateTestIdentifiers(identifiers, suites) {
|
|
15
16
|
var e_1, _a;
|
|
16
17
|
var existingIdentifiers = suites.map(function (suite) { return suite.identifier; });
|
|
@@ -18,7 +19,7 @@ function validateTestIdentifiers(identifiers, suites) {
|
|
|
18
19
|
for (var identifiers_1 = __values(identifiers), identifiers_1_1 = identifiers_1.next(); !identifiers_1_1.done; identifiers_1_1 = identifiers_1.next()) {
|
|
19
20
|
var identifier = identifiers_1_1.value;
|
|
20
21
|
if (!existingIdentifiers.includes(identifier)) {
|
|
21
|
-
throw new Error("Test "
|
|
22
|
+
throw new Error("Test ".concat(identifier, " is not in currently uploaded test suites."));
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletTestRunFacade.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestRunFacade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appletTestRunFacade.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestRunFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,SAAgB,uBAAuB,CAAC,WAAqB,EAAE,MAA0B;;IACxF,IAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,UAAU,EAAhB,CAAgB,CAAC,CAAC;;QACpE,KAAyB,IAAA,gBAAA,SAAA,WAAW,CAAA,wCAAA,iEAAE;YAAjC,IAAM,UAAU,wBAAA;YACpB,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,eAAQ,UAAU,+CAA4C,CAAC,CAAC;aAChF;SACD;;;;;;;;;AACF,CAAC;AAPD,0DAOC"}
|
|
@@ -1,2 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { CommandLineOptions } from '../../../Command/commandDefinition';
|
|
2
|
+
declare const OPTION_LIST: readonly [{
|
|
3
|
+
readonly name: "no-default-organization";
|
|
4
|
+
readonly type: BooleanConstructor;
|
|
5
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "organization-uid";
|
|
8
|
+
readonly type: StringConstructor;
|
|
9
|
+
readonly description: "Organization UID";
|
|
10
|
+
}, {
|
|
11
|
+
readonly name: "yes";
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly description: "Allow to upload new applet test or override existing test without confirmation step";
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "verbose";
|
|
16
|
+
readonly type: BooleanConstructor;
|
|
17
|
+
readonly description: "outputs all files to upload";
|
|
18
|
+
}];
|
|
19
|
+
export declare const appletTestUpload: {
|
|
20
|
+
name: "upload";
|
|
21
|
+
description: string;
|
|
22
|
+
optionList: readonly [{
|
|
23
|
+
readonly name: "no-default-organization";
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "organization-uid";
|
|
28
|
+
readonly type: StringConstructor;
|
|
29
|
+
readonly description: "Organization UID";
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "yes";
|
|
32
|
+
readonly type: BooleanConstructor;
|
|
33
|
+
readonly description: "Allow to upload new applet test or override existing test without confirmation step";
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "verbose";
|
|
36
|
+
readonly type: BooleanConstructor;
|
|
37
|
+
readonly description: "outputs all files to upload";
|
|
38
|
+
}];
|
|
39
|
+
commands: never[];
|
|
40
|
+
run(options: CommandLineOptions<typeof OPTION_LIST>): Promise<void>;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -62,36 +62,44 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return ar;
|
|
64
64
|
};
|
|
65
|
-
var
|
|
66
|
-
for (var
|
|
67
|
-
|
|
65
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
66
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
67
|
+
if (ar || !(i in from)) {
|
|
68
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
69
|
+
ar[i] = from[i];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
68
73
|
};
|
|
69
74
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
+
exports.appletTestUpload = void 0;
|
|
70
76
|
var chalk_1 = require("chalk");
|
|
71
77
|
var prompts = require("prompts");
|
|
72
78
|
var helper_1 = require("../../../helper");
|
|
73
79
|
var organizationFacade_1 = require("../../../Organization/organizationFacade");
|
|
74
80
|
var appletTestUploadFacade_1 = require("./appletTestUploadFacade");
|
|
75
81
|
var appletFacade_1 = require("../../appletFacade");
|
|
76
|
-
var appletUploadCommandHelper_1 = require("../../Upload/appletUploadCommandHelper");
|
|
77
82
|
var progressBarFactory_1 = require("../../../CommandLine/progressBarFactory");
|
|
78
83
|
var packageConfig_1 = require("../../../FileSystem/packageConfig");
|
|
79
|
-
|
|
84
|
+
var commandDefinition_1 = require("../../../Command/commandDefinition");
|
|
85
|
+
var OPTION_LIST = [
|
|
86
|
+
organizationFacade_1.NO_DEFAULT_ORGANIZATION_OPTION,
|
|
87
|
+
organizationFacade_1.ORGANIZATION_UID_OPTION,
|
|
88
|
+
{
|
|
89
|
+
name: 'yes',
|
|
90
|
+
type: Boolean,
|
|
91
|
+
description: "Allow to upload new applet test or override existing test without confirmation step",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'verbose',
|
|
95
|
+
type: Boolean,
|
|
96
|
+
description: "outputs all files to upload",
|
|
97
|
+
},
|
|
98
|
+
];
|
|
99
|
+
exports.appletTestUpload = (0, commandDefinition_1.createCommandDefinition)({
|
|
80
100
|
name: 'upload',
|
|
81
101
|
description: 'Uploads applet test',
|
|
82
|
-
optionList:
|
|
83
|
-
organizationFacade_1.ORGANIZATION_UID_OPTION,
|
|
84
|
-
{
|
|
85
|
-
name: 'yes',
|
|
86
|
-
type: Boolean,
|
|
87
|
-
description: "Allow to upload new applet test or override existing test without confirmation step",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'verbose',
|
|
91
|
-
type: Boolean,
|
|
92
|
-
description: "outputs all files to upload",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
102
|
+
optionList: OPTION_LIST,
|
|
95
103
|
commands: [],
|
|
96
104
|
run: function (options) {
|
|
97
105
|
var _a;
|
|
@@ -105,21 +113,21 @@ exports.appletTestUpload = {
|
|
|
105
113
|
isVerbose = !!options.verbose;
|
|
106
114
|
skipConfirmation = !!options.yes;
|
|
107
115
|
currentDirectory = process.cwd();
|
|
108
|
-
return [4 /*yield*/,
|
|
116
|
+
return [4 /*yield*/, (0, organizationFacade_1.getOrganizationUidOrDefaultOrSelect)(options)];
|
|
109
117
|
case 1:
|
|
110
118
|
organizationUid = _c.sent();
|
|
111
|
-
return [4 /*yield*/, organizationFacade_1.getOrganization(organizationUid)];
|
|
119
|
+
return [4 /*yield*/, (0, organizationFacade_1.getOrganization)(organizationUid)];
|
|
112
120
|
case 2:
|
|
113
121
|
organization = _c.sent();
|
|
114
|
-
restApi = helper_1.createOrganizationRestApi(organization);
|
|
115
|
-
return [4 /*yield*/, appletFacade_1.getAppletVersion(currentDirectory)];
|
|
122
|
+
restApi = (0, helper_1.createOrganizationRestApi)(organization);
|
|
123
|
+
return [4 /*yield*/, (0, appletFacade_1.getAppletVersion)(currentDirectory)];
|
|
116
124
|
case 3:
|
|
117
125
|
version = _c.sent();
|
|
118
|
-
return [4 /*yield*/, appletFacade_1.
|
|
126
|
+
return [4 /*yield*/, (0, appletFacade_1.getAppletUid)(restApi)];
|
|
119
127
|
case 4:
|
|
120
128
|
appletUid = _c.sent();
|
|
121
129
|
if (!appletUid) {
|
|
122
|
-
throw new Error(
|
|
130
|
+
throw new Error('Not selected Applet or sos.appletUid is not present in package.json');
|
|
123
131
|
}
|
|
124
132
|
return [4 /*yield*/, restApi.applet.get(appletUid)];
|
|
125
133
|
case 5:
|
|
@@ -127,14 +135,14 @@ exports.appletTestUpload = {
|
|
|
127
135
|
return [4 /*yield*/, restApi.applet.version.get(appletUid, version)];
|
|
128
136
|
case 6:
|
|
129
137
|
appletVersion = _c.sent();
|
|
130
|
-
return [4 /*yield*/, packageConfig_1.loadPackage(currentDirectory)];
|
|
138
|
+
return [4 /*yield*/, (0, packageConfig_1.loadPackage)(currentDirectory)];
|
|
131
139
|
case 7:
|
|
132
140
|
packageConfig = _c.sent();
|
|
133
141
|
if (!((_a = packageConfig === null || packageConfig === void 0 ? void 0 : packageConfig.sos) === null || _a === void 0 ? void 0 : _a.tests)) {
|
|
134
142
|
throw new Error("No key \"sos.tests\" found in package.json file. You have to specify all testing files there first.");
|
|
135
143
|
}
|
|
136
144
|
testFiles = packageConfig === null || packageConfig === void 0 ? void 0 : packageConfig.sos.tests;
|
|
137
|
-
return [4 /*yield*/, appletTestUploadFacade_1.validateTestFiles(currentDirectory, testFiles)];
|
|
145
|
+
return [4 /*yield*/, (0, appletTestUploadFacade_1.validateTestFiles)(currentDirectory, testFiles)];
|
|
138
146
|
case 8:
|
|
139
147
|
_c.sent();
|
|
140
148
|
if (isVerbose) {
|
|
@@ -157,7 +165,7 @@ exports.appletTestUpload = {
|
|
|
157
165
|
}
|
|
158
166
|
finally { if (e_1) throw e_1.error; }
|
|
159
167
|
}
|
|
160
|
-
return [4 /*yield*/, appletTestUploadFacade_1.loadTestFilesContents(currentDirectory, testFiles)];
|
|
168
|
+
return [4 /*yield*/, (0, appletTestUploadFacade_1.loadTestFilesContents)(currentDirectory, testFiles)];
|
|
161
169
|
case 10:
|
|
162
170
|
testFilesContents = _c.sent();
|
|
163
171
|
identifiersToCreate = testFiles.filter(function (testFile) { return testSuitesMap[testFile] === undefined; });
|
|
@@ -169,8 +177,8 @@ exports.appletTestUpload = {
|
|
|
169
177
|
return [4 /*yield*/, prompts({
|
|
170
178
|
type: 'confirm',
|
|
171
179
|
name: 'continue',
|
|
172
|
-
message: "Do you want to do applet version test changes for applet "
|
|
173
|
-
+
|
|
180
|
+
message: "Do you want to do applet version test changes for applet ".concat(chalk_1.default.green(applet.name), " ")
|
|
181
|
+
+ "and version ".concat(chalk_1.default.green(version), "?"),
|
|
174
182
|
})];
|
|
175
183
|
case 11:
|
|
176
184
|
response = _c.sent();
|
|
@@ -179,7 +187,7 @@ exports.appletTestUpload = {
|
|
|
179
187
|
}
|
|
180
188
|
_c.label = 12;
|
|
181
189
|
case 12:
|
|
182
|
-
progressBar = progressBarFactory_1.createProgressBar();
|
|
190
|
+
progressBar = (0, progressBarFactory_1.createProgressBar)();
|
|
183
191
|
_c.label = 13;
|
|
184
192
|
case 13:
|
|
185
193
|
_c.trys.push([13, , 15, 16]);
|
|
@@ -187,7 +195,7 @@ exports.appletTestUpload = {
|
|
|
187
195
|
size: identifiersToCreate.length + identifiersToUpdate.length + identifiersToDelete.length,
|
|
188
196
|
name: "Uploading applet test files",
|
|
189
197
|
});
|
|
190
|
-
return [4 /*yield*/, Promise.all(
|
|
198
|
+
return [4 /*yield*/, Promise.all(__spreadArray(__spreadArray(__spreadArray([], __read(identifiersToCreate.map(function (identifier) { return __awaiter(_this, void 0, void 0, function () {
|
|
191
199
|
return __generator(this, function (_a) {
|
|
192
200
|
switch (_a.label) {
|
|
193
201
|
case 0: return [4 /*yield*/, restApi.applet.tests.create(applet.uid, appletVersion.version, {
|
|
@@ -200,7 +208,7 @@ exports.appletTestUpload = {
|
|
|
200
208
|
return [2 /*return*/];
|
|
201
209
|
}
|
|
202
210
|
});
|
|
203
|
-
}); }), identifiersToUpdate.map(function (identifier) { return __awaiter(_this, void 0, void 0, function () {
|
|
211
|
+
}); })), false), __read(identifiersToUpdate.map(function (identifier) { return __awaiter(_this, void 0, void 0, function () {
|
|
204
212
|
return __generator(this, function (_a) {
|
|
205
213
|
switch (_a.label) {
|
|
206
214
|
case 0: return [4 /*yield*/, restApi.applet.tests.update(applet.uid, appletVersion.version, identifier, {
|
|
@@ -212,7 +220,7 @@ exports.appletTestUpload = {
|
|
|
212
220
|
return [2 /*return*/];
|
|
213
221
|
}
|
|
214
222
|
});
|
|
215
|
-
}); }), identifiersToDelete.map(function (identifier) { return __awaiter(_this, void 0, void 0, function () {
|
|
223
|
+
}); })), false), __read(identifiersToDelete.map(function (identifier) { return __awaiter(_this, void 0, void 0, function () {
|
|
216
224
|
return __generator(this, function (_a) {
|
|
217
225
|
switch (_a.label) {
|
|
218
226
|
case 0: return [4 /*yield*/, restApi.applet.tests.delete(applet.uid, appletVersion.version, identifier)];
|
|
@@ -222,7 +230,7 @@ exports.appletTestUpload = {
|
|
|
222
230
|
return [2 /*return*/];
|
|
223
231
|
}
|
|
224
232
|
});
|
|
225
|
-
}); })))];
|
|
233
|
+
}); })), false))];
|
|
226
234
|
case 14:
|
|
227
235
|
_c.sent();
|
|
228
236
|
displaySuccessMessage(applet.name, appletVersion.version);
|
|
@@ -235,10 +243,10 @@ exports.appletTestUpload = {
|
|
|
235
243
|
});
|
|
236
244
|
});
|
|
237
245
|
},
|
|
238
|
-
};
|
|
246
|
+
});
|
|
239
247
|
function displaySuccessMessage(appletName, appletVersion) {
|
|
240
|
-
console.log("Applet "
|
|
241
|
-
console.log("To run the tests, use command "
|
|
248
|
+
console.log("Applet ".concat(chalk_1.default.green(appletName), " version ").concat(chalk_1.default.green(appletVersion), " tests has been uploaded."));
|
|
249
|
+
console.log("To run the tests, use command ".concat(chalk_1.default.blue("sos applet test run")));
|
|
242
250
|
}
|
|
243
251
|
function printMatchedFiles(testFiles) {
|
|
244
252
|
if (testFiles.length > 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletTestUploadCommand.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestUploadCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appletTestUploadCommand.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestUploadCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA0B;AAC1B,iCAAmC;AACnC,0CAA6D;AAC7D,+EAAyK;AACzK,mEAAoF;AACpF,mDAG4B;AAC5B,8EAA4E;AAC5E,mEAAgE;AAEhE,wEAAiG;AAEjG,IAAM,WAAW,GAAG;IACnB,mDAA8B;IAC9B,4CAAuB;IACvB;QACC,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,qFAAqF;KAClG;IACD;QACC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,6BAA6B;KAC1C;CACQ,CAAC;AAEE,QAAA,gBAAgB,GAAG,IAAA,2CAAuB,EAAC;IACvD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,WAAW;IACvB,QAAQ,EAAE,EAAE;IACN,GAAG,EAAT,UAAU,OAA+C;;;;;;;;;wBAClD,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;wBAC9B,gBAAgB,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;wBAEjC,gBAAgB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;wBACf,qBAAM,IAAA,wDAAmC,EAAC,OAAO,CAAC,EAAA;;wBAApE,eAAe,GAAG,SAAkD;wBACrD,qBAAM,IAAA,oCAAe,EAAC,eAAe,CAAC,EAAA;;wBAArD,YAAY,GAAG,SAAsC;wBACrD,OAAO,GAAG,IAAA,kCAAyB,EAAC,YAAY,CAAC,CAAC;wBAExC,qBAAM,IAAA,+BAAgB,EAAC,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,CAAC,UAAC,IAAY,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAjB,CAAiB,CAAC,CAAC;KACjE;IACD,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;QACnC,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC,CAAC;QAC5D,mBAAmB,CAAC,OAAO,CAAC,UAAC,IAAY,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAjB,CAAiB,CAAC,CAAC;KACjE;AACF,CAAC"}
|
|
@@ -47,6 +47,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
47
47
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
48
48
|
};
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.loadTestFilesContents = exports.validateTestFiles = void 0;
|
|
50
51
|
var fs = require("fs-extra");
|
|
51
52
|
var path = require("path");
|
|
52
53
|
function validateTestFiles(currentDirectory, testFiles) {
|
|
@@ -66,7 +67,7 @@ function validateTestFiles(currentDirectory, testFiles) {
|
|
|
66
67
|
return [4 /*yield*/, fs.pathExists(testFilePath)];
|
|
67
68
|
case 2:
|
|
68
69
|
if (!(_b.sent())) {
|
|
69
|
-
throw new Error("Test file "
|
|
70
|
+
throw new Error("Test file ".concat(testFilePath, " specified in package.json sos.tests doesn't exist"));
|
|
70
71
|
}
|
|
71
72
|
_b.label = 3;
|
|
72
73
|
case 3:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletTestUploadFacade.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestUploadFacade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appletTestUploadFacade.js","sourceRoot":"","sources":["../../../../src/Applet/Test/Upload/appletTestUploadFacade.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA+B;AAC/B,2BAA6B;AAE7B,SAAsB,iBAAiB,CAAC,gBAAwB,EAAE,SAAmB;;;;;;;;oBAC7D,cAAA,SAAA,SAAS,CAAA;;;;oBAArB,QAAQ;oBACZ,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;oBACtD,qBAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAA;;oBAAtC,IAAI,CAAC,CAAA,SAAiC,CAAA,EAAE;wBACvC,MAAM,IAAI,KAAK,CAAC,oBAAa,YAAY,uDAAoD,CAAC,CAAC;qBAC/F;;;;;;;;;;;;;;;;;;;;CAEF;AAPD,8CAOC;AAED,SAAsB,qBAAqB,CAAC,gBAAwB,EAAE,SAAmB;;;;;;;oBAClF,WAAW,GAAqC,EAAE,CAAC;oBACzD,qBAAM,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,UAAO,QAAQ;;;;;wCACxC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;wCAC5C,qBAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAA;;wCAAxC,MAAM,GAAG,SAA+B;wCAC9C,WAAW,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;;;;6BAC1C,CAAC,CAAC,EAAA;;oBAJH,SAIG,CAAC;oBACJ,sBAAO,WAAW,EAAC;;;;CACnB;AARD,sDAQC"}
|
|
@@ -1,2 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const appletTest: {
|
|
2
|
+
name: "test";
|
|
3
|
+
description: string;
|
|
4
|
+
optionList: never[];
|
|
5
|
+
commands: ({
|
|
6
|
+
name: "run";
|
|
7
|
+
description: string;
|
|
8
|
+
optionList: readonly [{
|
|
9
|
+
readonly name: "no-default-organization";
|
|
10
|
+
readonly type: BooleanConstructor;
|
|
11
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "device-uid";
|
|
14
|
+
readonly type: StringConstructor;
|
|
15
|
+
readonly description: "Device UID";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "organization-uid";
|
|
18
|
+
readonly type: StringConstructor;
|
|
19
|
+
readonly description: "Organization UID";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "test";
|
|
22
|
+
readonly type: StringConstructor;
|
|
23
|
+
readonly multiple: true;
|
|
24
|
+
readonly description: "Specify the test identifiers/files to be run. If not specified, all will be run.";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "yes";
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly description: "Allow to run applet test without confirmation step";
|
|
29
|
+
}];
|
|
30
|
+
commands: never[];
|
|
31
|
+
run(options: import("../../Command/commandDefinition").CommandLineOptions<readonly [{
|
|
32
|
+
readonly name: "no-default-organization";
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "device-uid";
|
|
37
|
+
readonly type: StringConstructor;
|
|
38
|
+
readonly description: "Device UID";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "organization-uid";
|
|
41
|
+
readonly type: StringConstructor;
|
|
42
|
+
readonly description: "Organization UID";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "test";
|
|
45
|
+
readonly type: StringConstructor;
|
|
46
|
+
readonly multiple: true;
|
|
47
|
+
readonly description: "Specify the test identifiers/files to be run. If not specified, all will be run.";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "yes";
|
|
50
|
+
readonly type: BooleanConstructor;
|
|
51
|
+
readonly description: "Allow to run applet test without confirmation step";
|
|
52
|
+
}]>): Promise<void>;
|
|
53
|
+
} | {
|
|
54
|
+
name: "upload";
|
|
55
|
+
description: string;
|
|
56
|
+
optionList: readonly [{
|
|
57
|
+
readonly name: "no-default-organization";
|
|
58
|
+
readonly type: BooleanConstructor;
|
|
59
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "organization-uid";
|
|
62
|
+
readonly type: StringConstructor;
|
|
63
|
+
readonly description: "Organization UID";
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "yes";
|
|
66
|
+
readonly type: BooleanConstructor;
|
|
67
|
+
readonly description: "Allow to upload new applet test or override existing test without confirmation step";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "verbose";
|
|
70
|
+
readonly type: BooleanConstructor;
|
|
71
|
+
readonly description: "outputs all files to upload";
|
|
72
|
+
}];
|
|
73
|
+
commands: never[];
|
|
74
|
+
run(options: import("../../Command/commandDefinition").CommandLineOptions<readonly [{
|
|
75
|
+
readonly name: "no-default-organization";
|
|
76
|
+
readonly type: BooleanConstructor;
|
|
77
|
+
readonly description: "Prevent using the defaultOrganizationUid from ~/.sosrc which were set using command sos organization set-default";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "organization-uid";
|
|
80
|
+
readonly type: StringConstructor;
|
|
81
|
+
readonly description: "Organization UID";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "yes";
|
|
84
|
+
readonly type: BooleanConstructor;
|
|
85
|
+
readonly description: "Allow to upload new applet test or override existing test without confirmation step";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "verbose";
|
|
88
|
+
readonly type: BooleanConstructor;
|
|
89
|
+
readonly description: "outputs all files to upload";
|
|
90
|
+
}]>): Promise<void>;
|
|
91
|
+
})[];
|
|
92
|
+
run(): Promise<never>;
|
|
93
|
+
};
|
|
@@ -36,9 +36,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.appletTest = void 0;
|
|
40
|
+
var commandDefinition_1 = require("../../Command/commandDefinition");
|
|
39
41
|
var appletTestRunCommand_1 = require("./Upload/appletTestRunCommand");
|
|
40
42
|
var appletTestUploadCommand_1 = require("./Upload/appletTestUploadCommand");
|
|
41
|
-
exports.appletTest = {
|
|
43
|
+
exports.appletTest = (0, commandDefinition_1.createCommandDefinition)({
|
|
42
44
|
name: 'test',
|
|
43
45
|
description: 'Applet test management',
|
|
44
46
|
optionList: [],
|
|
@@ -53,5 +55,5 @@ exports.appletTest = {
|
|
|
53
55
|
});
|
|
54
56
|
});
|
|
55
57
|
},
|
|
56
|
-
};
|
|
58
|
+
});
|
|
57
59
|
//# sourceMappingURL=appletTestCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appletTestCommand.js","sourceRoot":"","sources":["../../../src/Applet/Test/appletTestCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appletTestCommand.js","sourceRoot":"","sources":["../../../src/Applet/Test/appletTestCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAA0E;AAC1E,sEAA8D;AAC9D,4EAAoE;AAEvD,QAAA,UAAU,GAAG,IAAA,2CAAuB,EAAC;IACjD,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,wBAAwB;IACrC,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE;QACT,0CAAgB;QAChB,oCAAa;KACb;IACK,GAAG;;;gBACR,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;;;KACnC;CACD,CAAC,CAAC"}
|