Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Merge Next into Master #48

Merged
merged 75 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
f19f076
apis to api
Joe-Winchester Aug 3, 2020
4f8314e
Merge branch 'master' into master
zFernand0 Nov 19, 2020
af5015c
changes for apiml
zFernand0 Mar 11, 2021
3db6d8c
merge master
zFernand0 Mar 11, 2021
6243c15
handle tokens and more
zFernand0 Mar 11, 2021
0268e3c
back to apis for testing
zFernand0 Mar 11, 2021
aecf240
remove code duplication
zFernand0 Apr 7, 2021
4595283
Publish a next version and update snapshots
zFernand0 Apr 7, 2021
8ad092c
lower conditionalCoverate targets
zFernand0 Apr 8, 2021
3865ace
remove required fields from ims profile
zFernand0 Apr 9, 2021
3ed60b1
update spanshot
zFernand0 Apr 9, 2021
0af6ac8
forgot to update snapshots
zFernand0 Apr 13, 2021
4badd90
Updating dependencies [ci skip]
zowe-robot Apr 13, 2021
6e80ce6
Bump version to 2.0.1-next.202104131210 [ci skip]
zowe-robot Apr 13, 2021
d3cb448
Updating dependencies [ci skip]
zowe-robot Apr 22, 2021
758d111
Bump version to 3.0.0-next.202104221935 [ci skip]
zowe-robot Apr 22, 2021
b6dfc27
Remove CLI peer dependency
awharn Apr 23, 2021
cb7571b
Merge pull request #28 from zowe/remove-peer-deps-next
zFernand0 Apr 26, 2021
3b6e001
Bump version to 3.0.0-next.202104261402 [ci skip]
zowe-robot Apr 26, 2021
6accf27
Update Changelog [ci skip]
zowe-robot Apr 26, 2021
f38a68d
Remove deprecated performRest().
gejohnston May 21, 2021
0cb8252
Use the version of imperative with deprecated items.
gejohnston Jun 7, 2021
027ae55
Revert jest back to 24.5.0 to see if it works in pipeline.
gejohnston Jun 7, 2021
73189db
Try jest 27.0.4 compatible versions.
gejohnston Jun 7, 2021
90f3678
Try jest 24.9.0 compatible versions.
gejohnston Jun 7, 2021
f0c1133
Newer Jenkins agent. Use NodeJS 12.x.
gejohnston Jun 7, 2021
5296a8c
Merge pull request #29 from zowe/rm-deprecated-next
gejohnston Jun 7, 2021
08538c7
Updating dependencies [ci skip]
zowe-robot Jun 7, 2021
1fe1f32
Bump version to 3.0.0-next.202106071926 [ci skip]
zowe-robot Jun 7, 2021
1cc854f
Update Changelog [ci skip]
zowe-robot Jun 7, 2021
63a9830
Add apimlConnLookup to ims definition.
gejohnston Jun 25, 2021
8f4417d
Use imperative versions that have apimlConnLookup
gejohnston Jun 25, 2021
28cbdd9
No update of imperative devDependencies for next
gejohnston Jun 25, 2021
8162368
Merge pull request #30 from zowe/apimlConnLookup-next
gejohnston Jul 2, 2021
7918fd6
Bump version to 3.0.0-next.202107021833 [ci skip]
zowe-robot Jul 2, 2021
e68db80
Update Changelog [ci skip]
zowe-robot Jul 2, 2021
5633ac2
Shrinkwrap + Node:16.13.1 on Jenkinsfile + GHA
zFernand0 Jan 20, 2022
e417fe1
Update tests
zFernand0 Jan 20, 2022
28b3ca4
fix codeql errors
zFernand0 Jan 20, 2022
17947c4
update snapshot
zFernand0 Jan 20, 2022
7a633e5
Update from master
zFernand0 Jan 26, 2022
8b2b72f
Update workflows
zFernand0 Jan 26, 2022
ef25210
Merge pull request #38 from zowe/next-sw
zFernand0 Jan 26, 2022
ee30a0d
Bump version to 3.0.0-next.202201261957 [ci skip]
zowe-robot Jan 26, 2022
221bacb
Update Changelog [ci skip]
zowe-robot Jan 26, 2022
36fc684
Republish to prune dev dependencies from shrinkwrap
t1m0thyj Feb 2, 2022
1238a02
Update Imperative dependency
t1m0thyj Feb 7, 2022
e6bfb19
Merge pull request #41 from zowe/fix-shrinkwrap-next
t1m0thyj Feb 7, 2022
913e02c
Bump version to 3.0.0-next.202202071747 [ci skip]
zowe-robot Feb 7, 2022
0fbfe6f
Update Changelog [ci skip]
zowe-robot Feb 7, 2022
3a62d32
Fix daemon mode prompting, remove API call causing error
awharn Apr 5, 2022
c00069b
Fix typedoc
awharn Apr 5, 2022
fcdc01e
Merge pull request #42 from zowe/fix-daemon-mode
zFernand0 Apr 8, 2022
521e1d8
Bump version to 3.0.0-next.202204081444 [ci skip]
zowe-robot Apr 8, 2022
d1333cb
Update Changelog [ci skip]
zowe-robot Apr 8, 2022
6a7cdf0
Merge branch 'master' into next-update-moment
t1m0thyj Apr 12, 2022
4665fd4
Update Imperative and use cli-test-utils
t1m0thyj Apr 12, 2022
b46f9f4
Fix whitespace in snapshots
t1m0thyj Apr 13, 2022
81d5a52
Merge pull request #44 from zowe/next-update-moment
awharn Apr 13, 2022
3d7e073
Add missing reject-unauthorized option
awharn Apr 13, 2022
2268b30
Merge pull request #45 from zowe/add-reject-unauthorized
awharn Apr 13, 2022
ed57bb4
Bump version to 3.0.0-next.202204132012 [ci skip]
zowe-robot Apr 13, 2022
5cac2f7
Update Changelog [ci skip]
zowe-robot Apr 13, 2022
f5bda9d
Remove apimlConnLookup
awharn Apr 14, 2022
35a620b
Merge pull request #46 from zowe/remove-conn-lookup
awharn Apr 14, 2022
b6af1b5
Bump version to 3.0.0-next.202204141926 [ci skip]
zowe-robot Apr 14, 2022
beb49d8
Update Changelog [ci skip]
zowe-robot Apr 14, 2022
6f75d48
Merge pull request #24 from Joe-Winchester/master
awharn Apr 14, 2022
a293a97
Update the changelog
awharn Apr 14, 2022
c84406b
Update changelog again
awharn Apr 14, 2022
26e64d0
Merge pull request #47 from zowe/update-changelog
zFernand0 Apr 14, 2022
e2e37bc
Bump version to 3.0.0-next.202204142150 [ci skip]
zowe-robot Apr 14, 2022
c41a6fd
Update Changelog [ci skip]
zowe-robot Apr 14, 2022
766869b
Update protected branch list and workflows
t1m0thyj Apr 20, 2022
9a52dd8
Update dependencies and changelog
t1m0thyj Apr 20, 2022
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
2 changes: 2 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- master
- zowe-v1-lts
- next
# schedule:
# - cron: '0 10 * * *'

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- master
- zowe-v1-lts
- next

jobs:
changelog:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
push:
branches:
- master
- zowe-v1-lts
- next
pull_request:
branches:
- master
- zowe-v1-lts
- next
# schedule:
# - cron: '0 10 * * *'

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches-ignore:
- 'master'
- 'zowe-v1-lts'
- 'next'
pull_request:
branches:
- "**"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/zowe-cli-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
if: ${{ always() && steps.build.outcome == 'success' }}
run: npm run test:unit >> unit-tests.txt

- name: Unlock Keyring
id: unlock-keyring
if: ${{ always() && steps.build.outcome == 'success' && matrix.os == 'ubuntu-latest' }}
uses: t1m0thyj/unlock-keyring@master

- name: Integration Tests
id: integration
if: ${{ always() && steps.build.outcome == 'success' }}
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
registry=https://registry.npmjs.org/
@zowe:registry=https://zowe.jfrog.io/zowe/api/npm/npm-release/
@zowe:registry=https://zowe.jfrog.io/zowe/api/npm/npm-release/
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,47 @@

All notable changes to the IBM® IMS™ Plug-in for Zowe CLI will be documented in this file.

## Recent Changes

- Major: Updated for V2 compatibility. See the prerelease items below for more details.

## `3.0.0-next.202204142150`

- LTS Breaking: Updated the resource to use `api` instead of `apis`. [#23](https://github.com/zowe/zowe-cli-ims-plugin/issues/23)

## `3.0.0-next.202204141926`

- BugFix: Remove APIML Conn Lookup until the IMS definition for APIML is known.

## `3.0.0-next.202204132012`

- BugFix: Add missing `reject-unauthorized` flag.

## `3.0.0-next.202204081444`

- BugFix: Removed deprecated profiles API calls
- BugFix: Fixed prompting in daemon mode

## `3.0.0-next.202202071747`

- BugFix: Pruned dev dependencies from npm-shrinkwrap file.

## `3.0.0-next.202201261957`

- BugFix: Included an npm-shrinkwrap file to lock-down all transitive dependencies.

## `3.0.0-next.202107021833`

- Enhancement: Add apimlConnLookup properties to enable auto-config through APIML. A valid apiId must still be identified.

## `3.0.0-next.202106071926`

- **Breaking**: Removed the previously deprecated function ImsRestClient.performRest(). The function ImsRestClient.request() must now be used.

## `3.0.0-next.202104261402`

- Remove @zowe/cli peer dependency to better support NPM v7

## `2.0.4`

- BugFix: Updated `moment` dependency.
Expand Down
11 changes: 5 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ node('zowe-jenkins-agent') {

// Protected branch property definitions
pipeline.protectedBranches.addMap([
[name: "master", tag: "latest", aliasTags: ["zowe-v1-lts"], devDependencies: ["@zowe/imperative": "zowe-v1-lts"], level: SemverLevel.MINOR],
//[name: "master", tag: "latest", devDependencies: ["@zowe/imperative": "latest"]],
//[name: "zowe-v1-lts", tag: "zowe-v1-lts", devDependencies: ["@zowe/imperative": "zowe-v1-lts"], level: SemverLevel.MINOR]
[name: "lts-incremental", tag: "lts-incremental", devDependencies: ["@zowe/imperative" :"lts-incremental"], level: SemverLevel.PATCH]
[name: "master", tag: "latest", level: SemverLevel.MINOR, aliasTags: ["zowe-v2-lts", "next"], devDependencies: ["@zowe/cli": "zowe-v2-lts", "@zowe/cli-test-utils": "zowe-v2-lts", "@zowe/imperative": "zowe-v2-lts"]],
[name: "zowe-v1-lts", tag: "zowe-v1-lts", level: SemverLevel.PATCH, devDependencies: ["@zowe/imperative": "zowe-v1-lts"]]
//[name: "next", tag: "next", prerelease: "next", devDependencies: ["@zowe/cli": "next", "@zowe/cli-test-utils": "next", "@zowe/imperative": "next"]]
])

// Git configuration information
Expand Down Expand Up @@ -96,7 +95,7 @@ node('zowe-jenkins-agent') {
autoUpdateStability: false,
coberturaReportFile: '__tests__/__results__/unit/coverage/cobertura-coverage.xml',
classCoverageTargets: '85, 80, 75',
conditionalCoverageTargets: '70, 65, 60',
conditionalCoverageTargets: '70, 65, 50',
failUnhealthy: false,
failUnstable: false,
lineCoverageTargets: '80, 70, 50',
Expand All @@ -115,7 +114,7 @@ node('zowe-jenkins-agent') {
name: "Integration",
operation: {
def zoweVersion = sh(returnStdout: true, script: "echo \$(cat package.json | grep '@zowe/cli' | head -1 | awk -F: '{ print \$2 }' | sed 's/[\",]//g')").trim()
sh "npm i -g @zowe/cli@$zoweVersion --zowe:registry=${pipeline.registryConfig[0].url}"
sh "npm i -g \"@zowe/cli@$zoweVersion\" --zowe:registry=${pipeline.registryConfig[0].url}"
sh "npm run test:integration"
},
testResults: [dir: "${INTEGRATION_TEST_ROOT}/jest-stare", files: "index.html", name: "${PRODUCT_NAME} - Integration Test Report"],
Expand Down
13 changes: 6 additions & 7 deletions __tests__/__integration__/cli/imsprofile.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@
* *
*/

import { TestEnvironment } from "../../__src__/environment/TestEnvironment";
import { ITestEnvironment } from "../../__src__/environment/doc/response/ITestEnvironment";
import { runCliScript } from "../../__src__/TestUtils";
import { ITestEnvironment, TestEnvironment, isStderrEmptyForProfilesCommand, runCliScript } from "@zowe/cli-test-utils";
import { ITestPropertiesSchema } from "../../__src__/doc/ITestPropertiesSchema";

let testEnvironment: ITestEnvironment;
let testEnvironment: ITestEnvironment<ITestPropertiesSchema>;
describe("Creating an IMS profile", () => {

beforeAll(async () => {
testEnvironment = await TestEnvironment.setUp({
installPlugin: true,
skipProperties: true,
testName: "ims_profile"
testName: "ims_profile",
skipProperties: true
});
});

Expand All @@ -30,7 +29,7 @@ describe("Creating an IMS profile", () => {

it("should create an IMS profile successfully with fake connection details", () => {
const output = runCliScript(__dirname + "/__scripts__/create_ims_profile.sh", testEnvironment);
expect(output.stderr.toString()).toEqual("");
expect(isStderrEmptyForProfilesCommand(output.stderr)).toBeTruthy();
expect(output.status).toEqual(0);
expect(output.stdout.toString()).toContain("success");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exports[`ims query program should display the query program help 1`] = `
OPTIONS
-------

--attributes | --att (array)
--attributes | --att (array)

Specifies the application program output fields to return.

Expand All @@ -37,105 +37,112 @@ exports[`ims query program should display the query program help 1`] = `
LANG, LOCAL, MODEL, RESIDENT, SCHDTYPE, STATUS, TIMESTAMP, TRANSTAT,
EXPORTNEEDED, DB, RTC, TRAN, WORK

--status | --st (array)
--status | --st (array)

Selects programs for display that possess at least one of the specified program
statuses.

Allowed values: DB-NOTAVL, IOPREV, LOCK, NOTINIT, STOSCHD, TRACE

--route | --rt (array)
--route | --rt (array)

Specifies the routes to return.

IMS CONNECTION OPTIONS
----------------------

--host | -H (string)
--host | -H (string)

The IMS Operations API server host name.

--port | -P (number)
--port | -P (number)

The IMS Operations API server port.

--ims-connect-host | --ich (string)
--ims-connect-host | --ich (string)

The hostname of your instance of IMS Connect. This is typically the hostname of
the mainframe LPAR where IMS Connect is running.

--ims-connect-port | --icp (number)
--ims-connect-port | --icp (number)

The port of your instance of IMS Connect. This port can be found in your IMS
Connect configuration file on the mainframe.

--plex | -x (string)
--plex | -x (string)

The name of the IMS plex.

--user | -u (string)
--user | -u (string)

The web server user name where the IMS Operations API resides.

--password | --pass (string)
--password | --pass (string)

The web server user password where the IMS Operations API resides.

--base-path | --bp (string)
--base-path | --bp (string)

The base path for your API mediation layer instance. Specify this option to
prepend the base path to all z/OSMF resources when making REST requests. Do not
specify this option if you are not using an API mediation layer.

--protocol (string)

Specifies protocol (http or https).

Default value: https
Allowed values: http, https

--reject-unauthorized | --ru (boolean)

Reject self-signed certificates.

Default value: true

PROFILE OPTIONS
---------------

--ims-profile | --ims-p (string)
--ims-profile | --ims-p (string)

The name of a (ims) profile to load for this command execution.

--base-profile | --base-p (string)
--base-profile | --base-p (string)

The name of a (base) profile to load for this command execution.

BASE CONNECTION OPTIONS
-----------------------

--reject-unauthorized | --ru (boolean)

Reject self-signed certificates.

Default value: true

--token-type | --tt (string)
--token-type | --tt (string)

The type of token to get and use for the API. Omit this option to use the
default token type, which is provided by 'zowe auth login'.

--token-value | --tv (string)
--token-value | --tv (string)

The value of the token to pass to the API.

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

The file path to a certificate file to use for authentication

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

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

RESPONSE FORMAT OPTIONS
-----------------------

--response-format-filter | --rff (array)
--response-format-filter | --rff (array)

Filter (include) fields in the response. Accepts an array of field/property
names to include in the output response. You can filter JSON objects properties
OR table columns/fields. In addition, you can use this option in conjunction
with '--response-format-type' to reduce the output of a command to a single
field/property or a list of a single field/property.

--response-format-type | --rft (string)
--response-format-type | --rft (string)

The command response output format type. Must be one of the following:

Expand All @@ -155,27 +162,27 @@ exports[`ims query program should display the query program help 1`] = `

Allowed values: table, list, object, string

--response-format-header | --rfh (boolean)
--response-format-header | --rfh (boolean)

If \\"--response-format-type table\\" is specified, include the column headers in
the output.

GLOBAL OPTIONS
--------------

--response-format-json | --rfj (boolean)
--response-format-json | --rfj (boolean)

Produce JSON formatted data from a command

--help | -h (boolean)
--help | -h (boolean)

Display help text

--help-examples (boolean)
--help-examples (boolean)

Display examples for all the commands in a group

--help-web | --hw (boolean)
--help-web | --hw (boolean)

Display HTML help in browser

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,19 @@
*/

// Test environment will be populated in the "beforeAll"
import { ITestEnvironment } from "../../../../__src__/environment/doc/response/ITestEnvironment";
import { TestEnvironment } from "../../../../__src__/environment/TestEnvironment";
import { runCliScript } from "../../../../__src__/TestUtils";
import { ITestEnvironment, TestEnvironment, runCliScript } from "@zowe/cli-test-utils";
import { ITestPropertiesSchema } from "../../../../__src__/doc/ITestPropertiesSchema";

let TEST_ENVIRONMENT: ITestEnvironment;
let programName: string;
let TEST_ENVIRONMENT: ITestEnvironment<ITestPropertiesSchema>;
describe("ims query program", () => {

// Create the unique test environment
beforeAll(async () => {
TEST_ENVIRONMENT = await TestEnvironment.setUp({
testName: "query_program_command",
skipProperties: true,
installPlugin: true
installPlugin: true,
skipProperties: true
});
// programName = TEST_ENVIRONMENT.systemTestProperties.ims.programName;
programName = "test-program";
});

afterAll(async () => {
Expand Down
Loading