Skip to content

Commit

Permalink
finished sdk tests and starting cli tests
Browse files Browse the repository at this point in the history
Signed-off-by: ATorrise <amber.torrise@broadcom.com>
  • Loading branch information
ATorrise committed Aug 16, 2024
1 parent 68a7fdd commit 0f61785
Show file tree
Hide file tree
Showing 3 changed files with 976 additions and 976 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

import { Create, CreateDataSetTypeEnum, Delete, Get, IGetOptions, List, ZosFilesConstants } from "../../../../src";
import { Imperative, Session } from "@zowe/imperative";
import { ITestEnvironment } from "@zowe/cli-test-utils";
import { TestEnvironment } from "../../../../../../__tests__/__src__/environment/TestEnvironment";
import { ITestEnvironment, TestEnvironment } from "@zowe/cli-test-utils";
import { ITestPropertiesSchema } from "../../../../../../__tests__/__src__/properties/ITestPropertiesSchema";
import { getRandomBytes, getUniqueDatasetName, stripNewLines } from "../../../../../../__tests__/__src__/TestUtils";
import { ZosmfRestClient, ZosmfHeaders } from "@zowe/core-for-zowe-sdk";
Expand All @@ -29,11 +28,9 @@ describe("Get", () => {
beforeAll(async () => {
testEnvironment = await TestEnvironment.setUp({
testName: "zos_file_view"
});
defaultSystem = testEnvironment.systemTestProperties;

REAL_SESSION = TestEnvironment.createZosmfSession(testEnvironment);
}, REAL_SESSION = await TestEnvironment.createSession());

defaultSystem = testEnvironment.systemTestProperties;
dsname = getUniqueDatasetName(`${defaultSystem.zosmf.user}.ZOSFILE.VIEW`);
Imperative.console.info("Using dsname:" + dsname);

Expand Down Expand Up @@ -354,6 +351,7 @@ describe("Get", () => {
expect(response).toBeFalsy();
expect(error).toBeTruthy();
expect(stripNewLines(error.message)).toContain("Unsupported data type 'record' specified for USS file operation.");
testEnvironment.resources.files.push(ussname);
});
});
});
Expand All @@ -365,11 +363,9 @@ describe("Get - encoded", () => {
beforeAll(async () => {
testEnvironment = await TestEnvironment.setUp({
testName: "zos_file_view"
});
defaultSystem = testEnvironment.systemTestProperties;

REAL_SESSION = TestEnvironment.createZosmfSession(testEnvironment);
}, REAL_SESSION = await TestEnvironment.createSession());

defaultSystem = testEnvironment.systemTestProperties;
dsname = getUniqueDatasetName(`${defaultSystem.zosmf.user}.ZOSFILE.VIEW`, true);
Imperative.console.info("Using dsname:" + dsname);

Expand Down
Loading

0 comments on commit 0f61785

Please sign in to comment.