From bb7c290765b7abf1a5952dee560dff6855002b10 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 9 Sep 2024 10:40:25 -0400 Subject: [PATCH 1/7] Update workflow permissions (v3) Signed-off-by: Andrew W. Harn --- .github/workflows/auto-comment.yml | 2 ++ .github/workflows/main.yml | 4 ++++ .github/workflows/update-project.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml index ad4e1974..7e464247 100644 --- a/.github/workflows/auto-comment.yml +++ b/.github/workflows/auto-comment.yml @@ -3,6 +3,8 @@ name: Zowe CICS Client Auto Responder on: issues: types: labeled +permissions: + issues: write jobs: processLabelAction: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bdc9c461..a323f207 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -96,6 +96,10 @@ jobs: if: github.event_name == 'push' && github.ref_protected needs: test runs-on: ubuntu-latest + permissions: + contents: write + issues: write + pull-requests: write steps: - name: Checkout diff --git a/.github/workflows/update-project.yml b/.github/workflows/update-project.yml index 09fa9e29..94070a09 100644 --- a/.github/workflows/update-project.yml +++ b/.github/workflows/update-project.yml @@ -12,6 +12,9 @@ env: PR_STATUS_DRAFT: 'In Progress' PR_STATUS_READY: 'Review/QA' +permissions: + pull-requests: write + jobs: update-project: name: Move project item From 50ad2758aeb0f6556f5f303f921423cecbe45fb1 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 9 Sep 2024 14:10:35 -0400 Subject: [PATCH 2/7] Make test changes to support changes made in CLI V3 Signed-off-by: Andrew W. Harn --- .../csdGroup/CSDGroup.handler.unit.test.ts | 25 +++++----- .../program/Program.handler.unit.test.ts | 36 +++++++-------- .../Transaction.handler.unit.test.ts | 36 +++++++-------- .../UrimapClient.handler.unit.test.ts | 36 +++++++-------- .../UrimapPipeline.handler.unit.test.ts | 46 +++++++++---------- .../UrimapServer.handler.unit.test.ts | 36 +++++++-------- .../Webservice.handler.unit.test.ts | 36 +++++++-------- .../program/Program.handler.unit.test.ts | 36 +++++++-------- .../Transaction.handler.unit.test.ts | 36 +++++++-------- .../delete/urimap/Urimap.handler.unit.test.ts | 40 ++++++++-------- .../webservice/Webservice.handler.test.ts | 40 ++++++++-------- .../urimap/Urimap.handler.unit.test.ts | 40 ++++++++-------- .../program/Program.handler.unit.test.ts | 36 +++++++-------- .../Transaction.handler.unit.test.ts | 36 +++++++-------- .../urimap/Urimap.handler.unit.test.ts | 40 ++++++++-------- .../enable/urimap/Urimap.handler.unit.test.ts | 40 ++++++++-------- .../resource/Resource.handler.unit.test.ts | 36 +++++++-------- .../program/Program.handler.unit.test.ts | 36 +++++++-------- .../Transaction.handler.unit.test.ts | 36 +++++++-------- .../urimap/Urimap.handler.unit.test.ts | 40 ++++++++-------- .../program/Program.handler.unit.test.ts | 40 ++++++++-------- .../csdGroup/CSDGroup.handler.unit.test.ts | 36 +++++++-------- 22 files changed, 366 insertions(+), 453 deletions(-) diff --git a/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts b/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts index f34c3545..477e0fa9 100644 --- a/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { CSDGroupDefinition } from "../../../../src/add-to-list/csdGroup/CSDGroup.definition"; import CSDGroupHandler from "../../../../src/add-to-list/csdGroup/CSDGroup.handler"; @@ -19,28 +19,25 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const AddToList = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ +const PROFILE_MAP = { name: "cics", type: "cics", host, port, user, password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); + }; + const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "add-to-list", "csdGroup"], definition: CSDGroupDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("AddToListProgramHandler", () => { @@ -82,14 +79,14 @@ describe("AddToListProgramHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/define/program/Program.handler.unit.test.ts b/packages/cli/__tests__/__unit__/define/program/Program.handler.unit.test.ts index ef36fe9d..e6ab6a25 100644 --- a/packages/cli/__tests__/__unit__/define/program/Program.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/define/program/Program.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { ProgramDefinition } from "../../../../src/define/program/Program.definition"; import ProgramHandler from "../../../../src/define/program/Program.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Define = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "define", "program"], definition: ProgramDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DefineProgramHandler", () => { @@ -82,14 +78,14 @@ describe("DefineProgramHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/define/transaction/Transaction.handler.unit.test.ts b/packages/cli/__tests__/__unit__/define/transaction/Transaction.handler.unit.test.ts index 82a91d2f..7470b919 100644 --- a/packages/cli/__tests__/__unit__/define/transaction/Transaction.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/define/transaction/Transaction.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { TransactionDefinition } from "../../../../src/define/transaction/Transaction.definition"; import TransactionHandler from "../../../../src/define/transaction/Transaction.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Define = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "define", "transaction"], definition: TransactionDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DefineTransactionHandler", () => { @@ -84,14 +80,14 @@ describe("DefineTransactionHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/define/urimap-client/UrimapClient.handler.unit.test.ts b/packages/cli/__tests__/__unit__/define/urimap-client/UrimapClient.handler.unit.test.ts index 6942c834..79bf68e0 100644 --- a/packages/cli/__tests__/__unit__/define/urimap-client/UrimapClient.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/define/urimap-client/UrimapClient.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapClientDefinition } from "../../../../src/define/urimap-client/UrimapClient.definition"; import UrimapClientHandler from "../../../../src/define/urimap-client/UrimapClient.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Define = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "define", "urimap-client"], definition: UrimapClientDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DefineUrimapClientHandler", () => { @@ -96,14 +92,14 @@ describe("DefineUrimapClientHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/define/urimap-pipeline/UrimapPipeline.handler.unit.test.ts b/packages/cli/__tests__/__unit__/define/urimap-pipeline/UrimapPipeline.handler.unit.test.ts index 9d3632d5..8b68fcbf 100644 --- a/packages/cli/__tests__/__unit__/define/urimap-pipeline/UrimapPipeline.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/define/urimap-pipeline/UrimapPipeline.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapPipelineDefinition } from "../../../../src/define/urimap-pipeline/UrimapPipeline.definition"; import UrimapPipelineHandler from "../../../../src/define/urimap-pipeline/UrimapPipeline.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Define = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "define", "urimap-pipeline"], definition: UrimapPipelineDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DefineUrimapPipelineHandler", () => { @@ -98,14 +94,14 @@ describe("DefineUrimapPipelineHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), @@ -155,14 +151,14 @@ describe("DefineUrimapPipelineHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/define/urimap-server/UrimapServer.handler.unit.test.ts b/packages/cli/__tests__/__unit__/define/urimap-server/UrimapServer.handler.unit.test.ts index 848166f0..430bac3f 100644 --- a/packages/cli/__tests__/__unit__/define/urimap-server/UrimapServer.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/define/urimap-server/UrimapServer.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapServerDefinition } from "../../../../src/define/urimap-server/UrimapServer.definition"; import UrimapServerHandler from "../../../../src/define/urimap-server/UrimapServer.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Define = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "define", "urimap-server"], definition: UrimapServerDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DefineUrimapServerHandler", () => { @@ -96,14 +92,14 @@ describe("DefineUrimapServerHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/define/webservice/Webservice.handler.unit.test.ts b/packages/cli/__tests__/__unit__/define/webservice/Webservice.handler.unit.test.ts index 87f1e0d0..0f033f35 100644 --- a/packages/cli/__tests__/__unit__/define/webservice/Webservice.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/define/webservice/Webservice.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { WebServiceDefinition } from "../../../../src/define/webservice/Webservice.definition"; import WebServiceHandler from "../../../../src/define/webservice/Webservice.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Define = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "define", "webservice"], definition: WebServiceDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DefineWebserviceHandler", () => { @@ -88,14 +84,14 @@ describe("DefineWebserviceHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/delete/program/Program.handler.unit.test.ts b/packages/cli/__tests__/__unit__/delete/program/Program.handler.unit.test.ts index 0ff0660f..45bd8533 100644 --- a/packages/cli/__tests__/__unit__/delete/program/Program.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/delete/program/Program.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { ProgramDefinition } from "../../../../src/delete/program/Program.definition"; import ProgramHandler from "../../../../src/delete/program/Program.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Discard = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "delete", "program"], definition: ProgramDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DiscardProgramHandler", () => { @@ -64,7 +60,7 @@ describe("DiscardProgramHandler", () => { it("should call the deleteProgram api", async () => { const handler = new ProgramHandler(); - const testProfile = PROFILE_MAP.get("cics")[0]; + const commandParameters = {...DEFAULT_PARAMETERS}; commandParameters.arguments = { ...commandParameters.arguments, @@ -85,10 +81,10 @@ describe("DiscardProgramHandler", () => { expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/delete/transaction/Transaction.handler.unit.test.ts b/packages/cli/__tests__/__unit__/delete/transaction/Transaction.handler.unit.test.ts index 6ad531d8..216995de 100644 --- a/packages/cli/__tests__/__unit__/delete/transaction/Transaction.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/delete/transaction/Transaction.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { TransactionDefinition } from "../../../../src/delete/transaction/Transaction.definition"; import TransactionHandler from "../../../../src/delete/transaction/Transaction.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Discard = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "delete", "transaction"], definition: TransactionDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DiscardTransactionHandler", () => { @@ -82,14 +78,14 @@ describe("DiscardTransactionHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/delete/urimap/Urimap.handler.unit.test.ts b/packages/cli/__tests__/__unit__/delete/urimap/Urimap.handler.unit.test.ts index fc4e1c27..357c880f 100644 --- a/packages/cli/__tests__/__unit__/delete/urimap/Urimap.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/delete/urimap/Urimap.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapDefinition } from "../../../../src/delete/urimap/Urimap.definition"; import UrimapHandler from "../../../../src/delete/urimap/Urimap.handler"; @@ -19,30 +19,26 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Delete = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password, - protocol, - rejectUnauthorized - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password, + protocol, + rejectUnauthorized +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "delete", "urimap"], definition: UrimapDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DeleteUrimapHandler", () => { @@ -84,14 +80,14 @@ describe("DeleteUrimapHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/delete/webservice/Webservice.handler.test.ts b/packages/cli/__tests__/__unit__/delete/webservice/Webservice.handler.test.ts index a8ca0460..89f84a5c 100644 --- a/packages/cli/__tests__/__unit__/delete/webservice/Webservice.handler.test.ts +++ b/packages/cli/__tests__/__unit__/delete/webservice/Webservice.handler.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { WebServiceDefinition } from "../../../../src/delete/webservice/Webservice.definition"; import WebServiceHandler from "../../../../src/delete/webservice/Webservice.handler"; @@ -19,30 +19,26 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Delete = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password, - protocol, - rejectUnauthorized - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password, + protocol, + rejectUnauthorized +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "delete", "webservice"], definition: WebServiceDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DeleteWebserviceHandler", () => { @@ -84,14 +80,14 @@ describe("DeleteWebserviceHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")?.[0] ?? {}; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/disable/urimap/Urimap.handler.unit.test.ts b/packages/cli/__tests__/__unit__/disable/urimap/Urimap.handler.unit.test.ts index 7b82ffa8..8a238266 100644 --- a/packages/cli/__tests__/__unit__/disable/urimap/Urimap.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/disable/urimap/Urimap.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapDefinition } from "../../../../src/disable/urimap/Urimap.definition"; import UrimapHandler from "../../../../src/disable/urimap/Urimap.handler"; @@ -19,30 +19,26 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Disable = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password, - protocol, - rejectUnauthorized - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password, + protocol, + rejectUnauthorized +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "disable", "urimap"], definition: UrimapDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DisableUrimapHandler", () => { @@ -82,14 +78,14 @@ describe("DisableUrimapHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/discard/program/Program.handler.unit.test.ts b/packages/cli/__tests__/__unit__/discard/program/Program.handler.unit.test.ts index 8fc8ff73..03709626 100644 --- a/packages/cli/__tests__/__unit__/discard/program/Program.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/discard/program/Program.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { ProgramDefinition } from "../../../../src/discard/program/Program.definition"; import ProgramHandler from "../../../../src/discard/program/Program.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Discard = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "discard", "program"], definition: ProgramDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DiscardProgramHandler", () => { @@ -82,14 +78,14 @@ describe("DiscardProgramHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/discard/transaction/Transaction.handler.unit.test.ts b/packages/cli/__tests__/__unit__/discard/transaction/Transaction.handler.unit.test.ts index 635b25e5..7c3e9cbf 100644 --- a/packages/cli/__tests__/__unit__/discard/transaction/Transaction.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/discard/transaction/Transaction.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { TransactionDefinition } from "../../../../src/discard/transaction/Transaction.definition"; import TransactionHandler from "../../../../src/discard/transaction/Transaction.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Discard = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "discard", "program"], definition: TransactionDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DiscardTransactionHandler", () => { @@ -82,14 +78,14 @@ describe("DiscardTransactionHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, protocol, rejectUnauthorized }), diff --git a/packages/cli/__tests__/__unit__/discard/urimap/Urimap.handler.unit.test.ts b/packages/cli/__tests__/__unit__/discard/urimap/Urimap.handler.unit.test.ts index 563323c9..eeb44863 100644 --- a/packages/cli/__tests__/__unit__/discard/urimap/Urimap.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/discard/urimap/Urimap.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapDefinition } from "../../../../src/discard/urimap/Urimap.definition"; import UrimapHandler from "../../../../src/discard/urimap/Urimap.handler"; @@ -19,30 +19,26 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Discard = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password, - protocol, - rejectUnauthorized - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password, + protocol, + rejectUnauthorized +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "discard", "urimap"], definition: UrimapDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("DiscardUrimapHandler", () => { @@ -82,14 +78,14 @@ describe("DiscardUrimapHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/enable/urimap/Urimap.handler.unit.test.ts b/packages/cli/__tests__/__unit__/enable/urimap/Urimap.handler.unit.test.ts index 1f94dad4..e5bfbf94 100644 --- a/packages/cli/__tests__/__unit__/enable/urimap/Urimap.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/enable/urimap/Urimap.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapDefinition } from "../../../../src/enable/urimap/Urimap.definition"; import UrimapHandler from "../../../../src/enable/urimap/Urimap.handler"; @@ -19,30 +19,26 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Enable = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password, - protocol, - rejectUnauthorized - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password, + protocol, + rejectUnauthorized +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "enable", "urimap"], definition: UrimapDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("enableUrimapHandler", () => { @@ -82,14 +78,14 @@ describe("enableUrimapHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/get/resource/Resource.handler.unit.test.ts b/packages/cli/__tests__/__unit__/get/resource/Resource.handler.unit.test.ts index 990a6776..5b309795 100644 --- a/packages/cli/__tests__/__unit__/get/resource/Resource.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/get/resource/Resource.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { ResourceDefinition } from "../../../../src/get/resource/Resource.definition"; import ResourceHandler from "../../../../src/get/resource/Resource.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Get = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "get", "resource"], definition: ResourceDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("GetResourceHandler", () => { @@ -81,14 +77,14 @@ describe("GetResourceHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/install/program/Program.handler.unit.test.ts b/packages/cli/__tests__/__unit__/install/program/Program.handler.unit.test.ts index 68aa503b..8902f730 100644 --- a/packages/cli/__tests__/__unit__/install/program/Program.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/install/program/Program.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { ProgramDefinition } from "../../../../src/install/program/Program.definition"; import ProgramHandler from "../../../../src/install/program/Program.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Install = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "install", "program"], definition: ProgramDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("InstallProgramHandler", () => { @@ -82,14 +78,14 @@ describe("InstallProgramHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/install/transaction/Transaction.handler.unit.test.ts b/packages/cli/__tests__/__unit__/install/transaction/Transaction.handler.unit.test.ts index 2ee088f4..0e2a3d26 100644 --- a/packages/cli/__tests__/__unit__/install/transaction/Transaction.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/install/transaction/Transaction.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { TransactionDefinition } from "../../../../src/install/transaction/Transaction.definition"; import TransactionHandler from "../../../../src/install/transaction/Transaction.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Install = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const rejectUnauthorized = false; const protocol = "https"; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "install", "transaction"], definition: TransactionDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("InstallTransactionHandler", () => { @@ -81,14 +77,14 @@ describe("InstallTransactionHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/install/urimap/Urimap.handler.unit.test.ts b/packages/cli/__tests__/__unit__/install/urimap/Urimap.handler.unit.test.ts index e3d0e29f..8bf91736 100644 --- a/packages/cli/__tests__/__unit__/install/urimap/Urimap.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/install/urimap/Urimap.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { UrimapDefinition } from "../../../../src/install/urimap/Urimap.definition"; import UrimapHandler from "../../../../src/install/urimap/Urimap.handler"; @@ -19,30 +19,26 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Install = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password, - protocol, - rejectUnauthorized - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password, + protocol, + rejectUnauthorized +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "install", "urimap"], definition: UrimapDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("InstallUrimapHandler", () => { @@ -84,14 +80,14 @@ describe("InstallUrimapHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), diff --git a/packages/cli/__tests__/__unit__/refresh/program/Program.handler.unit.test.ts b/packages/cli/__tests__/__unit__/refresh/program/Program.handler.unit.test.ts index c09bb6c1..86713ce1 100644 --- a/packages/cli/__tests__/__unit__/refresh/program/Program.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/refresh/program/Program.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { ProgramDefinition } from "../../../../src/refresh/program/Program.definition"; import ProgramHandler from "../../../../src/refresh/program/Program.handler"; @@ -19,29 +19,25 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const Set = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "https"; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password, - protocol, - rejectUnauthorized: false - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password, + protocol, + rejectUnauthorized: false +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "refresh", "program"], definition: ProgramDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("RefreshProgramHandler", () => { @@ -82,14 +78,14 @@ describe("RefreshProgramHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized: false, protocol: "https", }), diff --git a/packages/cli/__tests__/__unit__/remove-from-list/csdGroup/CSDGroup.handler.unit.test.ts b/packages/cli/__tests__/__unit__/remove-from-list/csdGroup/CSDGroup.handler.unit.test.ts index 34b9b61b..6ab1cdf4 100644 --- a/packages/cli/__tests__/__unit__/remove-from-list/csdGroup/CSDGroup.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/remove-from-list/csdGroup/CSDGroup.handler.unit.test.ts @@ -10,7 +10,7 @@ */ import { mockHandlerParameters } from "@zowe/cli-test-utils"; -import { CommandProfiles, IHandlerParameters, IProfile, Session } from "@zowe/imperative"; +import { IHandlerParameters, Session } from "@zowe/imperative"; import { ICMCIApiResponse } from "../../../../src"; import { CSDGroupDefinition } from "../../../../src/remove-from-list/csdGroup/CSDGroup.definition"; import CSDGroupHandler from "../../../../src/remove-from-list/csdGroup/CSDGroup.handler"; @@ -19,28 +19,24 @@ jest.mock("@zowe/cics-for-zowe-sdk"); const RemoveFromList = require("@zowe/cics-for-zowe-sdk"); const host = "somewhere.com"; -const port = "43443"; +const port = 43443; const user = "someone"; const password = "somesecret"; const protocol = "http"; const rejectUnauthorized = false; -const PROFILE_MAP = new Map(); -PROFILE_MAP.set( - "cics", [{ - name: "cics", - type: "cics", - host, - port, - user, - password - }] -); -const PROFILES: CommandProfiles = new CommandProfiles(PROFILE_MAP); +const PROFILE_MAP = { + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "remove-from-list", "csdGroup"], definition: CSDGroupDefinition, - profiles: PROFILES + arguments: PROFILE_MAP }); describe("RemoveFromListProgramHandler", () => { @@ -82,14 +78,14 @@ describe("RemoveFromListProgramHandler", () => { await handler.process(commandParameters); expect(functionSpy).toHaveBeenCalledTimes(1); - const testProfile = PROFILE_MAP.get("cics")[0]; + expect(functionSpy).toHaveBeenCalledWith( new Session({ type: "basic", - hostname: testProfile.host, - port: testProfile.port, - user: testProfile.user, - password: testProfile.password, + hostname: PROFILE_MAP.host, + port: PROFILE_MAP.port, + user: PROFILE_MAP.user, + password: PROFILE_MAP.password, rejectUnauthorized, protocol }), From 6c5976470a3ea9e6124d1da7545b35e3b5383543 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 9 Sep 2024 14:15:41 -0400 Subject: [PATCH 3/7] Fix lint Signed-off-by: Andrew W. Harn --- .../csdGroup/CSDGroup.handler.unit.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts b/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts index 477e0fa9..929b5315 100644 --- a/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts +++ b/packages/cli/__tests__/__unit__/add-to-list/csdGroup/CSDGroup.handler.unit.test.ts @@ -26,13 +26,13 @@ const protocol = "http"; const rejectUnauthorized = false; const PROFILE_MAP = { - name: "cics", - type: "cics", - host, - port, - user, - password - }; + name: "cics", + type: "cics", + host, + port, + user, + password +}; const DEFAULT_PARAMETERS: IHandlerParameters = mockHandlerParameters({ positionals: ["cics", "add-to-list", "csdGroup"], From 4dedf6c9b3424a249021e60cfbaa798874715865 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 9 Sep 2024 14:20:24 -0400 Subject: [PATCH 4/7] Fix packages Signed-off-by: Andrew W. Harn --- package-lock.json | 16 ++++++++-------- package.json | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 52b91f6a..8e56143a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,8 +19,8 @@ "@types/yargs": "^17.0.24", "@typescript-eslint/eslint-plugin": "^5.57.1", "@typescript-eslint/parser": "^5.57.1", - "@zowe/cli-test-utils": "^8.0.0-next.202402021649", - "@zowe/imperative": "^8.0.0-next.202407311544", + "@zowe/cli-test-utils": "^8.0.0-next.202408301809", + "@zowe/imperative": "^8.0.0-next.202408301809", "@zowe/zowe-explorer-api": "^3.0.0-next", "chalk": "^4.1.2", "eslint": "^8.37.0", @@ -4009,9 +4009,9 @@ "link": true }, "node_modules/@zowe/cli-test-utils": { - "version": "8.0.0-next.202407291826", - "resolved": "https://zowe.jfrog.io/zowe/api/npm/npm-release/@zowe/cli-test-utils/-/@zowe/cli-test-utils-8.0.0-next.202407291826.tgz", - "integrity": "sha512-5Yb0JBMckc8K9sOVUoWAiD4kaRNYSyZe5Js92AYyYzyRXt3aNiRH9XsfL2NS+aV1p/5az8b8SWe5Ry60AHjCZQ==", + "version": "8.0.0-next.202409091603", + "resolved": "https://zowe.jfrog.io/zowe/api/npm/npm-release/@zowe/cli-test-utils/-/@zowe/cli-test-utils-8.0.0-next.202409091603.tgz", + "integrity": "sha512-I6GM1liFDI7PrvwfbGoJ5TJ8Aq1VYOQgz51X1NC5OxbazcHdC6UYXeSyUZ2s0ZbskuoJUbxUE8m91ihQ56HwTw==", "dev": true, "dependencies": { "find-up": "^5.0.0", @@ -4070,9 +4070,9 @@ } }, "node_modules/@zowe/imperative": { - "version": "8.0.0-next.202407311544", - "resolved": "https://zowe.jfrog.io/zowe/api/npm/npm-release/@zowe/imperative/-/@zowe/imperative-8.0.0-next.202407311544.tgz", - "integrity": "sha512-pm56MHDepgFijI+nPqvqeeYHKlMbrJ9/b4/U48C1PhgTYeHvSybruq7lwoQF8IewYvdtN6GfnNsM+eAko/ixXA==", + "version": "8.0.0-next.202409091603", + "resolved": "https://zowe.jfrog.io/zowe/api/npm/npm-release/@zowe/imperative/-/@zowe/imperative-8.0.0-next.202409091603.tgz", + "integrity": "sha512-1CL6Expz9mXQOAbdmvHUNdikPBzMZrgjGqDE3az2h/UUYH+58ZcAgphqVCqCcNHMEyfvMD32A48vw2kGZOiiQg==", "dependencies": { "@types/yargs": "^17.0.32", "chalk": "^4.1.2", diff --git a/package.json b/package.json index 6ee0dc64..df560406 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "@types/yargs": "^17.0.24", "@typescript-eslint/eslint-plugin": "^5.57.1", "@typescript-eslint/parser": "^5.57.1", - "@zowe/cli-test-utils": "^8.0.0-next.202402021649", - "@zowe/imperative": "^8.0.0-next.202407311544", + "@zowe/cli-test-utils": "^8.0.0-next.202408301809", + "@zowe/imperative": "^8.0.0-next.202408301809", "@zowe/zowe-explorer-api": "^3.0.0-next", "chalk": "^4.1.2", "eslint": "^8.37.0", From 6c098042b8fde27fe7a151f19ad5a592b301f61b Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 9 Sep 2024 14:54:51 -0400 Subject: [PATCH 5/7] Fix audit Signed-off-by: Andrew W. Harn --- package-lock.json | 105 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 93 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8e56143a..cf6963d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4912,6 +4912,21 @@ "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", "dev": true }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/axios": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/azure-devops-node-api": { "version": "11.2.0", "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-11.2.0.tgz", @@ -5833,6 +5848,17 @@ "node": ">=0.1.90" } }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/commander": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", @@ -6133,6 +6159,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", @@ -7537,6 +7571,25 @@ "deprecated": "flatten is deprecated in favor of utility frameworks such as lodash.", "dev": true }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/foreground-child": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz", @@ -7552,6 +7605,19 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", @@ -9976,9 +10042,9 @@ } }, "node_modules/micromatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz", - "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -9999,6 +10065,25 @@ "node": ">=4" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -12747,6 +12832,11 @@ "node": ">= 6" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -15640,15 +15730,6 @@ "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.53.0.tgz", "integrity": "sha512-XjFWbSPOM0EKIT2XhhYm3D3cx3nn3lshMUcWNy1eqefk+oqRuBq8unVb6BYIZqXy9lQZyeUl7eaBCOZWv+LcXQ==", "dev": true - }, - "packages/vsce/node_modules/axios": { - "version": "1.6.7", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.4", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } } } } From 7de02e25b52339776e83b38db443aac2dd522f2d Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 9 Sep 2024 15:26:01 -0400 Subject: [PATCH 6/7] Update changelogs Signed-off-by: Andrew W. Harn --- packages/cli/CHANGELOG.md | 4 ++++ packages/sdk/CHANGELOG.md | 4 ++++ packages/vsce/CHANGELOG.md | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index cb3fd6ab..a41d9d0a 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the IBM® CICS® Plug-in for Zowe CLI will be documented in this file. +## Recent Changes + +- BugFix: Updated dependencies for technical currency. [#142](https://github.com/zowe/cics-for-zowe-client/pull/142) + ## `6.0.0-next.202403042201` - V3 Breaking: Increased Node Engine to 18.12.0 diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 5ddb71b5..4658c5a9 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the IBM® CICS® Plug-in for Zowe CLI will be documented in this file. +## Recent Changes + +- BugFix: Updated dependencies for technical currency. [#142](https://github.com/zowe/cics-for-zowe-client/pull/142) + ## `6.0.0-next.202403042201` - V3 Breaking: Increased Node Engine to 18.12.0 diff --git a/packages/vsce/CHANGELOG.md b/packages/vsce/CHANGELOG.md index 8d112b19..3f8d73e9 100644 --- a/packages/vsce/CHANGELOG.md +++ b/packages/vsce/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the "cics-extension-for-zowe" extension will be documented in this file. +## Recent Changes + +- BugFix: Updated dependencies for technical currency. [#142](https://github.com/zowe/cics-for-zowe-client/pull/142) + ## `6.0.0-next.202408011822` - Renamed the VSCE to `IBM CICS for Zowe Explorer`. [#129](https://github.com/zowe/cics-for-zowe-client/issues/129) From 379dc5098d80d6798bb4ce08ac9b6623e9bb8638 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 9 Sep 2024 16:43:42 -0400 Subject: [PATCH 7/7] Restore cron Signed-off-by: Andrew W. Harn --- .github/workflows/audit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 503ec008..8068af28 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -8,8 +8,8 @@ on: - next paths: - packages/** - # schedule: - # - cron: '0 10 * * *' + schedule: + - cron: '0 10 * * *' jobs: audit: