@broadcom/ops-for-zowe-cli 4.1.2 → 5.0.0-next.202401221923
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/LICENSE +1 -1
- package/README.md +8 -12
- package/lib/api/OpsProfilesConfig.js +10 -6
- package/lib/api/OpsProfilesConfig.js.map +1 -1
- package/lib/api/Show.d.ts +4 -3
- package/lib/api/Show.js +20 -6
- package/lib/api/Show.js.map +1 -1
- package/lib/api/Update.d.ts +2 -2
- package/lib/api/Update.js +40 -14
- package/lib/api/Update.js.map +1 -1
- package/lib/api/constants/Ops.constants.js +7 -5
- package/lib/api/constants/Ops.constants.js.map +1 -1
- package/lib/api/constants/PluginConstants.js +1 -1
- package/lib/api/constants/index.js +7 -3
- package/lib/api/constants/index.js.map +1 -1
- package/lib/api/doc/IShowResourceResponse.js +1 -1
- package/lib/api/doc/IShowRuleResponse.js +1 -1
- package/lib/api/doc/IShowRulesetResponse.d.ts +12 -0
- package/lib/api/doc/IShowRulesetResponse.js +25 -0
- package/lib/api/doc/IShowRulesetResponse.js.map +1 -0
- package/lib/api/index.js +7 -3
- package/lib/api/index.js.map +1 -1
- package/lib/api/utils/IOpsRestResponse.js +1 -1
- package/lib/api/utils/OpsRestClient.js +1 -1
- package/lib/api/utils/OpsRestUtils.d.ts +3 -2
- package/lib/api/utils/OpsRestUtils.js +20 -9
- package/lib/api/utils/OpsRestUtils.js.map +1 -1
- package/lib/api/utils/OpsTextUtils.js +14 -5
- package/lib/api/utils/OpsTextUtils.js.map +1 -1
- package/lib/api/utils/RuleListUtils.d.ts +1 -0
- package/lib/api/utils/RuleListUtils.js +36 -9
- package/lib/api/utils/RuleListUtils.js.map +1 -1
- package/lib/api/utils/RuleUtils.d.ts +4 -4
- package/lib/api/utils/RuleUtils.js +29 -13
- package/lib/api/utils/RuleUtils.js.map +1 -1
- package/lib/api/utils/RulesetListUtils.d.ts +4 -0
- package/lib/api/utils/RulesetListUtils.js +41 -0
- package/lib/api/utils/RulesetListUtils.js.map +1 -0
- package/lib/api/utils/RulesetUtils.d.ts +5 -0
- package/lib/api/utils/RulesetUtils.js +51 -0
- package/lib/api/utils/RulesetUtils.js.map +1 -0
- package/lib/api/utils/SSMResourceListUtils.js +21 -5
- package/lib/api/utils/SSMResourceListUtils.js.map +1 -1
- package/lib/api/utils/SSMUtils.d.ts +5 -4
- package/lib/api/utils/SSMUtils.js +80 -20
- package/lib/api/utils/SSMUtils.js.map +1 -1
- package/lib/api/utils/index.d.ts +4 -2
- package/lib/api/utils/index.js +11 -5
- package/lib/api/utils/index.js.map +1 -1
- package/lib/cli/OpsBaseHandler.js +1 -1
- package/lib/cli/ResourceParameterDefinitions.d.ts +1 -1
- package/lib/cli/ResourceParameterDefinitions.js +12 -7
- package/lib/cli/ResourceParameterDefinitions.js.map +1 -1
- package/lib/cli/RuleParameterDefinitions.js +2 -2
- package/lib/cli/RuleParameterDefinitions.js.map +1 -1
- package/lib/cli/RulesetParameterDefinitions.d.ts +5 -0
- package/lib/cli/RulesetParameterDefinitions.js +37 -0
- package/lib/cli/RulesetParameterDefinitions.js.map +1 -0
- package/lib/cli/disable/Disable.definition.js +3 -3
- package/lib/cli/disable/Disable.definition.js.map +1 -1
- package/lib/cli/disable/rule/Rule.definition.js +2 -2
- package/lib/cli/disable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/disable/rule/Rule.handler.js +3 -3
- package/lib/cli/disable/rule/Rule.handler.js.map +1 -1
- package/lib/cli/enable/Enable.definition.js +3 -4
- package/lib/cli/enable/Enable.definition.js.map +1 -1
- package/lib/cli/enable/rule/Rule.definition.js +2 -2
- package/lib/cli/enable/rule/Rule.definition.js.map +1 -1
- package/lib/cli/enable/rule/Rule.handler.js +2 -2
- package/lib/cli/enable/rule/Rule.handler.js.map +1 -1
- package/lib/cli/show/Show.definition.js +5 -4
- package/lib/cli/show/Show.definition.js.map +1 -1
- package/lib/cli/show/resource/Resource.definition.js +15 -5
- package/lib/cli/show/resource/Resource.definition.js.map +1 -1
- package/lib/cli/show/resource/Resource.handler.js +2 -2
- package/lib/cli/show/resource/Resource.handler.js.map +1 -1
- package/lib/cli/show/rule/Rule.definition.js +12 -2
- package/lib/cli/show/rule/Rule.definition.js.map +1 -1
- package/lib/cli/show/rule/Rule.handler.js +9 -4
- package/lib/cli/show/rule/Rule.handler.js.map +1 -1
- package/lib/cli/show/ruleset/Ruleset.definition.d.ts +17 -0
- package/lib/cli/show/ruleset/Ruleset.definition.js +70 -0
- package/lib/cli/show/ruleset/Ruleset.definition.js.map +1 -0
- package/lib/cli/show/ruleset/Ruleset.handler.d.ts +5 -0
- package/lib/cli/show/ruleset/Ruleset.handler.js +50 -0
- package/lib/cli/show/ruleset/Ruleset.handler.js.map +1 -0
- package/lib/cli/start/Start.definition.js +3 -3
- package/lib/cli/start/Start.definition.js.map +1 -1
- package/lib/cli/start/resource/Resource.definition.js +9 -9
- package/lib/cli/start/resource/Resource.definition.js.map +1 -1
- package/lib/cli/start/resource/Resource.handler.js +2 -2
- package/lib/cli/start/resource/Resource.handler.js.map +1 -1
- package/lib/cli/stop/Stop.definition.js +3 -3
- package/lib/cli/stop/Stop.definition.js.map +1 -1
- package/lib/cli/stop/resource/Resource.definition.js +9 -9
- package/lib/cli/stop/resource/Resource.definition.js.map +1 -1
- package/lib/cli/stop/resource/Resource.handler.js +2 -2
- package/lib/cli/stop/resource/Resource.handler.js.map +1 -1
- package/lib/healthCheck.handler.js +1 -1
- package/lib/imperative.js +17 -10
- package/lib/imperative.js.map +1 -1
- package/lib/index.d.ts +6 -4
- package/lib/index.js +13 -7
- package/lib/index.js.map +1 -1
- package/package.json +36 -38
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ruleset.definition.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,mFAAgF;AAEhF;;;;;;;;;;;;;;GAcG;AACU,QAAA,iBAAiB,GAAuB;IACjD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,mDAAmD;IAC5D,WAAW,EAAE,6EAA6E;QACtF,gFAAgF;IACpF,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,+DAA+D;SAC/E;QACD;YACI,OAAO,EAAE,gBAAgB;YACzB,WAAW,EAAE,kEAAkE;SAClF;QACD;YACI,OAAO,EAAE,gCAAgC;YACzC,WAAW,EAAE,sDAAsD;SACtE;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,kBAAkB;IACvC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE,EACZ;IACD,OAAO,EAAE;QACL,yDAA2B,CAAC,aAAa;KAC5C;CACJ,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
const RulesetListUtils_1 = require("../../../api/utils/RulesetListUtils");
|
|
35
|
+
const Show_1 = require("../../../api/Show");
|
|
36
|
+
const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
37
|
+
class RulesetHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
38
|
+
processOps(params) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const response = yield (0, Show_1.showRuleset)(this.session, params.arguments.ruleset, params.arguments.restApi, params.arguments.subsystem, params);
|
|
41
|
+
// No need to process response to 'show ruleset' as not supported with web services
|
|
42
|
+
if (params.arguments.restApi) {
|
|
43
|
+
params.response.data.setObj(response);
|
|
44
|
+
RulesetListUtils_1.RulesetListUtils.printShowRulesetResponse(response, params);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.default = RulesetHandler;
|
|
50
|
+
//# sourceMappingURL=Ruleset.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ruleset.handler.js","sourceRoot":"","sources":["../../../../src/cli/show/ruleset/Ruleset.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,0EAAuE;AACvE,4CAAgD;AAChD,yDAAsD;AAEtD,MAAqB,cAAe,SAAQ,+BAAc;IAEzC,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,kBAAW,EAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAC1E,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAClE,mFAAmF;YACnF,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE;gBAC1B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,mCAAgB,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;aAC/D;QACL,CAAC;KAAA;CACJ;AAZD,iCAYC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -25,8 +25,8 @@ const Resource_definition_1 = require("./resource/Resource.definition");
|
|
|
25
25
|
const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
|
|
26
26
|
const StartDefinition = {
|
|
27
27
|
name: "start",
|
|
28
|
-
summary: "
|
|
29
|
-
description: "Start
|
|
28
|
+
summary: "Start an SSM resource.",
|
|
29
|
+
description: "Start a System State Manager resource.",
|
|
30
30
|
type: "group",
|
|
31
31
|
children: [Resource_definition_1.ResourceDefinition],
|
|
32
32
|
passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/cli/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,eAAe,GAAuB;IACxC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Start.definition.js","sourceRoot":"","sources":["../../../src/cli/start/Start.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,eAAe,GAAuB;IACxC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,wBAAwB;IACjC,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -28,16 +28,16 @@ exports.ResourceDefinition = {
|
|
|
28
28
|
name: "resource",
|
|
29
29
|
aliases: [],
|
|
30
30
|
summary: "Start the specified resource.",
|
|
31
|
-
description: "Start the specified resource. The desired state of the resource
|
|
32
|
-
"
|
|
31
|
+
description: "Start the specified resource. The desired state of the resource is " +
|
|
32
|
+
"set to the appropriate UP state and SSM takes action to start the resource.",
|
|
33
33
|
examples: [
|
|
34
34
|
{
|
|
35
|
-
options: "RESOURCE1
|
|
36
|
-
description: "Start RESOURCE1
|
|
35
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS",
|
|
36
|
+
description: "Start the resource RESOURCE1 in the table MYTABLE for subsystem OPSS."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
options: "RESOURCE1
|
|
40
|
-
description: "Start RESOURCE1
|
|
39
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS -w 120",
|
|
40
|
+
description: "Start the resource RESOURCE1 in the table MYTABLE for the OPSS subsystem, and wait for up to 2 minutes " +
|
|
41
41
|
"for RESOURCE1 to have a current state of UP."
|
|
42
42
|
}
|
|
43
43
|
],
|
|
@@ -45,10 +45,10 @@ exports.ResourceDefinition = {
|
|
|
45
45
|
handler: __dirname + "/Resource.handler",
|
|
46
46
|
profile: { optional: ["ops"] },
|
|
47
47
|
positionals: [
|
|
48
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional
|
|
48
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional,
|
|
49
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameUpdatePositional
|
|
49
50
|
],
|
|
50
51
|
options: [
|
|
51
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
|
|
52
52
|
ResourceParameterDefinitions_1.ResourceParameterDefinitions.waitOption
|
|
53
53
|
]
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,qEAAqE;QACjF,6EAA6E;IAC9E,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,uEAAuE;SACvF;QACD;YACI,OAAO,EAAE,2CAA2C;YACpD,WAAW,EAAE,yGAAyG;gBAClH,8CAA8C;SACrD;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;QACnD,2DAA4B,CAAC,yBAAyB;KACzD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,UAAU;KAC1C;CACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -37,7 +37,7 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
|
37
37
|
class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
38
38
|
processOps(params) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const response = yield Update_1.updateResource(this.session, params.arguments.resourcename, "UP", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
|
|
40
|
+
const response = yield (0, Update_1.updateResource)(this.session, params.arguments.resourcename, params.arguments.restApi, "UP", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
|
|
41
41
|
params.response.data.setObj(response);
|
|
42
42
|
SSMResourceListUtils_1.SSMResourceListUtils.printResourceList(response, params);
|
|
43
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAoD;AAEpD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,uBAAc,
|
|
1
|
+
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/start/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAoD;AAEpD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAQ,MAAM,IAAA,uBAAc,EAAC,IAAI,CAAC,OAAO,EACnD,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAC7D,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -25,8 +25,8 @@ const Resource_definition_1 = require("./resource/Resource.definition");
|
|
|
25
25
|
const OpsRestUtils_1 = require("../../api/utils/OpsRestUtils");
|
|
26
26
|
const StopDefinition = {
|
|
27
27
|
name: "stop",
|
|
28
|
-
summary: "Stop
|
|
29
|
-
description: "Stop
|
|
28
|
+
summary: "Stop an SSM resource.",
|
|
29
|
+
description: "Stop a System State Manager resource.",
|
|
30
30
|
type: "group",
|
|
31
31
|
children: [Resource_definition_1.ResourceDefinition],
|
|
32
32
|
passOn: OpsRestUtils_1.OpsRestUtils.OPS_CONNECTION_PASS_ON
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/cli/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Stop.definition.js","sourceRoot":"","sources":["../../../src/cli/stop/Stop.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,wEAAoE;AACpE,+DAA4D;AAE5D,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,uBAAuB;IAChC,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,CAAC;IAC9B,MAAM,EAAE,2BAAY,CAAC,sBAAsB;CAC9C,CAAC;AAEF,iBAAS,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -28,16 +28,16 @@ exports.ResourceDefinition = {
|
|
|
28
28
|
name: "resource",
|
|
29
29
|
aliases: [],
|
|
30
30
|
summary: "Stop the specified resource.",
|
|
31
|
-
description: "Stop the specified resource. The desired state of the resource
|
|
32
|
-
"
|
|
31
|
+
description: "Stop the specified resource. The desired state of the resource is " +
|
|
32
|
+
"set to the appropriate DOWN state and SSM takes action to stop the resource.",
|
|
33
33
|
examples: [
|
|
34
34
|
{
|
|
35
|
-
options: "RESOURCE1
|
|
36
|
-
description: "Stop RESOURCE1
|
|
35
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS",
|
|
36
|
+
description: "Stop the resource RESOURCE1 in the table MYTABLE for the OPSS subsystem."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
options: "RESOURCE1
|
|
40
|
-
description: "
|
|
39
|
+
options: "RESOURCE1 MYTABLE --subsystem OPSS -w 120",
|
|
40
|
+
description: "Stop the RESOURCE1 in the table MYTABLE for the OPSS subsystem, and wait for up to 2 minutes " +
|
|
41
41
|
"for RESOURCE1 to have a current state of DOWN."
|
|
42
42
|
}
|
|
43
43
|
],
|
|
@@ -45,10 +45,10 @@ exports.ResourceDefinition = {
|
|
|
45
45
|
handler: __dirname + "/Resource.handler",
|
|
46
46
|
profile: { optional: ["ops"] },
|
|
47
47
|
positionals: [
|
|
48
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional
|
|
48
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.resourceNamePositional,
|
|
49
|
+
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameUpdatePositional
|
|
49
50
|
],
|
|
50
51
|
options: [
|
|
51
|
-
ResourceParameterDefinitions_1.ResourceParameterDefinitions.tableNameOption,
|
|
52
52
|
ResourceParameterDefinitions_1.ResourceParameterDefinitions.waitOption
|
|
53
53
|
]
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,8BAA8B;IACvC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Resource.definition.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,qFAAkF;AAErE,QAAA,kBAAkB,GAAuB;IAClD,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,8BAA8B;IACvC,WAAW,EAAE,oEAAoE;QAChF,8EAA8E;IAC/E,QAAQ,EAAE;QACN;YACI,OAAO,EAAE,oCAAoC;YAC7C,WAAW,EAAE,0EAA0E;SAC1F;QACD;YACI,OAAO,EAAE,2CAA2C;YACpD,WAAW,EAAE,+FAA+F;gBACxG,gDAAgD;SACvD;KACJ;IACD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE,EAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAC;IAC5B,WAAW,EAAE;QACT,2DAA4B,CAAC,sBAAsB;QACnD,2DAA4B,CAAC,yBAAyB;KACzD;IACD,OAAO,EAAE;QACL,2DAA4B,CAAC,UAAU;KAC1C;CACJ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -37,7 +37,7 @@ const OpsBaseHandler_1 = require("../../OpsBaseHandler");
|
|
|
37
37
|
class ResourceHandler extends OpsBaseHandler_1.OpsBaseHandler {
|
|
38
38
|
processOps(params) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
const response = yield Update_1.updateResource(this.session, params.arguments.resourcename, "DOWN", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
|
|
40
|
+
const response = yield (0, Update_1.updateResource)(this.session, params.arguments.resourcename, params.arguments.restApi, "DOWN", params.arguments.subsystem, params.arguments.tablename, params.arguments.wait);
|
|
41
41
|
params.response.data.setObj(response);
|
|
42
42
|
SSMResourceListUtils_1.SSMResourceListUtils.printResourceList(response, params);
|
|
43
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAsD;AAEtD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAG,MAAM,uBAAc,
|
|
1
|
+
{"version":3,"file":"Resource.handler.js","sourceRoot":"","sources":["../../../../src/cli/stop/resource/Resource.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,kFAA+E;AAC/E,gDAAqD;AACrD,yDAAsD;AAEtD,MAAqB,eAAgB,SAAQ,+BAAc;IAE1C,UAAU,CAAC,MAA0B;;YAE9C,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAc,EAAC,IAAI,CAAC,OAAO,EAC9C,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAC/D,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACnF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACtC,2CAAoB,CAAC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC7D,CAAC;KAAA;CACJ;AAVD,kCAUC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
package/lib/imperative.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -23,14 +23,16 @@
|
|
|
23
23
|
*/
|
|
24
24
|
const PluginConstants_1 = require("./api/constants/PluginConstants");
|
|
25
25
|
const OpsProfilesConfig_1 = require("./api/OpsProfilesConfig");
|
|
26
|
+
// import HealthCheckHandler from "./healthCheck.handler";
|
|
26
27
|
const config = {
|
|
27
28
|
commandModuleGlobs: ["**/cli/*/*.definition!(.d).*s"],
|
|
28
29
|
rootCommandDescription: PluginConstants_1.PluginConstants.PLUGIN_DESCRIPTION,
|
|
29
30
|
productDisplayName: PluginConstants_1.PluginConstants.PLUGIN_NAME,
|
|
30
|
-
|
|
31
|
-
pluginSummary: "Zowe CLI Plug-in for OPS/MVS®",
|
|
31
|
+
pluginSummary: PluginConstants_1.PluginConstants.PLUGIN_NAME,
|
|
32
32
|
name: PluginConstants_1.PluginConstants.PLUGIN_GROUP_NAME,
|
|
33
33
|
// TODO - when the plugin moves to using the OPS/MVS REST API (APIML conformant) then enable
|
|
34
|
+
// TODO - based on the previous TODO, if the plugin is successfully tested with the 'apimlConnLookup' below
|
|
35
|
+
// then remove both TODOs and comment below
|
|
34
36
|
//Per Timothy Johnson: You are correct that those Zowe v2 conformance criteria are not currently applicable to the
|
|
35
37
|
// OPS plug-in for Zowe CLI, as long as it is intended to be used with the old OPS API.
|
|
36
38
|
//I would suggest removing the apimlConnLookup definition until you support base paths.
|
|
@@ -38,13 +40,18 @@ const config = {
|
|
|
38
40
|
// OPS profile with a basePath property auto-created in their zowe.config.json.
|
|
39
41
|
//Whenever you update the OPS plug-in to support the new APIML-conformant OPS API, you should address those
|
|
40
42
|
// conformance criteria and add the apimlConnLookup property.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
apimlConnLookup: [
|
|
44
|
+
{
|
|
45
|
+
apiId: "bcm.opsmvs",
|
|
46
|
+
gatewayUrl: "api/v1",
|
|
47
|
+
connProfType: "ops"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
apiId: "bcm.opsmvs",
|
|
51
|
+
gatewayUrl: "api/v2",
|
|
52
|
+
connProfType: "ops"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
48
55
|
profiles: OpsProfilesConfig_1.OpsProfilesConfig
|
|
49
56
|
};
|
|
50
57
|
module.exports = config;
|
package/lib/imperative.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAkE;AAClE,+DAA4D;
|
|
1
|
+
{"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,qEAAkE;AAClE,+DAA4D;AAC5D,0DAA0D;AAE1D,MAAM,MAAM,GAAsB;IAC9B,kBAAkB,EAAE,CAAC,+BAA+B,CAAC;IACrD,sBAAsB,EAAE,iCAAe,CAAC,kBAAkB;IAC1D,kBAAkB,EAAE,iCAAe,CAAC,WAAW;IAC/C,aAAa,EAAE,iCAAe,CAAC,WAAW;IAC1C,IAAI,EAAE,iCAAe,CAAC,iBAAiB;IACvC,4FAA4F;IAC5F,2GAA2G;IAC3G,2CAA2C;IAC3C,kHAAkH;IAClH,uFAAuF;IACvF,uFAAuF;IACvF,4GAA4G;IAC5G,+EAA+E;IAC/E,2GAA2G;IAC3G,6DAA6D;IAC7D,eAAe,EAAE;QACb;YACI,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,KAAK;SACtB;QACD;YACI,KAAK,EAAE,YAAY;YACnB,UAAU,EAAE,QAAQ;YACpB,YAAY,EAAE,KAAK;SACtB;KACJ;IACD,QAAQ,EAAE,qCAAiB;CAC9B,CAAC;AAEF,iBAAS,MAAM,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Use the index.ts to export any public facing APIs/
|
|
2
|
+
* Use the index.ts to export any public facing APIs/interfaces/etc.
|
|
3
3
|
*
|
|
4
4
|
* If your plugin introduces a set of APIs/functions that others would find useful when building node apps
|
|
5
5
|
* (or editor extensions, etc.) export them here.
|
|
6
6
|
*
|
|
7
|
-
* For example, Zowe CLI offers Jobs APIs that can be
|
|
7
|
+
* For example, Zowe CLI offers Jobs APIs that can be invoked programmatically from a VS code extension to create
|
|
8
8
|
* a Job viewer/tree extension.
|
|
9
9
|
*/
|
|
10
10
|
export * from "./api";
|
|
11
11
|
export * from "./api/utils/OpsRestUtils";
|
|
12
|
-
export * from "./api/utils/SSMUtils";
|
|
13
12
|
export * from "./api/utils/OpsTextUtils";
|
|
13
|
+
export * from "./api/utils/RuleListUtils";
|
|
14
14
|
export * from "./api/utils/RuleUtils";
|
|
15
|
+
export * from "./api/utils/RulesetListUtils";
|
|
16
|
+
export * from "./api/utils/RulesetUtils";
|
|
15
17
|
export * from "./api/utils/SSMResourceListUtils";
|
|
16
|
-
export * from "./api/utils/
|
|
18
|
+
export * from "./api/utils/SSMUtils";
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2024 Broadcom. All Rights Reserved. The term
|
|
4
4
|
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
6
|
* This software and all information contained therein is
|
|
@@ -23,29 +23,35 @@
|
|
|
23
23
|
*/
|
|
24
24
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
25
|
if (k2 === undefined) k2 = k;
|
|
26
|
-
Object.
|
|
26
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
27
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
28
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
29
|
+
}
|
|
30
|
+
Object.defineProperty(o, k2, desc);
|
|
27
31
|
}) : (function(o, m, k, k2) {
|
|
28
32
|
if (k2 === undefined) k2 = k;
|
|
29
33
|
o[k2] = m[k];
|
|
30
34
|
}));
|
|
31
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
-
for (var p in m) if (p !== "default" && !
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
37
|
};
|
|
34
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
39
|
/**
|
|
36
|
-
* Use the index.ts to export any public facing APIs/
|
|
40
|
+
* Use the index.ts to export any public facing APIs/interfaces/etc.
|
|
37
41
|
*
|
|
38
42
|
* If your plugin introduces a set of APIs/functions that others would find useful when building node apps
|
|
39
43
|
* (or editor extensions, etc.) export them here.
|
|
40
44
|
*
|
|
41
|
-
* For example, Zowe CLI offers Jobs APIs that can be
|
|
45
|
+
* For example, Zowe CLI offers Jobs APIs that can be invoked programmatically from a VS code extension to create
|
|
42
46
|
* a Job viewer/tree extension.
|
|
43
47
|
*/
|
|
44
48
|
__exportStar(require("./api"), exports);
|
|
45
49
|
__exportStar(require("./api/utils/OpsRestUtils"), exports);
|
|
46
|
-
__exportStar(require("./api/utils/SSMUtils"), exports);
|
|
47
50
|
__exportStar(require("./api/utils/OpsTextUtils"), exports);
|
|
51
|
+
__exportStar(require("./api/utils/RuleListUtils"), exports);
|
|
48
52
|
__exportStar(require("./api/utils/RuleUtils"), exports);
|
|
53
|
+
__exportStar(require("./api/utils/RulesetListUtils"), exports);
|
|
54
|
+
__exportStar(require("./api/utils/RulesetUtils"), exports);
|
|
49
55
|
__exportStar(require("./api/utils/SSMResourceListUtils"), exports);
|
|
50
|
-
__exportStar(require("./api/utils/
|
|
56
|
+
__exportStar(require("./api/utils/SSMUtils"), exports);
|
|
51
57
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;;;;;AAEH;;;;;;;;GAQG;AACH,wCAAsB;AACtB,2DAAyC;AACzC,2DAAyC;AACzC,4DAA0C;AAC1C,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,uDAAqC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broadcom/ops-for-zowe-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-next.202401221923",
|
|
4
4
|
"description": "OPS/MVS® Plug-in for Zowe CLI",
|
|
5
5
|
"author": "Broadcom",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -41,62 +41,58 @@
|
|
|
41
41
|
"imperative": {
|
|
42
42
|
"configurationModule": "lib/imperative.js"
|
|
43
43
|
},
|
|
44
|
-
"dependencies": {},
|
|
45
44
|
"peerDependencies": {
|
|
46
|
-
"@zowe/imperative": "^5.1
|
|
45
|
+
"@zowe/imperative": "^5.18.1"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
|
-
"@types/fs-extra": "^8.
|
|
50
|
-
"@types/jest": "^
|
|
51
|
-
"@types/node": "^
|
|
48
|
+
"@types/fs-extra": "^8.1.2",
|
|
49
|
+
"@types/jest": "^27.5.2",
|
|
50
|
+
"@types/node": "^18.17.1",
|
|
52
51
|
"@types/yargs": "^15.0.0",
|
|
53
52
|
"@typescript-eslint/eslint-plugin": "^4.29.0",
|
|
54
53
|
"@typescript-eslint/parser": "^4.29.0",
|
|
55
|
-
"@zowe/cli-test-utils": "
|
|
56
|
-
"@zowe/core-for-zowe-sdk": "
|
|
57
|
-
"@zowe/imperative": "5.
|
|
58
|
-
"@zowe/zosmf-for-zowe-sdk": "
|
|
54
|
+
"@zowe/cli-test-utils": "7.16.5",
|
|
55
|
+
"@zowe/core-for-zowe-sdk": "7.16.5",
|
|
56
|
+
"@zowe/imperative": "^5.21.0",
|
|
57
|
+
"@zowe/zosmf-for-zowe-sdk": "7.16.5",
|
|
59
58
|
"env-cmd": "^8.0.2",
|
|
60
59
|
"eslint": "^7.32.0",
|
|
61
60
|
"eslint-plugin-jest": "^24.4.0",
|
|
62
61
|
"eslint-plugin-unused-imports": "^1.1.2",
|
|
63
62
|
"fs-extra": "^8.1.0",
|
|
64
|
-
"jest": "^
|
|
65
|
-
"jest-
|
|
63
|
+
"jest": "^27.5.1",
|
|
64
|
+
"jest-cli": "^27.5.1",
|
|
65
|
+
"jest-environment-node": "^27.5.1",
|
|
66
66
|
"jest-environment-node-debug": "^2.0.0",
|
|
67
|
-
"jest-
|
|
68
|
-
"jest-
|
|
69
|
-
"
|
|
67
|
+
"jest-html-reporter": "^3.7.0",
|
|
68
|
+
"jest-junit": "^6.4.0",
|
|
69
|
+
"jest-stare": "^2.5.0",
|
|
70
|
+
"madge": "^5.0.2",
|
|
70
71
|
"rimraf": "^2.7.1",
|
|
71
|
-
"ts-jest": "^
|
|
72
|
+
"ts-jest": "^27.1.5",
|
|
72
73
|
"ts-node": "^7.0.1",
|
|
73
|
-
"typedoc": "^0.
|
|
74
|
-
"typescript": "^
|
|
75
|
-
"uuid": "^
|
|
74
|
+
"typedoc": "^0.25.4",
|
|
75
|
+
"typescript": "^4.9.5",
|
|
76
|
+
"uuid": "^9.0.0"
|
|
76
77
|
},
|
|
77
78
|
"jest": {
|
|
78
|
-
"setupFilesAfterEnv": [
|
|
79
|
-
"./__tests__/setUpJest.js"
|
|
80
|
-
],
|
|
81
79
|
"modulePathIgnorePatterns": [
|
|
82
80
|
"__tests__/__snapshots__/"
|
|
83
81
|
],
|
|
82
|
+
"watchPathIgnorePatterns": [
|
|
83
|
+
".*jest-stare.*\\.js"
|
|
84
|
+
],
|
|
84
85
|
"testResultsProcessor": "jest-stare",
|
|
85
86
|
"transform": {
|
|
86
87
|
".(ts)": "ts-jest"
|
|
87
88
|
},
|
|
88
|
-
"transformIgnorePatterns": [
|
|
89
|
-
"\\.js$",
|
|
90
|
-
"\\.json"
|
|
91
|
-
],
|
|
92
89
|
"testRegex": "(test|spec)\\.ts$",
|
|
93
90
|
"moduleFileExtensions": [
|
|
94
91
|
"ts",
|
|
95
92
|
"js"
|
|
96
93
|
],
|
|
97
94
|
"testPathIgnorePatterns": [
|
|
98
|
-
"<rootDir>/__tests__/__results__"
|
|
99
|
-
"./__tests__/setUpJest.js"
|
|
95
|
+
"<rootDir>/__tests__/__results__"
|
|
100
96
|
],
|
|
101
97
|
"testEnvironment": "node",
|
|
102
98
|
"collectCoverageFrom": [
|
|
@@ -110,23 +106,25 @@
|
|
|
110
106
|
"json",
|
|
111
107
|
"lcov",
|
|
112
108
|
"text",
|
|
113
|
-
"cobertura"
|
|
109
|
+
"cobertura",
|
|
110
|
+
"html"
|
|
114
111
|
],
|
|
115
|
-
"coverageDirectory": "<rootDir>/__tests__/__results__/unit/coverage"
|
|
116
|
-
"globals": {
|
|
117
|
-
"ts-jest": {
|
|
118
|
-
"diagnostics": false
|
|
119
|
-
}
|
|
120
|
-
}
|
|
112
|
+
"coverageDirectory": "<rootDir>/__tests__/__results__/unit/coverage"
|
|
121
113
|
},
|
|
122
114
|
"jest-stare": {
|
|
123
|
-
"resultDir": "__tests__/__results__/jest-stare",
|
|
115
|
+
"resultDir": "__tests__/__results__/unit/jest-stare",
|
|
124
116
|
"additionalResultsProcessors": [
|
|
125
|
-
"jest-junit"
|
|
117
|
+
"jest-junit",
|
|
118
|
+
"jest-html-reporter"
|
|
126
119
|
],
|
|
127
120
|
"coverageLink": "../coverage/lcov-report/index.html"
|
|
128
121
|
},
|
|
129
122
|
"jest-junit": {
|
|
130
|
-
"output": "__tests__/__results__/junit.xml"
|
|
123
|
+
"output": "__tests__/__results__/unit/junit.xml"
|
|
124
|
+
},
|
|
125
|
+
"jest-html-reporter": {
|
|
126
|
+
"pageTitle": "Zowe CLI Sample Plugin Test Results",
|
|
127
|
+
"outputPath": "__tests__/__results__/results.html",
|
|
128
|
+
"includeFailureMsg": true
|
|
131
129
|
}
|
|
132
130
|
}
|