Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update next with master #2022

Merged
merged 85 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from 80 commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
f8fb962
Migrate and add utility
awharn Nov 28, 2023
075fb71
Add deprecation message and update changelog
awharn Nov 28, 2023
2c81b52
Add missing changelog
awharn Nov 28, 2023
67d5bac
Make requested change
awharn Nov 28, 2023
84ead1b
Update typo in readme
awharn Nov 28, 2023
5f4c989
Merge pull request #1977 from zowe/deprecate-getDataSet
zFernand0 Nov 28, 2023
3fd3663
Bump version to 7.20.0 [ci skip]
zowe-robot Nov 28, 2023
108b5da
Add missing shrinkwrap
t1m0thyj Nov 29, 2023
599f6b3
Merge pull request #1978 from zowe/add-missing-shrinkwrap-v2
traeok Nov 29, 2023
c27fa66
Bump version to 7.20.1 [ci skip]
zowe-robot Nov 29, 2023
76e98e2
feat(imperative): Enhance to allow for `ProfileInfo.updateProperty` t…
zFernand0 Nov 30, 2023
2f807ee
Update packages/imperative/src/config/src/ProfileInfo.ts
zFernand0 Dec 1, 2023
7dd5a40
update typedoc
zFernand0 Dec 8, 2023
dd55a9e
Merge pull request #1983 from zowe/ze-2493
zFernand0 Dec 8, 2023
6efc80d
Bump version to 7.21.0 [ci skip]
zowe-robot Dec 8, 2023
e6e2b89
chore: Add Linux dev pre-reqs to repo README
traeok Dec 14, 2023
0c94a42
Merge pull request #1989 from zowe/chore/secrets-linux-deps
traeok Dec 14, 2023
00abdf0
Fix for Help and compare on Windows
KevinLoesch1 Dec 19, 2023
117724e
Update changelog
KevinLoesch1 Dec 19, 2023
ec0c171
Fix for unit test failures
KevinLoesch1 Dec 19, 2023
cc6025c
Merge branch 'master' into Fix-for-compare-sequence-numbers
KevinLoesch1 Dec 20, 2023
22e38ca
Fix warning and add new unit test
KevinLoesch1 Dec 20, 2023
6bfbe6f
Merge branch 'Fix-for-compare-sequence-numbers' of https://github.com…
KevinLoesch1 Dec 20, 2023
db1499b
Add workflow that adds PRs to GH project with In Progress status
t1m0thyj Jan 2, 2024
f22b001
Update ssh2 (v2)
awharn Jan 2, 2024
aa96e7f
Merge pull request #1998 from zowe/update-ssh2-v2
awharn Jan 2, 2024
80f059e
Bump version to 7.21.1 [ci skip]
zowe-robot Jan 2, 2024
ff1bec5
Improve error message for null option definition
t1m0thyj Jan 3, 2024
af76bba
Remove unused import and correct changelog
t1m0thyj Jan 3, 2024
b04d3f0
Update unit test
KevinLoesch1 Jan 3, 2024
b5aa0ec
Fix more typos in workflow create commands
t1m0thyj Jan 3, 2024
9bdcf27
Remove win32 checks
KevinLoesch1 Jan 3, 2024
9514e3f
Merge branch 'master' into Fix-for-compare-sequence-numbers
KevinLoesch1 Jan 3, 2024
d2ba38c
Update test snapshots
t1m0thyj Jan 3, 2024
e13f4d5
Merge pull request #1993 from zowe/Fix-for-compare-sequence-numbers
KevinLoesch1 Jan 3, 2024
f4bc5df
Assign author to PR if they have write access
t1m0thyj Jan 4, 2024
392c4d6
doc(cert): Document limitation on cert files
zFernand0 Jan 4, 2024
f611212
update changelog
zFernand0 Jan 4, 2024
7595412
Merge branch 'master' into fix/better-validation-errors
t1m0thyj Jan 4, 2024
dafbce6
Merge pull request #2003 from zowe/fix/better-validation-errors
t1m0thyj Jan 5, 2024
d5363b8
keep the note only for cert-file
zFernand0 Jan 5, 2024
69bee01
Merge branch 'master' of https://github.com/zowe/zowe-cli into doc/ce…
zFernand0 Jan 5, 2024
5e5ec87
Rewrite update-project workflow to use shared action
t1m0thyj Jan 5, 2024
511e977
Fix for 'allocate like' not setting correct blocksize
KevinLoesch1 Jan 5, 2024
1488436
fix changelog
zFernand0 Jan 5, 2024
56d8668
Update Files SDK changelog
KevinLoesch1 Jan 5, 2024
856833f
Merge branch 'master' into fix-create-like-blocksize-issue
KevinLoesch1 Jan 5, 2024
9155166
Update files messages snapshot
KevinLoesch1 Jan 5, 2024
18555c7
Merge branch 'fix-create-like-blocksize-issue' of https://github.com/…
KevinLoesch1 Jan 5, 2024
8e3b83a
Run project-move-item action when issues are labeled
t1m0thyj Jan 5, 2024
d9f1b32
Update release config to stop publishing v2 as next
t1m0thyj Jan 8, 2024
69a7c2e
Merge pull request #2011 from zowe/t1m0thyj-patch-1
t1m0thyj Jan 8, 2024
6dd59c2
Merge branch 'master' into doc/cert-no-password
t1m0thyj Jan 8, 2024
9140be7
Merge pull request #2006 from zowe/doc/cert-no-password
zFernand0 Jan 8, 2024
a8db6ac
Bump version to 7.21.2 [ci skip]
zowe-robot Jan 8, 2024
aee0d8b
Move project item when PR draft state changes
t1m0thyj Jan 8, 2024
139aa62
Fix failing unit tests
KevinLoesch1 Jan 8, 2024
5a2ba3c
Merge branch 'master' into fix-create-like-blocksize-issue
KevinLoesch1 Jan 8, 2024
c5f8fa2
Merge branch 'master' into ci/add-pr-to-project
t1m0thyj Jan 8, 2024
42694e2
Update workflow to simplify steps
t1m0thyj Jan 9, 2024
b671192
Merge pull request #1997 from zowe/ci/add-pr-to-project
t1m0thyj Jan 9, 2024
5a54c77
Merge branch 'master' into fix-create-like-blocksize-issue
awharn Jan 9, 2024
888e56a
Merge pull request #2009 from zowe/fix-create-like-blocksize-issue
awharn Jan 9, 2024
189da64
Bump version to 7.21.3 [ci skip]
zowe-robot Jan 9, 2024
d2ebce6
ensure that the property is found
zFernand0 Jan 10, 2024
924a0a8
update tests
zFernand0 Jan 10, 2024
8d908f4
update changelog
zFernand0 Jan 10, 2024
461c540
Merge pull request #2014 from zowe/fix-ze-2493
zFernand0 Jan 10, 2024
0c7797a
Bump version to 7.21.4 [ci skip]
zowe-robot Jan 10, 2024
3c424a2
Check if terminal supports color (ANSI) before using progress bar
awharn Jan 10, 2024
66929ba
Fix secure property names being returned for wrong profile
t1m0thyj Jan 11, 2024
82cca33
Finish tests, changelog, implementation
awharn Jan 11, 2024
869c4df
Remove ESLint overrides
awharn Jan 11, 2024
65aca76
Restore all mocks
awharn Jan 11, 2024
0845cc0
Merge pull request #2016 from zowe/fix/config-secure-props
t1m0thyj Jan 12, 2024
d3a60b9
Merge branch 'master' into remove-progress-bar-with-env-var
t1m0thyj Jan 12, 2024
7c03d9b
Merge pull request #2017 from zowe/remove-progress-bar-with-env-var
t1m0thyj Jan 12, 2024
dc36212
Bump version to 7.22.0 [ci skip]
zowe-robot Jan 12, 2024
99296d5
Update Jest Configuration to run more tests in GHA
awharn Jan 18, 2024
97888d2
Merge remote-tracking branch 'origin/master' into update-next-with-ma…
awharn Jan 18, 2024
905853e
Restore changelog entry
awharn Jan 18, 2024
ddaddca
Merge pull request #2021 from zowe/update-jest-configuration
zFernand0 Jan 19, 2024
c73207d
Merge remote-tracking branch 'origin/master' into update-next-with-ma…
awharn Jan 19, 2024
2225c33
Merge remote-tracking branch 'origin/next' into update-next-with-master
awharn Jan 19, 2024
e99347a
Revert "Bump version to 8.1.0-next.202401191548"
awharn Jan 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ Versioning conventions for Zowe CLI and Plug-ins| [Versioning Guidelines](./docs
## **Building Zowe CLI From Source**
Zowe CLI requires NPM version 8 and Cargo version 1.72.0 (or newer) to build from source. Before proceeding, check your NPM version with `npm --version` and if it's older than 8.x, update with `npm install -g npm`. To check your version of Cargo, run `cargo --version`. Cargo can be installed using rustup: [https://rustup.rs/](https://rustup.rs/). To update Cargo, run the `rustup update` command.

For developers using Linux, the following packages are required to build Zowe CLI from source:

- Debian/Ubuntu:
- `sudo apt install build-essential libsecret-1-dev`
- Red Hat-based:
- `sudo dnf group install "Development Tools"`
- `sudo dnf install libsecret-devel`
- Arch Linux:
- `sudo pacman -S base-devel libsecret`

The first time that you download Zowe CLI from the GitHub repository, issue the following command to install the required Zowe CLI dependencies and several development tools:

```
Expand Down
9 changes: 1 addition & 8 deletions npm-shrinkwrap.json

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

26 changes: 18 additions & 8 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@

All notable changes to the Zowe CLI package will be documented in this file.

## `8.0.0-next.202401081937`

- BugFix: Fixed typo in command help for `zowe zos-workflows create` commands.

## `8.0.0-next.202401031939`

- Enhancement: Revised help text for consistency [#1756](https://github.com/zowe/zowe-cli/issues/1756)

## `8.0.0-next.202401022112`

- BugFix: Add missing npm-shrinkwrap

## `8.0.0-next.202311291643`

- LTS Breaking: Replaced the `ZOWE_EDITOR` environment variable with `ZOWE_OPT_EDITOR` and `--editor` option on commands [#1867](https://github.com/zowe/zowe-cli/issues/1867)
Expand All @@ -31,6 +23,24 @@ All notable changes to the Zowe CLI package will be documented in this file.

- Major: First major version bump for V3

## `7.22.0`

- Enhancement: Hid the progress bar if `CI` environment variable is set, or if `FORCE_COLOR` environment variable is set to `0`. [#1845](https://github.com/zowe/zowe-cli/issues/1845)

## `7.21.2`

- BugFix: Correct extra character being displayed at the end of lines when issuing `zowe files compare` on Windows. [#1992](https://github.com/zowe/zowe-cli/issues/1992)
- BugFix: Correct the online help description for `zowe files compare uss`. [#1754](https://github.com/zowe/zowe-cli/issues/1754)
- BugFix: Fixed typo in command help for `zowe zos-workflows create` commands.

## `7.20.1`

- BugFix: Add missing npm-shrinkwrap

## `7.20.0`

- Deprecated: `getDataSet` in the `zosfiles` command group utility functions, use `zosfiles` SDK's `ZosFilesUtils.getDataSetFromName` instead. [#1696](https://github.com/zowe/zowe-cli/issues/1696)

## `7.18.10`

- BugFix: Added missing z/OSMF connection options to the z/OS Logs command group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ exports[`auth login/logout apiml help should display the login help 1`] = `

--cert-file (local file path)

The file path to a certificate file to use for authentication
The file path to a certificate file to use for authentication.

Note: The CLI does not support certificate files that require a password. For
more information, search Troubleshooting PEM Certificates in Zowe Docs.

--cert-key-file (local file path)

Expand Down Expand Up @@ -110,9 +113,9 @@ exports[`auth login/logout apiml help should display the login help 1`] = `
\\"success\\": true,
\\"exitCode\\": 0,
\\"message\\": \\"The help was constructed for command: apiml.\\",
\\"stdout\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n apiml\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Log in to Zowe API Mediation Layer authentication service and obtain or update a\\\\n token.\\\\n\\\\n The token provides authentication to services that support the API ML SSO\\\\n (Single Sign-On) capability. When you log in, the token is stored in your\\\\n default base profile until it expires. Base profiles store connection\\\\n information shared by multiple services (e.g., z/OSMF), and are used if you do\\\\n not supply connection information in a service profile. To take advantage of the\\\\n API ML SSO capability, you should omit username and password in service profiles\\\\n so that the token in the base profile is used.\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe auth login apiml [options]\\\\n\\\\n OPTIONS\\\\n -------\\\\n\\\\n --show-token | --st (boolean)\\\\n\\\\n Show the token when login is successful. If specified, does not save the token\\\\n to a profile.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n Host name of service on the mainframe.\\\\n\\\\n --port | -P (number)\\\\n\\\\n Port number of service on the mainframe.\\\\n\\\\n --user | -u (string)\\\\n\\\\n User name to authenticate to service on the mainframe.\\\\n\\\\n --password | --pass | --pw (string)\\\\n\\\\n Password to authenticate to service on the mainframe.\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates.\\\\n\\\\n Default value: true\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Log in to an API ML instance to obtain or update the token\\\\n stored in your base profile:\\\\n\\\\n $ zowe auth login apiml\\\\n\\\\n - Log in to an API ML instance to obtain a token without\\\\n storing it in a profile:\\\\n\\\\n $ zowe auth login apiml --show-token\\\\n\\\\n\\",
\\"stdout\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n apiml\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Log in to Zowe API Mediation Layer authentication service and obtain or update a\\\\n token.\\\\n\\\\n The token provides authentication to services that support the API ML SSO\\\\n (Single Sign-On) capability. When you log in, the token is stored in your\\\\n default base profile until it expires. Base profiles store connection\\\\n information shared by multiple services (e.g., z/OSMF), and are used if you do\\\\n not supply connection information in a service profile. To take advantage of the\\\\n API ML SSO capability, you should omit username and password in service profiles\\\\n so that the token in the base profile is used.\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe auth login apiml [options]\\\\n\\\\n OPTIONS\\\\n -------\\\\n\\\\n --show-token | --st (boolean)\\\\n\\\\n Show the token when login is successful. If specified, does not save the token\\\\n to a profile.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n Host name of service on the mainframe.\\\\n\\\\n --port | -P (number)\\\\n\\\\n Port number of service on the mainframe.\\\\n\\\\n --user | -u (string)\\\\n\\\\n User name to authenticate to service on the mainframe.\\\\n\\\\n --password | --pass | --pw (string)\\\\n\\\\n Password to authenticate to service on the mainframe.\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates.\\\\n\\\\n Default value: true\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication.\\\\n\\\\n Note: The CLI does not support certificate files that require a password. For\\\\n more information, search Troubleshooting PEM Certificates in Zowe Docs.\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Log in to an API ML instance to obtain or update the token\\\\n stored in your base profile:\\\\n\\\\n $ zowe auth login apiml\\\\n\\\\n - Log in to an API ML instance to obtain a token without\\\\n storing it in a profile:\\\\n\\\\n $ zowe auth login apiml --show-token\\\\n\\\\n\\",
\\"stderr\\": \\"\\",
\\"data\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n apiml\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Log in to Zowe API Mediation Layer authentication service and obtain or update a\\\\n token.\\\\n\\\\n The token provides authentication to services that support the API ML SSO\\\\n (Single Sign-On) capability. When you log in, the token is stored in your\\\\n default base profile until it expires. Base profiles store connection\\\\n information shared by multiple services (e.g., z/OSMF), and are used if you do\\\\n not supply connection information in a service profile. To take advantage of the\\\\n API ML SSO capability, you should omit username and password in service profiles\\\\n so that the token in the base profile is used.\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe auth login apiml [options]\\\\n\\\\n OPTIONS\\\\n -------\\\\n\\\\n --show-token | --st (boolean)\\\\n\\\\n Show the token when login is successful. If specified, does not save the token\\\\n to a profile.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n Host name of service on the mainframe.\\\\n\\\\n --port | -P (number)\\\\n\\\\n Port number of service on the mainframe.\\\\n\\\\n --user | -u (string)\\\\n\\\\n User name to authenticate to service on the mainframe.\\\\n\\\\n --password | --pass | --pw (string)\\\\n\\\\n Password to authenticate to service on the mainframe.\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates.\\\\n\\\\n Default value: true\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Log in to an API ML instance to obtain or update the token\\\\n stored in your base profile:\\\\n\\\\n $ zowe auth login apiml\\\\n\\\\n - Log in to an API ML instance to obtain a token without\\\\n storing it in a profile:\\\\n\\\\n $ zowe auth login apiml --show-token\\\\n\\\\n\\"
\\"data\\": \\"\\\\n COMMAND NAME\\\\n ------------\\\\n\\\\n apiml\\\\n\\\\n DESCRIPTION\\\\n -----------\\\\n\\\\n Log in to Zowe API Mediation Layer authentication service and obtain or update a\\\\n token.\\\\n\\\\n The token provides authentication to services that support the API ML SSO\\\\n (Single Sign-On) capability. When you log in, the token is stored in your\\\\n default base profile until it expires. Base profiles store connection\\\\n information shared by multiple services (e.g., z/OSMF), and are used if you do\\\\n not supply connection information in a service profile. To take advantage of the\\\\n API ML SSO capability, you should omit username and password in service profiles\\\\n so that the token in the base profile is used.\\\\n\\\\n USAGE\\\\n -----\\\\n\\\\n zowe auth login apiml [options]\\\\n\\\\n OPTIONS\\\\n -------\\\\n\\\\n --show-token | --st (boolean)\\\\n\\\\n Show the token when login is successful. If specified, does not save the token\\\\n to a profile.\\\\n\\\\n BASE CONNECTION OPTIONS\\\\n -----------------------\\\\n\\\\n --host | -H (string)\\\\n\\\\n Host name of service on the mainframe.\\\\n\\\\n --port | -P (number)\\\\n\\\\n Port number of service on the mainframe.\\\\n\\\\n --user | -u (string)\\\\n\\\\n User name to authenticate to service on the mainframe.\\\\n\\\\n --password | --pass | --pw (string)\\\\n\\\\n Password to authenticate to service on the mainframe.\\\\n\\\\n --reject-unauthorized | --ru (boolean)\\\\n\\\\n Reject self-signed certificates.\\\\n\\\\n Default value: true\\\\n\\\\n --cert-file (local file path)\\\\n\\\\n The file path to a certificate file to use for authentication.\\\\n\\\\n Note: The CLI does not support certificate files that require a password. For\\\\n more information, search Troubleshooting PEM Certificates in Zowe Docs.\\\\n\\\\n --cert-key-file (local file path)\\\\n\\\\n The file path to a certificate key file to use for authentication\\\\n\\\\n PROFILE OPTIONS\\\\n ---------------\\\\n\\\\n --base-profile | --base-p (string)\\\\n\\\\n The name of a (base) profile to load for this command execution.\\\\n\\\\n GLOBAL OPTIONS\\\\n --------------\\\\n\\\\n --show-inputs-only (boolean)\\\\n\\\\n Show command inputs and do not run the command\\\\n\\\\n --response-format-json | --rfj (boolean)\\\\n\\\\n Produce JSON formatted data from a command\\\\n\\\\n --help | -h (boolean)\\\\n\\\\n Display help text\\\\n\\\\n --help-web | --hw (boolean)\\\\n\\\\n Display HTML help in browser\\\\n\\\\n EXAMPLES\\\\n --------\\\\n\\\\n - Log in to an API ML instance to obtain or update the token\\\\n stored in your base profile:\\\\n\\\\n $ zowe auth login apiml\\\\n\\\\n - Log in to an API ML instance to obtain a token without\\\\n storing it in a profile:\\\\n\\\\n $ zowe auth login apiml --show-token\\\\n\\\\n\\"
}"
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,38 @@ describe("Compare data set handler", () => {
expect(getDiffStringSpy).toHaveBeenCalledWith("compared", "compared", options);
});

it("should compare two data sets containing carriage returns in terminal with --seqnum specified", async () => {
const processArgCopy: any = {
...processArguments,
arguments:{
...processArguments.arguments,
seqnum: false,
}
};

//overwrite ds(strings 1 & 2) to include seqnums to chop off in LocalFileDatasetHandler
getDataSetSpy.mockImplementation(jest.fn(async (session) => {
fakeSession = session;
return Buffer.from("compared12345678\r\n");
}));

try {
// Invoke the handler with a full set of mocked arguments and response functions
await handler.process(processArgCopy);
} catch (e) {
error = e;
}

expect(error).toBeUndefined();
expect(getDataSetSpy).toHaveBeenCalledTimes(2);
expect(getDiffStringSpy).toHaveBeenCalledTimes(1);
expect(apiMessage).toEqual("");
expect(logMessage).toEqual("compared string");
expect(getDataSetSpy).toHaveBeenCalledWith(fakeSession as any, dataSetName1, { task: dsTask });
expect(jsonObj).toMatchObject({commandResponse: "compared string", success: true});
expect(getDiffStringSpy).toHaveBeenCalledWith("compared\n", "compared\n", options);
});

it("should compare two data sets in browser", async () => {
openDiffInbrowserSpy.mockImplementation(jest.fn());
processArguments.arguments.browserView = true ;
Expand Down
Loading
Loading