Skip to content

Commit 30360d4

Browse files
committed
--verbose for DEPLOY
1 parent a86e61f commit 30360d4

File tree

9 files changed

+122
-190
lines changed

9 files changed

+122
-190
lines changed

__tests__/api/BundleDeploy/__snapshots__/BundleDeployer.test.ts.snap

Lines changed: 23 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,11 @@ exports[`BundleDeployer01 should complete with warnings 1`] = `"DFHRL2043I"`;
2626

2727
exports[`BundleDeployer01 should complete with warnings 2`] = `"DFHDPLOY completed with warnings."`;
2828

29-
exports[`BundleDeployer01 should deploy successfully 1`] = `"DFHRL2012I"`;
30-
31-
exports[`BundleDeployer01 should deploy successfully 2`] = `"DFHDPLOY DEPLOY command successful."`;
29+
exports[`BundleDeployer01 should deploy successfully 1`] = `"Bundle deployment successful."`;
3230

3331
exports[`BundleDeployer01 should fail with overlong jobcard 1`] = `"--jobcard parameter section cannot be split into 72 character lines: '// 73CHARS=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1'."`;
3432

35-
exports[`BundleDeployer01 should generate deploy JCL for AVAILABLE 1`] = `"DFHRL2037I"`;
36-
37-
exports[`BundleDeployer01 should generate deploy JCL for AVAILABLE 2`] = `
33+
exports[`BundleDeployer01 should generate deploy JCL for AVAILABLE 1`] = `
3834
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
3935
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
4036
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -53,9 +49,7 @@ DEPLOY BUNDLE(12345678)
5349
"
5450
`;
5551

56-
exports[`BundleDeployer01 should generate deploy JCL for DISABLED 1`] = `"DFHRL2037I"`;
57-
58-
exports[`BundleDeployer01 should generate deploy JCL for DISABLED 2`] = `
52+
exports[`BundleDeployer01 should generate deploy JCL for DISABLED 1`] = `
5953
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
6054
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
6155
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -74,9 +68,7 @@ DEPLOY BUNDLE(12345678)
7468
"
7569
`;
7670

77-
exports[`BundleDeployer01 should generate deploy JCL for ENABLED 1`] = `"DFHRL2037I"`;
78-
79-
exports[`BundleDeployer01 should generate deploy JCL for ENABLED 2`] = `
71+
exports[`BundleDeployer01 should generate deploy JCL for ENABLED 1`] = `
8072
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
8173
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
8274
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -95,9 +87,7 @@ DEPLOY BUNDLE(12345678)
9587
"
9688
`;
9789

98-
exports[`BundleDeployer01 should generate deploy JCL for csdgroup 1`] = `"DFHRL2037I"`;
99-
100-
exports[`BundleDeployer01 should generate deploy JCL for csdgroup 2`] = `
90+
exports[`BundleDeployer01 should generate deploy JCL for csdgroup 1`] = `
10191
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
10292
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
10393
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -116,9 +106,7 @@ DEPLOY BUNDLE(12345678)
116106
"
117107
`;
118108

119-
exports[`BundleDeployer01 should generate deploy JCL for csdgroup with timeout 1`] = `"DFHRL2037I"`;
120-
121-
exports[`BundleDeployer01 should generate deploy JCL for csdgroup with timeout 2`] = `
109+
exports[`BundleDeployer01 should generate deploy JCL for csdgroup with timeout 1`] = `
122110
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
123111
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
124112
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -138,9 +126,7 @@ DEPLOY BUNDLE(12345678)
138126
"
139127
`;
140128

141-
exports[`BundleDeployer01 should generate deploy JCL for mixed case 1`] = `"DFHRL2037I"`;
142-
143-
exports[`BundleDeployer01 should generate deploy JCL for mixed case 2`] = `
129+
exports[`BundleDeployer01 should generate deploy JCL for mixed case 1`] = `
144130
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
145131
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
146132
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -159,9 +145,7 @@ DEPLOY BUNDLE(12345678)
159145
"
160146
`;
161147

162-
exports[`BundleDeployer01 should generate deploy JCL for resgroup 1`] = `"DFHRL2037I"`;
163-
164-
exports[`BundleDeployer01 should generate deploy JCL for resgroup 2`] = `
148+
exports[`BundleDeployer01 should generate deploy JCL for resgroup 1`] = `
165149
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
166150
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
167151
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -180,9 +164,7 @@ DEPLOY BUNDLE(12345678)
180164
"
181165
`;
182166

183-
exports[`BundleDeployer01 should generate deploy JCL for resgroup with timeout 1`] = `"DFHRL2037I"`;
184-
185-
exports[`BundleDeployer01 should generate deploy JCL for resgroup with timeout 2`] = `
167+
exports[`BundleDeployer01 should generate deploy JCL for resgroup with timeout 1`] = `
186168
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
187169
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
188170
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -202,9 +184,7 @@ DEPLOY BUNDLE(12345678)
202184
"
203185
`;
204186

205-
exports[`BundleDeployer01 should generate undeploy JCL for DISABLED 1`] = `"DFHRL2037I"`;
206-
207-
exports[`BundleDeployer01 should generate undeploy JCL for DISABLED 2`] = `
187+
exports[`BundleDeployer01 should generate undeploy JCL for DISABLED 1`] = `
208188
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
209189
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
210190
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -222,9 +202,7 @@ UNDEPLOY BUNDLE(12345678)
222202
"
223203
`;
224204

225-
exports[`BundleDeployer01 should generate undeploy JCL for DISCARDED 1`] = `"DFHRL2037I"`;
226-
227-
exports[`BundleDeployer01 should generate undeploy JCL for DISCARDED 2`] = `
205+
exports[`BundleDeployer01 should generate undeploy JCL for DISCARDED 1`] = `
228206
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
229207
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
230208
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -242,9 +220,7 @@ UNDEPLOY BUNDLE(12345678)
242220
"
243221
`;
244222

245-
exports[`BundleDeployer01 should generate undeploy JCL for UNAVAILABLE 1`] = `"DFHRL2037I"`;
246-
247-
exports[`BundleDeployer01 should generate undeploy JCL for UNAVAILABLE 2`] = `
223+
exports[`BundleDeployer01 should generate undeploy JCL for UNAVAILABLE 1`] = `
248224
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
249225
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
250226
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -262,9 +238,7 @@ UNDEPLOY BUNDLE(12345678)
262238
"
263239
`;
264240

265-
exports[`BundleDeployer01 should generate undeploy JCL for csdgroup 1`] = `"DFHRL2037I"`;
266-
267-
exports[`BundleDeployer01 should generate undeploy JCL for csdgroup 2`] = `
241+
exports[`BundleDeployer01 should generate undeploy JCL for csdgroup 1`] = `
268242
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
269243
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
270244
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -282,9 +256,7 @@ UNDEPLOY BUNDLE(12345678)
282256
"
283257
`;
284258

285-
exports[`BundleDeployer01 should generate undeploy JCL for csdgroup with timeout 1`] = `"DFHRL2037I"`;
286-
287-
exports[`BundleDeployer01 should generate undeploy JCL for csdgroup with timeout 2`] = `
259+
exports[`BundleDeployer01 should generate undeploy JCL for csdgroup with timeout 1`] = `
288260
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
289261
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
290262
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -303,9 +275,7 @@ UNDEPLOY BUNDLE(12345678)
303275
"
304276
`;
305277

306-
exports[`BundleDeployer01 should generate undeploy JCL for mixed case 1`] = `"DFHRL2037I"`;
307-
308-
exports[`BundleDeployer01 should generate undeploy JCL for mixed case 2`] = `
278+
exports[`BundleDeployer01 should generate undeploy JCL for mixed case 1`] = `
309279
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
310280
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
311281
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -323,9 +293,7 @@ UNDEPLOY BUNDLE(12345678)
323293
"
324294
`;
325295

326-
exports[`BundleDeployer01 should generate undeploy JCL for resgroup 1`] = `"DFHRL2037I"`;
327-
328-
exports[`BundleDeployer01 should generate undeploy JCL for resgroup 2`] = `
296+
exports[`BundleDeployer01 should generate undeploy JCL for resgroup 1`] = `
329297
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
330298
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
331299
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -343,9 +311,7 @@ UNDEPLOY BUNDLE(12345678)
343311
"
344312
`;
345313

346-
exports[`BundleDeployer01 should generate undeploy JCL for resgroup with timeout 1`] = `"DFHRL2037I"`;
347-
348-
exports[`BundleDeployer01 should generate undeploy JCL for resgroup with timeout 2`] = `
314+
exports[`BundleDeployer01 should generate undeploy JCL for resgroup with timeout 1`] = `
349315
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
350316
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
351317
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -366,9 +332,7 @@ UNDEPLOY BUNDLE(12345678)
366332

367333
exports[`BundleDeployer01 should handle failure during submitjobs processing 1`] = `"Failure occurred submitting DFHDPLOY JCL: 'Cannot read property 'hostname' of undefined'. Most recent status update: 'Submitting DFHDPLOY JCL'."`;
368334

369-
exports[`BundleDeployer01 should support long bundledir 1`] = `"DFHRL2037I"`;
370-
371-
exports[`BundleDeployer01 should support long bundledir 2`] = `
335+
exports[`BundleDeployer01 should support long bundledir 1`] = `
372336
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
373337
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
374338
//STEPLIB DD DISP=SHR,DSN=12345678901234567890123456789012345.SDFHLOAD
@@ -391,9 +355,7 @@ DEPLOY BUNDLE(12345678)
391355
"
392356
`;
393357

394-
exports[`BundleDeployer01 should support long line jobcard 1`] = `"DFHRL2037I"`;
395-
396-
exports[`BundleDeployer01 should support long line jobcard 2`] = `
358+
exports[`BundleDeployer01 should support long line jobcard 1`] = `
397359
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT,
398360
// NOEL=ABCDEFGHIJKMNOPQRSTUVWXYZ
399361
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
@@ -413,9 +375,7 @@ DEPLOY BUNDLE(12345678)
413375
"
414376
`;
415377

416-
exports[`BundleDeployer01 should support multi-line jobcard 1`] = `"DFHRL2037I"`;
417-
418-
exports[`BundleDeployer01 should support multi-line jobcard 2`] = `
378+
exports[`BundleDeployer01 should support multi-line jobcard 1`] = `
419379
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,
420380
// MSGCLASS=X,TIME=NOLIMIT
421381
//DFHDPLOY EXEC PGM=DFHDPLOY,REGION=100M
@@ -435,9 +395,7 @@ DEPLOY BUNDLE(12345678)
435395
"
436396
`;
437397

438-
exports[`BundleDeployer01 should support really long line jobcard 1`] = `"DFHRL2037I"`;
439-
440-
exports[`BundleDeployer01 should support really long line jobcard 2`] = `
398+
exports[`BundleDeployer01 should support really long line jobcard 1`] = `
441399
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT,
442400
// NOEL=ABCDEFGHIJKMNOPQRSTUVWXYZ,
443401
// 72CHARS=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,
@@ -459,10 +417,6 @@ DEPLOY BUNDLE(12345678)
459417
"
460418
`;
461419

462-
exports[`BundleDeployer01 should tolerate empty output from DFHDPLOY 1`] = `"undefined"`;
463-
464-
exports[`BundleDeployer01 should tolerate empty output from DFHDPLOY 2`] = `"DFHDPLOY did not generate any output. Most recent status update: 'Submitting DFHDPLOY JCL'."`;
465-
466-
exports[`BundleDeployer01 should undeploy successfully 1`] = `"DFHRL2037I"`;
420+
exports[`BundleDeployer01 should tolerate empty output from DFHDPLOY 1`] = `"DFHDPLOY did not generate any output. Most recent status update: 'Submitting DFHDPLOY JCL'."`;
467421

468-
exports[`BundleDeployer01 should undeploy successfully 2`] = `"DFHDPLOY UNDEPLOY command successful."`;
422+
exports[`BundleDeployer01 should undeploy successfully 1`] = `"Bundle undeployment successful."`;

0 commit comments

Comments
 (0)