Skip to content

Commit 6413c77

Browse files
Merge pull request #49 from pcoop/branch1
--Verbose for Deploy/Undeploy
2 parents 8b3c617 + fdd7508 commit 6413c77

File tree

11 files changed

+267
-200
lines changed

11 files changed

+267
-200
lines changed

__tests__/api/BundleDeploy/BundleDeployer.test.ts

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,28 @@ describe("BundleDeployer01", () => {
287287
parms.arguments.resgroup = "12345678";
288288
await testDeployJCL(parms);
289289
});
290+
it("should support verbose=true output for deploy", async () => {
291+
292+
let parms: IHandlerParameters;
293+
parms = DEFAULT_PARAMTERS;
294+
setCommonParmsForDeployTests(parms);
295+
parms.arguments.targetstate = "disabled";
296+
parms.arguments.resgroup = "12345678";
297+
parms.arguments.verbose = true;
298+
await testDeployJCL(parms);
299+
});
300+
it("should support verbose=false output for deploy", async () => {
301+
302+
let parms: IHandlerParameters;
303+
parms = DEFAULT_PARAMTERS;
304+
setCommonParmsForDeployTests(parms);
305+
parms.arguments.targetstate = "disabled";
306+
parms.arguments.resgroup = "12345678";
307+
parms.arguments.verbose = false;
308+
await testDeployJCL(parms);
309+
});
310+
311+
// ** UNDEPLOY TESTS **
290312
it("should generate undeploy JCL for csdgroup", async () => {
291313

292314
let parms: IHandlerParameters;
@@ -325,7 +347,7 @@ describe("BundleDeployer01", () => {
325347

326348
let parms: IHandlerParameters;
327349
parms = DEFAULT_PARAMTERS;
328-
setCommonParmsForDeployTests(parms);
350+
setCommonParmsForUndeployTests(parms);
329351
parms.arguments.targetstate = "UNAVAILABLE";
330352
parms.arguments.resgroup = "12345678";
331353
await testUndeployJCL(parms);
@@ -334,7 +356,7 @@ describe("BundleDeployer01", () => {
334356

335357
let parms: IHandlerParameters;
336358
parms = DEFAULT_PARAMTERS;
337-
setCommonParmsForDeployTests(parms);
359+
setCommonParmsForUndeployTests(parms);
338360
parms.arguments.targetstate = "DISABLED";
339361
parms.arguments.resgroup = "12345678";
340362
await testUndeployJCL(parms);
@@ -343,7 +365,7 @@ describe("BundleDeployer01", () => {
343365

344366
let parms: IHandlerParameters;
345367
parms = DEFAULT_PARAMTERS;
346-
setCommonParmsForDeployTests(parms);
368+
setCommonParmsForUndeployTests(parms);
347369
parms.arguments.targetstate = "DISCARDED";
348370
parms.arguments.resgroup = "12345678";
349371
await testUndeployJCL(parms);
@@ -352,11 +374,31 @@ describe("BundleDeployer01", () => {
352374

353375
let parms: IHandlerParameters;
354376
parms = DEFAULT_PARAMTERS;
355-
setCommonParmsForDeployTests(parms);
377+
setCommonParmsForUndeployTests(parms);
356378
parms.arguments.targetstate = "discarded";
357379
parms.arguments.resgroup = "12345678";
358380
await testUndeployJCL(parms);
359381
});
382+
it("should support verbose=true output for undeploy", async () => {
383+
384+
let parms: IHandlerParameters;
385+
parms = DEFAULT_PARAMTERS;
386+
setCommonParmsForUndeployTests(parms);
387+
parms.arguments.targetstate = "disabled";
388+
parms.arguments.resgroup = "12345678";
389+
parms.arguments.verbose = true;
390+
await testUndeployJCL(parms);
391+
});
392+
it("should support verbose=false output for undeploy", async () => {
393+
394+
let parms: IHandlerParameters;
395+
parms = DEFAULT_PARAMTERS;
396+
setCommonParmsForUndeployTests(parms);
397+
parms.arguments.targetstate = "disabled";
398+
parms.arguments.resgroup = "12345678";
399+
parms.arguments.verbose = false;
400+
await testUndeployJCL(parms);
401+
});
360402
});
361403

362404
async function runDeployTestWithError() {

0 commit comments

Comments
 (0)