Skip to content

Commit

Permalink
Merge branch 'next' into tsoIssueCommand
Browse files Browse the repository at this point in the history
Signed-off-by: Jace Roell <[email protected]>
  • Loading branch information
jace-roell authored Sep 3, 2024
2 parents 2bb090f + 5a03a92 commit 8bf862e
Show file tree
Hide file tree
Showing 185 changed files with 1,169 additions and 4,540 deletions.
4 changes: 4 additions & 0 deletions __tests__/__packages__/cli-test-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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

## `8.0.0-next.202408271330`

- BugFix: Removed obsolete V1 `profiles` property from the parameters object returned by `mockHandlerParameters` method.

## `8.0.0-next.202408131445`

- Update: See `7.28.3` for details
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__packages__/cli-test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zowe/cli-test-utils",
"version": "8.0.0-next.202408191401",
"version": "8.0.0-next.202408301809",
"description": "Test utilities package for Zowe CLI plug-ins",
"author": "Zowe",
"license": "EPL-2.0",
Expand Down Expand Up @@ -43,7 +43,7 @@
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/uuid": "^10.0.0",
"@zowe/imperative": "8.0.0-next.202408191401"
"@zowe/imperative": "8.0.0-next.202408301809"
},
"peerDependencies": {
"@zowe/imperative": "^8.0.0-next"
Expand Down
4 changes: 1 addition & 3 deletions __tests__/__packages__/cli-test-utils/src/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import * as fs from "fs";
import { spawnSync, SpawnSyncReturns, ExecFileException } from "child_process";
import { ITestEnvironment } from "./environment/doc/response/ITestEnvironment";
import { CommandProfiles, ICommandDefinition, IHandlerParameters } from "@zowe/imperative";
import { ICommandDefinition, IHandlerParameters } from "@zowe/imperative";

/**
* Execute a CLI script
Expand Down Expand Up @@ -135,8 +135,6 @@ export function mockHandlerParameters(params: PartialHandlerParameters): IHandle
...params.arguments || {}
},
positionals: params.positionals || [],
// eslint-disable-next-line deprecation/deprecation
profiles: params.profiles || new CommandProfiles(new Map()),
definition: params.definition,
fullDefinition: params.definition,
stdin: process.stdin,
Expand Down
25 changes: 25 additions & 0 deletions __tests__/__src__/TestConstants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* This program and the accompanying materials are made available under the terms of the
* Eclipse Public License v2.0 which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-v20.html
*
* SPDX-License-Identifier: EPL-2.0
*
* Copyright Contributors to the Zowe Project.
*
*/

// Some test constants that are needed by multiple packages for unit tests

// Mocked profile options to be added to args
export const UNIT_TEST_ZOSMF_PROF_OPTS = {
host: "somewhere.com",
port: "43443",
user: "someone",
password: "somesecret"
};

export const UNIT_TEST_TSO_PROF_OPTS = {
password: "fake",
account: "fake"
};
55 changes: 0 additions & 55 deletions __tests__/__src__/mocks/ZosmfProfileMock.ts

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "8.0.0-next.202408191401",
"version": "8.0.0-next.202408301809",
"command": {
"publish": {
"ignoreChanges": [
Expand Down
Loading

0 comments on commit 8bf862e

Please sign in to comment.