Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/next' into rm-v1-profile-writes
Browse files Browse the repository at this point in the history
Signed-off-by: Gene Johnston <[email protected]>
  • Loading branch information
gejohnston committed Mar 13, 2024
2 parents 4aad1fe + 3b7fceb commit 142a3c1
Show file tree
Hide file tree
Showing 29 changed files with 354 additions and 185 deletions.
4 changes: 2 additions & 2 deletions __tests__/__packages__/cli-test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zowe/cli-test-utils",
"version": "8.0.0-next.202403131702",
"version": "8.0.0-next.202403132009",
"description": "Test utilities package for Zowe CLI plug-ins",
"author": "Zowe",
"license": "EPL-2.0",
Expand Down Expand Up @@ -43,7 +43,7 @@
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/uuid": "^9.0.8",
"@zowe/imperative": "8.0.0-next.202403131702"
"@zowe/imperative": "8.0.0-next.202403132009"
},
"peerDependencies": {
"@zowe/imperative": "^8.0.0-next"
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "8.0.0-next.202403131702",
"version": "8.0.0-next.202403132009",
"command": {
"publish": {
"ignoreChanges": [
Expand Down
122 changes: 61 additions & 61 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to the Zowe CLI package will be documented in this file.

- Enhancement: Changed references in command output from 'Team Configuration' to 'Zowe client configuration' [#2019](https://github.com/zowe/zowe-cli/issues/2019).

## `8.0.0-next.202403132009`

- Enhancement: Prompt for user/password on SSH commands when a token is stored in the config. [#2081](https://github.com/zowe/zowe-cli/pull/2081)

## `8.0.0-next.202403131702`

- BugFix: Removing stack trace for zosjobs errors. [#2078](https://github.com/zowe/zowe-cli/pull/2078)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ describe("zos-uss issue ssh command", () => {
expect(response.stderr.toString()).toContain('Command entered: "zos-uss issue ss"');
expect(response.stderr.toString()).toContain('Use "zowe --help" to view groups, commands, and options.');
});

});
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,16 @@ describe("zowe uss issue ssh passwords and passkeys", () => {
[command, "--ssh-p", invalidPrivateKey]);
expect(response.stderr.toString()).toMatch("no such file or directory, open 'bogusKey'");
});

it("should fail command execution without trace when improper user credentials", async () => {
// create a temporary zowe profile with an invalid user
const user = "bogusUser";
const invalidCreds = await TempTestProfiles.createV2Profile(TEST_ENVIRONMENT, "ssh",
{ host, port, user, password });

const command = "echo test";
const response = await runCliScript(__dirname + "/__scripts__/issue_ssh_no_cwd.sh", TEST_ENVIRONMENT,
[command, "--ssh-p", invalidCreds]);
expect(response.stderr.toString()).toMatch("All configured authentication methods failed");
});
});
Loading

0 comments on commit 142a3c1

Please sign in to comment.