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

Feature copy datasets #2051

Merged
merged 58 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
1f89996
huddle copy on datasets
KutluOzel-b Nov 24, 2022
aa0a1f7
copy members & add multiselect for pds and ds and members
KutluOzel-b Nov 29, 2022
8d269e6
Merge branch 'main' of https://github.com/zowe/vscode-extension-for-z…
KutluOzel-b Dec 2, 2022
3efa11b
draft commit after api change
KutluOzel-b Dec 6, 2022
1329e8e
draft
KutluOzel-b Dec 9, 2022
a74a107
merge main
KutluOzel-b Dec 13, 2022
89efdfc
copy sequential ds
KutluOzel-b Dec 13, 2022
98ce01d
merge main
KutluOzel-b Dec 14, 2022
372cee3
add copy pds & unit tests
KutluOzel-b Dec 20, 2022
5cb0023
Merge branch 'main' of https://github.com/zowe/vscode-extension-for-z…
KutluOzel-b Dec 20, 2022
4023669
changelog
KutluOzel-b Dec 20, 2022
aa5559c
fix changelog & lint
KutluOzel-b Dec 21, 2022
ab4ef5b
fix smells, reduce duplication
KutluOzel-b Dec 21, 2022
4ea4042
fix changelog
KutluOzel-b Dec 21, 2022
11e0037
Merge branch 'main' into feature/copy/dsMulti
JillieBeanSim Jan 9, 2023
ace29d8
changed copydata set to just copy
KutluOzel-b Jan 10, 2023
f470794
Merge branch 'feature/copy/dsMulti' of https://github.com/zowe/vscode…
KutluOzel-b Jan 10, 2023
04f6202
Merge branch 'main' into feature/copy/dsMulti
KutluOzel-b Jan 10, 2023
aeac808
prettier
KutluOzel-b Jan 10, 2023
6059cdf
fix test member downloadDs
KutluOzel-b Jan 10, 2023
525c5bb
fix quickkey paste on pds
KutluOzel-b Jan 11, 2023
149fd9f
removed redudant debugging statement
KutluOzel-b Jan 11, 2023
7c6c473
Merge branch 'main' into feature/copy/dsMulti
JillieBeanSim Jan 11, 2023
53aebe1
fix audit with resolution of debug
JillieBeanSim Jan 11, 2023
e777b81
changed command name
KutluOzel-b Jan 11, 2023
a19a8de
Merge branch 'feature/copy/dsMulti' of https://github.com/zowe/vscode…
KutluOzel-b Jan 11, 2023
b52330c
merge main
KutluOzel-b Jan 13, 2023
bb9d719
refactor Gui api
KutluOzel-b Jan 13, 2023
ea4cba2
adress comments
KutluOzel-b Jan 13, 2023
479ac79
merge main
KutluOzel-b Jan 18, 2023
b9700c4
Merge branch 'main' into feature/copy/dsMulti
zFernand0 Jan 19, 2023
69f4888
modify sequential ds copy with zosmf api
KutluOzel-b Jan 19, 2023
cc63c0e
Merge branch 'feature/copy/dsMulti' of https://github.com/zowe/vscode…
KutluOzel-b Jan 19, 2023
28f1129
fix changelog
KutluOzel-b Jan 19, 2023
aaf4763
add unit test ftp api
KutluOzel-b Jan 19, 2023
c221c49
make codecov happy
KutluOzel-b Jan 19, 2023
b62c2e4
adressed comments
KutluOzel-b Jan 20, 2023
b75c8ef
Renamed the copyDataSet new behavior to copyDataSets
zFernand0 Feb 7, 2023
0a56d20
address code smells and codeql comment :yum:
zFernand0 Feb 7, 2023
1b49880
Exclude Copy and Paste operations for zftp profiles from the context …
zFernand0 Feb 8, 2023
53dd392
address issues caught by unit tests :yum:
zFernand0 Feb 8, 2023
89e9f28
Merge branch 'main' of https://github.com/zowe/vscode-extension-for-z…
zFernand0 Feb 8, 2023
9d759f6
fix copy not triggered with complext context values
zFernand0 Feb 10, 2023
e311abf
add replace prompt
zFernand0 Feb 15, 2023
6608837
fix broken tests
zFernand0 Feb 15, 2023
7a8006d
address code smell and code dup
zFernand0 Feb 15, 2023
4480db9
hide copy dataset from the ZFTP extension
zFernand0 Feb 16, 2023
d4b4403
add tests and fix small cosmetic issue found while unit testing :yum:
zFernand0 Feb 16, 2023
c705d11
Merge branch 'main' into feature/copy/dsMulti
zFernand0 Feb 16, 2023
235dff7
address PR comments
zFernand0 Feb 24, 2023
7bfd20a
Merge branch 'main' of https://github.com/zowe/vscode-extension-for-z…
zFernand0 Feb 24, 2023
44cae14
address node.getParent comment
zFernand0 Feb 24, 2023
7e523d0
forgot to run the prepublish script
zFernand0 Feb 24, 2023
422e00c
Temporary testing with theia 1.34.0 + Address argsIgnorePattern +Addr…
zFernand0 Feb 24, 2023
e443eb9
remove any DA related stuff
zFernand0 Feb 24, 2023
7def251
Merge branch 'main' of https://github.com/zowe/vscode-extension-for-z…
zFernand0 Feb 28, 2023
a8dd2fe
Update APIs to show an error in case an extender has not implemented …
zFernand0 Feb 28, 2023
035b7dc
update message
zFernand0 Feb 28, 2023
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
6 changes: 6 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ rules:
"@typescript-eslint/no-var-requires": warn
no-unused-expressions: off
"@typescript-eslint/no-unused-expressions": warn
no-unused-vars: off
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
curly: warn
max-len:
- warn
Expand All @@ -37,3 +39,7 @@ rules:
filePathPattern: ".*\\.unit\\.test\\..*"
parserOptions:
sourceType: module
overrides:
- files: "**/__tests__/**"
rules:
no-magic-numbers: off
2 changes: 1 addition & 1 deletion .github/workflows/theia-zowe-explorer-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- run: yarn workspace vscode-extension-for-zowe test:theia

- name: Upload test results
if: success() || failure()
if: success() || failure()
uses: actions/upload-artifact@v2
with:
name: theia-zowe-explorer-results
Expand Down
2 changes: 2 additions & 0 deletions packages/zowe-explorer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to the "zowe-explorer-api" extension will be documented in t

### New features and enhancements

- Added copy datasets APIs. [#1550] (https://github.com/zowe/vscode-extension-for-zowe/issues/1550)

### Bug fixes

## `2.6.0`
Expand Down
11 changes: 11 additions & 0 deletions packages/zowe-explorer-api/src/profiles/ZoweExplorerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,17 @@ export namespace ZoweExplorerApi {
* @returns {Promise<zowe.IZosFilesResponse>}
*/
dataSetsMatchingPattern?(filter: string[], options?: zowe.IDsmListOptions): Promise<zowe.IZosFilesResponse>;

/**
* Copies a dataSet.
*
* @param {string} fromDataSetName
* @param {string} toDataSetName
* @param {string?} enq possible values : {SHR, SHRW, EXCLU}
* @param {boolean?} replace
* @returns {Promise<zowe.IZosFilesResponse>}
*/
copyDataSet?(fromDataSetName: string, toDataSetName: string, enq?: string, replace?: boolean): Promise<zowe.IZosFilesResponse>;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ export class ZosmfMvsApi extends ZosmfApiCommon implements ZoweExplorerApi.IMvs
public dataSetsMatchingPattern(filter: string[], options?: zowe.IDsmListOptions): Promise<zowe.IZosFilesResponse> {
return zowe.List.dataSetsMatchingPattern(this.getSession(), filter, options);
}
public copyDataSet(fromDataSetName: string, toDataSetName: string, enq?: string, replace?: boolean): Promise<zowe.IZosFilesResponse> {
zFernand0 marked this conversation as resolved.
Show resolved Hide resolved
return zowe.Copy.dataSet(this.getSession(), { dsn: toDataSetName }, { "from-dataset": { dsn: fromDataSetName }, enq, replace });
}
}

/**
Expand Down
2 changes: 2 additions & 0 deletions packages/zowe-explorer-ftp-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen

### New features and enhancements

- Updated UI/UX method calls to use standalone `Gui` module for better usability and maintainability . [#1967](https://github.com/zowe/vscode-extension-for-zowe/issues/1967)
traeok marked this conversation as resolved.
Show resolved Hide resolved

### Bug fixes

## `2.6.0`
Expand Down
9 changes: 3 additions & 6 deletions packages/zowe-explorer-ftp-extension/__mocks__/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ export namespace window {
* @param items A set of items that will be rendered as actions in the message.
* @return A thenable that resolves to the selected item or `undefined` when being dismissed.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function showInformationMessage(message: string, ...items: string[]): undefined {
export function showInformationMessage(_message: string, ..._items: string[]): undefined {
return undefined;
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function showErrorMessage(message: string, ...items: string[]): undefined {
export function showErrorMessage(_message: string, ..._items: string[]): undefined {
return undefined;
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function setStatusBarMessage(message: string, ...items: string[]): undefined {
export function setStatusBarMessage(_message: string, ..._items: string[]): undefined {
return undefined;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,16 @@ describe("FtpMvsApi", () => {
expect(MvsApi.releaseConnection).toBeCalled();
});

it("should give error copy datasets.", async () => {
try {
await MvsApi.copyDataSet(null, null);
} catch (error) {
// do nth
Copy link
Member

@traeok traeok Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lines 204-205 can be placed in the catch block, but the result is the same (just figured I'd mention it since it would eliminate the use of an empty catch block)

}
const copySpy = jest.spyOn(Gui, "errorMessage");
expect(copySpy).toHaveBeenCalled();
});

it("should throw an error when hMigrateDataSet is called", async () => {
jest.spyOn(Gui, "errorMessage").mockImplementation();
await expect(MvsApi.hMigrateDataSet("test")).rejects.toThrowError();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ export abstract class AbstractFtpApi implements ZoweExplorerApi.ICommon {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public logout(session): Promise<void> {
public logout(_session): Promise<void> {
const ftpsession = sessionMap.get(this.profile);
if (ftpsession !== undefined) {
ftpsession.releaseConnections();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class FtpJesApi extends AbstractFtpApi implements ZoweExplorerApi.IJes {
connection = await this.ftpClient(this.checkedProfile());
if (connection) {
const response: IJobStatus = await JobUtils.findJobByID(connection, jobid);
const files: any = response.spoolFiles;
const files = response.spoolFiles;
if (files) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return,@typescript-eslint/no-unsafe-call
return files.map((file: ISpoolFile) => {
Expand All @@ -109,7 +109,7 @@ export class FtpJesApi extends AbstractFtpApi implements ZoweExplorerApi.IJes {
procstep: (file as ISpoolFileRefactor).procStep || file.procstep,
class: file.class,
ddname: (file as ISpoolFileRefactor).ddName || file.ddname,
};
} as unknown as zowe.IJobFile;
});
}
}
Expand Down Expand Up @@ -184,14 +184,12 @@ export class FtpJesApi extends AbstractFtpApi implements ZoweExplorerApi.IJes {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async getJclForJob(job: zowe.IJob): Promise<string> {
public async getJclForJob(_job: zowe.IJob): Promise<string> {
await Gui.errorMessage("Get jcl is not supported in the FTP extension.", { logger: ZoweLogger });
throw new Error();
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async submitJcl(jcl: string, internalReaderRecfm?: string, internalReaderLrecl?: string): Promise<zowe.IJob> {
public async submitJcl(_jcl: string, _internalReaderRecfm?: string, _internalReaderLrecl?: string): Promise<zowe.IJob> {
await Gui.errorMessage("Submit jcl is not supported in the FTP extension.", { logger: ZoweLogger });
throw new Error();
}
Expand Down
37 changes: 15 additions & 22 deletions packages/zowe-explorer-ftp-extension/src/ZoweExplorerFtpMvsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import { ZoweLogger } from "./extension";
const MAX_MEMBER_NAME_LEN = 8;

export class FtpMvsApi extends AbstractFtpApi implements ZoweExplorerApi.IMvs {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async dataSet(filter: string, options?: zowe.IListOptions): Promise<zowe.IZosFilesResponse> {
public async dataSet(filter: string, _options?: zowe.IListOptions): Promise<zowe.IZosFilesResponse> {
const result = this.getDefaultResponse();
const session = this.getSession(this.profile);
if (session.mvsListConnection === undefined || session.mvsListConnection.connected === false) {
Expand All @@ -54,8 +53,7 @@ export class FtpMvsApi extends AbstractFtpApi implements ZoweExplorerApi.IMvs {
return result;
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async allMembers(dataSetName: string, options?: zowe.IListOptions): Promise<zowe.IZosFilesResponse> {
public async allMembers(dataSetName: string, _options?: zowe.IListOptions): Promise<zowe.IZosFilesResponse> {
const result = this.getDefaultResponse();
let connection;
try {
Expand Down Expand Up @@ -264,24 +262,25 @@ export class FtpMvsApi extends AbstractFtpApi implements ZoweExplorerApi.IMvs {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async allocateLikeDataSet(dataSetName: string, likeDataSetName: string): Promise<zowe.IZosFilesResponse> {
public async allocateLikeDataSet(_dataSetName: string, _likeDataSetName: string): Promise<zowe.IZosFilesResponse> {
await Gui.errorMessage("Allocate like dataset is not supported in ftp extension.", { logger: ZoweLogger });
throw new Error();
}

public async copyDataSetMember(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
{ dsn: fromDataSetName, member: fromMemberName }: zowe.IDataSet,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
{ dsn: toDataSetName, member: toMemberName }: zowe.IDataSet,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
options?: { replace?: boolean }
{ dsn: _fromDataSetName, member: _fromMemberName }: zowe.IDataSet,
{ dsn: _toDataSetName, member: _toMemberName }: zowe.IDataSet,
_options?: { replace?: boolean }
): Promise<zowe.IZosFilesResponse> {
await Gui.errorMessage("Copy dataset is not supported in ftp extension.", { logger: ZoweLogger });
throw new Error();
}

public async copyDataSet(_fromDataSetName: string, _toDataSetName: string, _enq?: string, _replace?: boolean): Promise<zowe.IZosFilesResponse> {
await Gui.errorMessage("Copy dataset is not supported in ftp extension.", { logger: ZoweLogger });
throw new Error();
}

public async renameDataSet(currentDataSetName: string, newDataSetName: string): Promise<zowe.IZosFilesResponse> {
const result = this.getDefaultResponse();
let connection;
Expand Down Expand Up @@ -322,22 +321,16 @@ export class FtpMvsApi extends AbstractFtpApi implements ZoweExplorerApi.IMvs {
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async hMigrateDataSet(dataSetName: string): Promise<zowe.IZosFilesResponse> {
public async hMigrateDataSet(_dataSetName: string): Promise<zowe.IZosFilesResponse> {
await Gui.errorMessage("Migrate dataset is not supported in ftp extension.", { logger: ZoweLogger });
throw new Error();
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async hRecallDataSet(dataSetName: string): Promise<zowe.IZosFilesResponse> {
public async hRecallDataSet(_dataSetName: string): Promise<zowe.IZosFilesResponse> {
await Gui.errorMessage("Recall dataset is not supported in ftp extension.", { logger: ZoweLogger });
throw new Error();
}
public async deleteDataSet(
dataSetName: string,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
options?: zowe.IDeleteDatasetOptions
): Promise<zowe.IZosFilesResponse> {
public async deleteDataSet(dataSetName: string, _options?: zowe.IDeleteDatasetOptions): Promise<zowe.IZosFilesResponse> {
const result = this.getDefaultResponse();
let connection;
try {
Expand Down Expand Up @@ -381,7 +374,7 @@ export class FtpMvsApi extends AbstractFtpApi implements ZoweExplorerApi.IMvs {
input.on("readable", () => {
const data = input.read();
if (data) {
hash.update(data);
hash.update(data as unknown as crypto.BinaryLike);
} else {
resolve(`${hash.digest("hex")}`);
}
Expand Down
20 changes: 5 additions & 15 deletions packages/zowe-explorer-ftp-extension/src/ZoweExplorerFtpUssApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class FtpUssApi extends AbstractFtpApi implements ZoweExplorerApi.IUss {
return result;
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/require-await, require-await
public async isFileTagBinOrAscii(ussFilePath: string): Promise<boolean> {
// eslint-disable-next-line @typescript-eslint/require-await, require-await
public async isFileTagBinOrAscii(_ussFilePath: string): Promise<boolean> {
return false; // TODO: needs to be implemented checking file type
}

Expand Down Expand Up @@ -125,12 +125,7 @@ export class FtpUssApi extends AbstractFtpApi implements ZoweExplorerApi.IUss {
}
}

public async uploadDirectory(
inputDirectoryPath: string,
ussDirectoryPath: string,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
options: IUploadOptions
): Promise<zowe.IZosFilesResponse> {
public async uploadDirectory(inputDirectoryPath: string, ussDirectoryPath: string, _options: IUploadOptions): Promise<zowe.IZosFilesResponse> {
let result = this.getDefaultResponse();

// Check if inputDirectory is directory
Expand All @@ -149,12 +144,7 @@ export class FtpUssApi extends AbstractFtpApi implements ZoweExplorerApi.IUss {
return result;
}

public async create(
ussPath: string,
type: string,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
mode?: string
): Promise<zowe.IZosFilesResponse> {
public async create(ussPath: string, type: string, _mode?: string): Promise<zowe.IZosFilesResponse> {
const result = this.getDefaultResponse();
let connection;
try {
Expand Down Expand Up @@ -262,7 +252,7 @@ export class FtpUssApi extends AbstractFtpApi implements ZoweExplorerApi.IUss {
input.on("readable", () => {
const data = input.read();
if (data) {
hash.update(data);
hash.update(data as unknown as crypto.BinaryLike);
} else {
resolve(`${hash.digest("hex")}`);
}
Expand Down
6 changes: 2 additions & 4 deletions packages/zowe-explorer-ftp-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ import { FtpSession } from "./ftpSession";

export const ZoweLogger = new IZoweLogger("Zowe Explorer FTP Extension", path.join(__dirname, "..", ".."));

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function activate(context: vscode.ExtensionContext): void {
export function activate(_context: vscode.ExtensionContext): void {
void registerFtpApis();
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function deactivate(context: vscode.ExtensionContext): void {
export function deactivate(_context: vscode.ExtensionContext): void {
sessionMap.forEach((session) => session.releaseConnections());
sessionMap.clear();
}
Expand Down
3 changes: 2 additions & 1 deletion packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen

### New features and enhancements

- Added Job search label to the Jobs tree. Label will show current search query [2062](https://github.com/zowe/vscode-extension-for-zowe/pull/2064).
- Added Job search label to the Jobs tree. Label will show current search query [#2062](https://github.com/zowe/vscode-extension-for-zowe/pull/2064).
- Added feature copy datasets ( pds, sequential, members across pds) with multi select capabilities. [#1150](https://github.com/zowe/vscode-extension-for-zowe/issues/1550)

### Bug fixes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ describe("USSTree Integration Tests", async () => {
*************************************************************************************************************/
it("Tests the addSession() function by adding a default, deleting, then adding a passed session", async () => {
let len = testTree.mSessionNodes.length;
const log = new imperative.Logger(undefined);
await testTree.addSession();
expect(testTree.mSessionNodes.length).toBeGreaterThanOrEqual(len + 1);
len = testTree.mSessionNodes.length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,9 @@ describe("Extension Integration Tests", async () => {
try {
const fromNode = new ZoweDatasetNode(fromDataSetName, vscode.TreeItemCollapsibleState.None, sessionNode, session);
const toNode = new ZoweDatasetNode(toDataSetName, vscode.TreeItemCollapsibleState.None, sessionNode, session);
const nodeList: ZoweDatasetNode[] = [fromNode];
await dsActions.copyDataSets(nodeList, null, null);

await dsActions.copyDataSet(fromNode);
await dsActions.pasteMember(toNode, testTree);

contents = await zowe.Get.dataSet(sessionNode.getSession(), fromDataSetName);
Expand Down Expand Up @@ -496,7 +497,6 @@ describe("Extension Integration Tests", async () => {

const inputBoxStub = sandbox.stub(vscode.window, "showInputBox");
inputBoxStub.returns(toMemberName);

await dsActions.copyDataSet(fromNode);
await dsActions.pasteMember(parentNode, testTree);

Expand Down Expand Up @@ -546,8 +546,8 @@ describe("Extension Integration Tests", async () => {

const inputBoxStub = sandbox.stub(vscode.window, "showInputBox");
inputBoxStub.returns(toMemberName);

await dsActions.copyDataSet(fromNode);
const nodeList: ZoweDatasetNode[] = [fromNode];
await dsActions.copyDataSets(nodeList, null, null);
await dsActions.pasteMember(toNode, testTree);

contents = await zowe.Get.dataSet(sessionNode.getSession(), `${toDataSetName}(${toMemberName})`);
Expand Down Expand Up @@ -597,8 +597,8 @@ describe("Extension Integration Tests", async () => {
fromParentNode.contextValue = globals.DS_PDS_CONTEXT;
fromMemberNode.contextValue = globals.DS_MEMBER_CONTEXT;
toNode.contextValue = globals.DS_DS_CONTEXT;

await dsActions.copyDataSet(fromMemberNode);
const nodeList: ZoweDatasetNode[] = [fromMemberNode];
await dsActions.copyDataSets(nodeList, null, null);
await dsActions.pasteMember(toNode, testTree);

contents = await zowe.Get.dataSet(sessionNode.getSession(), toDataSetName);
Expand Down
1 change: 1 addition & 0 deletions packages/zowe-explorer/__tests__/__integration__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function run(): Promise<void> {
}
});
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
e(err);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async function main() {
// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
} catch (err) {
// eslint-disable-next-line no-console
console.error("Failed to run tests");
process.exit(1);
}
Expand Down
1 change: 1 addition & 0 deletions packages/zowe-explorer/__tests__/__theia__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function run(): Promise<void> {
}
});
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
e(err);
}
Expand Down
1 change: 1 addition & 0 deletions packages/zowe-explorer/__tests__/__theia__/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async function main() {
// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath });
} catch (err) {
// eslint-disable-next-line no-console
console.error("Failed to run tests");
process.exit(1);
}
Expand Down
Loading