Skip to content

Commit 53140ad

Browse files
authored
Merge pull request #199 from pcoop/branch1
jOBid consistency
2 parents c1fe040 + 1cb0da1 commit 53140ad

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

__tests__/api/BundleDeploy/BundleDeployer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe("BundleDeployer01", () => {
124124
submitSpy = jest.spyOn(SubmitJobs, "submitJclString").mockImplementationOnce((session: any, jcl: string, parms: any) => {
125125
parms.task.statusMessage = "Waiting for JOB12345 to enter OUTPUT";
126126
parms.task.stageName = TaskStage.IN_PROGRESS;
127-
const expectedMsg = "Running DFHDPLOY (DEPLOY), job JOB12345";
127+
const expectedMsg = "Running DFHDPLOY (DEPLOY), jobid JOB12345";
128128
// wait 1.5 seconds
129129
return new Promise((resolve, reject) => {
130130
setTimeout(() => {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
exports[`BundleDeployer01 should complain if DFHDPLOY ends with an error 1`] = `"DFHRL2055I"`;
44

5-
exports[`BundleDeployer01 should complain if DFHDPLOY ends with an error 2`] = `"DFHDPLOY stopped processing for JOBID UNKNOWN due to an error."`;
5+
exports[`BundleDeployer01 should complain if DFHDPLOY ends with an error 2`] = `"DFHDPLOY stopped processing for jobid UNKNOWN due to an error."`;
66

7-
exports[`BundleDeployer01 should complain if SYSTSPRT not found 1`] = `"SYSTSPRT and JESMSGLG output from DFHDPLOY not found for JOBID UNKNOWN. Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'."`;
7+
exports[`BundleDeployer01 should complain if SYSTSPRT not found 1`] = `"SYSTSPRT and JESMSGLG output from DFHDPLOY not found for jobid UNKNOWN. Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'."`;
88

99
exports[`BundleDeployer01 should complain if cicshlq not found 1`] = `"Validation of --cicshlq dataset failed: Injected CICSHLQ error"`;
1010

@@ -16,7 +16,7 @@ exports[`BundleDeployer01 should complain if cpsmhlq not found2 1`] = `"EYU9ABSI
1616

1717
exports[`BundleDeployer01 should complain if status can't be determined 1`] = `" "`;
1818

19-
exports[`BundleDeployer01 should complain if status can't be determined 2`] = `"DFHDPLOY command completed for JOBID UNKNOWN, but status cannot be determined."`;
19+
exports[`BundleDeployer01 should complain if status can't be determined 2`] = `"DFHDPLOY command completed for jobid UNKNOWN, but status cannot be determined."`;
2020

2121
exports[`BundleDeployer01 should complain with missing zOSMF profile for deploy 1`] = `"Injected Create error"`;
2222

@@ -32,7 +32,7 @@ exports[`BundleDeployer01 should fail with overlong jobcard 1`] = `"--jobcard pa
3232

3333
exports[`BundleDeployer01 should failover to JESMSGLG if SYSTSPRT not found 1`] = `"undefined"`;
3434

35-
exports[`BundleDeployer01 should failover to JESMSGLG if SYSTSPRT not found 2`] = `"DFHDPLOY command completed in error for JOBID UNKNOWN without generating SYSTSPRT output."`;
35+
exports[`BundleDeployer01 should failover to JESMSGLG if SYSTSPRT not found 2`] = `"DFHDPLOY command completed in error for jobid UNKNOWN without generating SYSTSPRT output."`;
3636

3737
exports[`BundleDeployer01 should generate deploy JCL for AVAILABLE 1`] = `
3838
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
@@ -369,9 +369,9 @@ UNDEPLOY BUNDLE(12345678)
369369
"
370370
`;
371371

372-
exports[`BundleDeployer01 should handle failure during submitjobs processing 1`] = `"Failure occurred submitting DFHDPLOY JCL for JOBID UNKNOWN: 'Injected Submit error'. Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'."`;
372+
exports[`BundleDeployer01 should handle failure during submitjobs processing 1`] = `"Failure occurred submitting DFHDPLOY JCL for jobid UNKNOWN: 'Injected Submit error'. Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'."`;
373373

374-
exports[`BundleDeployer01 should include the JOBID in an error 1`] = `"Failure occurred submitting DFHDPLOY JCL for JOBID JOB12345: 'Injected submit error'. Most recent status update: 'Running DFHDPLOY (DEPLOY), job JOB12345'."`;
374+
exports[`BundleDeployer01 should include the JOBID in an error 1`] = `"Failure occurred submitting DFHDPLOY JCL for jobid JOB12345: 'Injected submit error'. Most recent status update: 'Running DFHDPLOY (DEPLOY), jobid JOB12345'."`;
375375

376376
exports[`BundleDeployer01 should support long bundledir 1`] = `
377377
"//DFHDPLOY JOB DFHDPLOY,CLASS=A,MSGCLASS=X,TIME=NOLIMIT
@@ -594,7 +594,7 @@ DEPLOY BUNDLE(12345678)
594594
"
595595
`;
596596

597-
exports[`BundleDeployer01 should tolerate empty output from DFHDPLOY 1`] = `"DFHDPLOY did not generate any output for JOBID UNKNOWN. Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'."`;
597+
exports[`BundleDeployer01 should tolerate empty output from DFHDPLOY 1`] = `"DFHDPLOY did not generate any output for jobid UNKNOWN. Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'."`;
598598

599599
exports[`BundleDeployer01 should undeploy successfully 1`] = `"Bundle undeployment successful."`;
600600

__tests__/api/BundlePush/BundlePusher.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ describe("BundlePusher01", () => {
819819
submitSpy.mockImplementationOnce(() => { throw new Error("Injected deploy error"); });
820820

821821
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
822-
"Failure occurred submitting DFHDPLOY JCL for JOBID UNKNOWN: 'Injected deploy error'. " +
822+
"Failure occurred submitting DFHDPLOY JCL for jobid UNKNOWN: 'Injected deploy error'. " +
823823
"Most recent status update: 'Submitting DFHDPLOY JCL for the DEPLOY action'.");
824824

825825
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -1133,7 +1133,7 @@ describe("BundlePusher01", () => {
11331133
parms.arguments.verbose = true;
11341134

11351135
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
1136-
"DFHDPLOY stopped processing for JOBID UNKNOWN due to an error.", parms);
1136+
"DFHDPLOY stopped processing for jobid UNKNOWN due to an error.", parms);
11371137

11381138
expect(consoleText).toContain("Making remote bundle directory '/u/ThisDoesNotExist/12345678'");
11391139
expect(consoleText).toContain("Accessing contents of remote bundle directory");

src/api/BundleDeploy/BundleDeployer.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export class BundleDeployer {
276276
if (statusWords.length >= 2) {
277277
if (statusWords[2] !== undefined && statusWords[2].indexOf("JOB") === 0) {
278278
this.jobId = statusWords[2];
279-
this.progressBar.statusMessage = "Running DFHDPLOY (" + action + "), job " + this.jobId;
279+
this.progressBar.statusMessage = "Running DFHDPLOY (" + action + "), jobid " + this.jobId;
280280

281281
this.endProgressBar();
282282
// log the jobid for posterity
@@ -323,7 +323,7 @@ export class BundleDeployer {
323323
}
324324
catch (error) {
325325
this.progressBar.stageName = TaskStage.FAILED;
326-
throw new Error("Failure occurred submitting DFHDPLOY JCL for JOBID " + this.jobId + ": '" + error.message +
326+
throw new Error("Failure occurred submitting DFHDPLOY JCL for jobid " + this.jobId + ": '" + error.message +
327327
"'. Most recent status update: '" + this.progressBar.statusMessage + "'.");
328328
}
329329

@@ -334,7 +334,7 @@ export class BundleDeployer {
334334

335335
if (file.data === undefined || file.data.length === 0) {
336336
this.progressBar.stageName = TaskStage.FAILED;
337-
throw new Error("DFHDPLOY did not generate any output for JOBID " + this.jobId +
337+
throw new Error("DFHDPLOY did not generate any output for jobid " + this.jobId +
338338
". Most recent status update: '" + this.progressBar.statusMessage + "'.");
339339
}
340340

@@ -354,7 +354,7 @@ export class BundleDeployer {
354354
this.progressBar.stageName = TaskStage.FAILED;
355355
// log the error output to the console
356356
this.params.response.console.log(file.data);
357-
throw new Error("DFHDPLOY stopped processing for JOBID " + this.jobId + " due to an error.");
357+
throw new Error("DFHDPLOY stopped processing for jobid " + this.jobId + " due to an error.");
358358
}
359359
if (file.data.indexOf("DFHRL2043I") > -1) {
360360
this.progressBar.stageName = TaskStage.COMPLETE;
@@ -382,7 +382,7 @@ export class BundleDeployer {
382382
this.progressBar.stageName = TaskStage.FAILED;
383383
// log the error output to the console
384384
this.params.response.console.log(file.data);
385-
throw new Error("DFHDPLOY command completed for JOBID " + this.jobId + ", but status cannot be determined.");
385+
throw new Error("DFHDPLOY command completed for jobid " + this.jobId + ", but status cannot be determined.");
386386
}
387387
}
388388

@@ -392,12 +392,12 @@ export class BundleDeployer {
392392
this.progressBar.stageName = TaskStage.FAILED;
393393
// log the error output to the console
394394
this.params.response.console.log(file.data);
395-
throw new Error("DFHDPLOY command completed in error for JOBID " + this.jobId + " without generating SYSTSPRT output.");
395+
throw new Error("DFHDPLOY command completed in error for jobid " + this.jobId + " without generating SYSTSPRT output.");
396396
}
397397
}
398398

399399
this.progressBar.stageName = TaskStage.FAILED;
400-
throw new Error("SYSTSPRT and JESMSGLG output from DFHDPLOY not found for JOBID " + this.jobId +
400+
throw new Error("SYSTSPRT and JESMSGLG output from DFHDPLOY not found for jobid " + this.jobId +
401401
". Most recent status update: '" + this.progressBar.statusMessage + "'.");
402402
}
403403

0 commit comments

Comments
 (0)