Skip to content

Commit

Permalink
Update snapshots and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew W. Harn <[email protected]>
  • Loading branch information
awharn committed Jan 8, 2024
1 parent 3896115 commit ba51c26
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("zos-jobs modify job command", () => {
const response = runCliScript(__dirname + "/__scripts__/job/bogus_jobid.sh", TEST_ENVIRONMENT);
// potential fix needed in imperative to count this type of error as status = 1
expect(response.status).toBe(0);
expect(response.stderr.toString()).toContain("Job not found");
expect(response.stderr.toString()).toContain("Zero jobs were returned.");
});
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`zos-tso ping address-space should throw an error if provided address space is inactive 1`] = `
"Command Error:
"Unable to perform this operation due to the following problem.
Expect Error: IZUG1126E: z/OSMF cannot correlate the request for key \\"BadKey\\" with an active z/OS application session.
"
`;
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`zos-tso stop should fail with invalid option 1`] = `
"Command Error:
"Unable to perform this operation due to the following problem.
Unknown arguments: foo-bar, fooBar
Command failed due to improper syntax
Command entered: \\"zos-tso start as --foo-bar\\"
Available commands are \\"address-space\\".
Use \\"zowe zos-tso start --help\\" to view groups, commands, and options.
Error Details:
Response From Service
Error: Unknown arguments: foo-bar, fooBar
Diagnostic Information
Unknown arguments: foo-bar, fooBar
"
`;
Expand All @@ -18,15 +22,19 @@ exports[`zos-tso stop should fail with invalid option 2`] = `
`;

exports[`zos-tso stop should fail with invalid parameter 1`] = `
"Command Error:
"Unable to perform this operation due to the following problem.
Unknown argument: foobar
Command failed due to improper syntax
Did you mean: zos-tso stop as?
Command entered: \\"zos-tso stop foobar\\"
Available commands are \\"address-space\\".
Use \\"zowe zos-tso stop --help\\" to view groups, commands, and options.
Error Details:
Response from Service
Error: Unknown argument: foobar
Diagnostic Information
Unknown argument: foobar
"
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ describe("Delete a z/OS File System", () => {
}
expect(error).toBeDefined();
expect(response).toBeUndefined();
expect(error.message).toContain("Error executing IDCAMS DELETE command. exit_code=8");
expect(error.message).toContain(`ENTRY ${nonExistZfs.toUpperCase()} NOT FOUND`);
expect(error.message).toContain("FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8");
});
});

Expand Down

0 comments on commit ba51c26

Please sign in to comment.