Skip to content

Commit

Permalink
Merge branch 'master' into buffertoussfile-file-tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
jace-roell authored Nov 26, 2024
2 parents f8f0021 + 803fbd6 commit 68b44ce
Show file tree
Hide file tree
Showing 53 changed files with 1,568 additions and 221 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.8.2",
"version": "8.8.3",
"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": "^10.0.0",
"@zowe/imperative": "8.8.2"
"@zowe/imperative": "8.8.3"
},
"peerDependencies": {
"@zowe/imperative": "^8.0.0"
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.8.2",
"version": "8.9.0",
"command": {
"publish": {
"ignoreChanges": [
Expand Down
116 changes: 58 additions & 58 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
@@ -1,6 +1,10 @@
# Change Log
All notable changes to the Zowe CLI package will be documented in this file.

## `8.9.0`

-Enhancement: Added new command zowe zos-files download all-members-matching, (zowe files dl amm), to download members matching specified pattern(s). The success message for the Download.allMembers API was changed from originally "Data set downloaded successfully" to "Member(s) downloaded successfully." The change also alters the commandResponse when using the --rfj flag. [#2359](https://github.com/zowe/zowe-cli/pull/2359)

## `8.8.0`

- Enhancement: Pass a `.zosattributes` file path for the download encoding format by adding the new `--attributes` flag to the `zowe zos-files upload` command. [#2322](https://github.com/zowe/zowe-cli/issues/2322)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ describe("Download All Member", () => {
if (defaultSys.zosmf.basePath != null) {
TEST_ENVIRONMENT_NO_PROF.env[ZOWE_OPT_BASE_PATH] = defaultSys.zosmf.basePath;
}

const response = runCliScript(shellScript,
TEST_ENVIRONMENT_NO_PROF,
[dsname,
Expand All @@ -89,7 +88,7 @@ describe("Download All Member", () => {
defaultSys.zosmf.password]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
});
});

Expand All @@ -109,39 +108,39 @@ describe("Download All Member", () => {
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [dsname]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
});

it("should download all data set member of pds in binary format", () => {
const shellScript = path.join(__dirname, "__scripts__", "command", "command_download_all_member.sh");
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [dsname, "--binary"]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
});

it("should download all data set member of pds in record format", () => {
const shellScript = path.join(__dirname, "__scripts__", "command", "command_download_all_member.sh");
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [dsname, "--record"]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
});

it("should download all data set member of pds with response timeout", () => {
const shellScript = path.join(__dirname, "__scripts__", "command", "command_download_all_member.sh");
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [dsname, "--responseTimeout 5"]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
});

it("should download all data set members with --max-concurrent-requests 2", () => {
const shellScript = path.join(__dirname, "__scripts__", "command", "command_download_all_member_mcr.sh");
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [dsname, 2]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
});

it("should download all data set members of a large data set with --max-concurrent-requests 2", async () => {
Expand All @@ -156,7 +155,7 @@ describe("Download All Member", () => {
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [bigDsname, 2]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
await Delete.dataSet(REAL_SESSION, bigDsname);
});

Expand All @@ -165,7 +164,7 @@ describe("Download All Member", () => {
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [dsname, "--rfj"]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
});

it("should download all data set member to specified directory", () => {
Expand All @@ -174,7 +173,7 @@ describe("Download All Member", () => {
const response = runCliScript(shellScript, TEST_ENVIRONMENT, [dsname, `-d ${testDir}`, "--rfj"]);
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(response.stdout.toString()).toContain("Data set downloaded successfully.");
expect(response.stdout.toString()).toContain("Member(s) downloaded successfully.");
expect(response.stdout.toString()).toContain(testDir);
});

Expand All @@ -186,7 +185,7 @@ describe("Download All Member", () => {
const expectedResult = {member: "TEST"};
expect(response.stderr.toString()).toBe("");
expect(response.status).toBe(0);
expect(result.stdout).toContain("Data set downloaded successfully.");
expect(result.stdout).toContain("Member(s) downloaded successfully.");
expect(result.stdout).toContain(testDir);
expect(result.data.apiResponse.items[0]).toEqual(expectedResult);
});
Expand Down
Loading

0 comments on commit 68b44ce

Please sign in to comment.