-
Notifications
You must be signed in to change notification settings - Fork 85
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
Remove the 'zowe profiles' command group #2013
Conversation
…neratedCommands Remove call to CliProfileManager.initialize from Imperative.init. Remove BasicProfileManager.initialize. Remove AbstractProfileManager.createProfileTypeDirectory Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
…r.credentials Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
…fileCommands Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
…etPassword Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Andrew W. Harn <[email protected]>
Signed-off-by: Andrew W. Harn <[email protected]>
Signed-off-by: Andrew W. Harn <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Regarding the failure of the codecov check: All of the identified 'failures' are related to new code that was added to properly pass system test failures. So, clearly that code is being tested. Those tests are just not being counted as part of the code coverage metric. Further, these updates address fixes related to the new error format. Our new error format is not the objective of this pull request. For these reasons, I feel justified in not addressing the failure of the codecov check in this Pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM so far! 😋
I'm still missing about 20 files to review, but I should probably provide feedback now and then continue with the rest 😋
packages/cli/__tests__/auth/__system__/__scripts__/exitOnFailure.sh
Outdated
Show resolved
Hide resolved
packages/core/__tests__/utils/__integration__/__scripts__/exitOnFailure.sh
Outdated
Show resolved
Hide resolved
...ve/__tests__/__integration__/cmd/__tests__/integration/cli/auth/__scripts__/exitOnFailure.sh
Outdated
Show resolved
Hide resolved
...md/__tests__/integration/cli/profiles/__scripts__/profiles/banana_profile_and_specify_cli.sh
Outdated
Show resolved
Hide resolved
.../__integration__/cli/config/schema/cli.imperative-test-cli.config.schema.integration.test.ts
Show resolved
Hide resolved
packages/imperative/src/imperative/__tests__/plugins/cmd/install/install.handler.unit.test.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gejohnston and @awharn for all your work on this! Appreciate the improvements to our tests that were made along the way like better error handling in Bash scripts and reducing usage of snapshots 🙂 Left a few comments
Response From Service | ||
Error: Unknown arguments: foo-bar, fooBar | ||
|
||
Diagnostic Information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems odd to me to show the "Unknown arguments" error in the "Response From Service" category. There is no response from the service if client-side validation fails before a request is issued. And the error message is duplicated in the "Diagnostic Information" below. Is this an intended behavior of the new error formatting in v3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error format handling typically takes properties from a REST response (or an imperative error) and places them under the most appropriate titles. When we never get to the remote service, values are filled in with the available information.
In the case of the zos-tso command run in this test, here is the output from running the same command interactively:
-> zowe zos-tso start as --foo-bar
Unable to perform this operation due to the following problem.
Unknown arguments: foo-bar, fooBar
Command failed due to improper syntax
Command entered: "zos-tso start as --foo-bar"
Available commands are "address-space".
Use "zowe zos-tso start --help" to view groups, commands, and options.
Response From Service
Error: Unknown arguments: foo-bar, fooBar
Diagnostic Information
Unknown arguments: foo-bar, fooBar
I feel that the objectives of this PR to remove V1 profile definitions (and fix the inability of system test scripts to properly detect newly formatted errors) are being met. I think that additional changes should be handled outside this PR.
It might be valid to open an issue about how the zos-tso command group prepares its error message content (or how the error formatting logic choses to display that content).
It might be informative to run this same command in a V2 installation with old error formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the output of the command in the old error format:
$ zowe zos-tso start as --foo-bar
Command Error:
Unknown arguments: foo-bar, fooBar
Command failed due to improper syntax
Command entered: "zos-tso start as --foo-bar"
Available commands are "address-space".
Use "zowe zos-tso start --help" to view groups, commands, and options.
Error Details:
Unknown arguments: foo-bar, fooBar
...nfig/convert-profiles/cli.imperative-test-cli.config.convert-profiles.integration.subtest.ts
Outdated
Show resolved
Hide resolved
..._/__integration__/cmd/__tests__/integration/cli/auth/__scripts__/auth_login_cmd_line_cert.sh
Outdated
Show resolved
Hide resolved
packages/cli/__tests__/zostso/__system__/stop/cli.zos-tso.stop.address-space.system.test.ts
Show resolved
Hide resolved
packages/cli/__tests__/zostso/__system__/stop/cli.zos-tso.stop.address-space.system.test.ts
Show resolved
Hide resolved
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 😋
Thanks for reusing the exitOnFailure.sh
script. It must've been painful to get the right number of ../
, so thank you! 😋
Also, thanks for adding descriptions to most/all variables in our test .sh
scripts 😋
I think the only thing left to do is the very small change to the .sh
script that Timothy suggested (to use the baseCertFile
required parameter) 😋
That being said, I do think this PR is ready to be merged since most/all system test worked the last time they ran (internally).
If possible, I would like for this PR to be merged and published on it's own.
That way Zowe Explorer can test with this individual version, unless we think the master
update and the imperative flattening should be part of the ZE tests around zowe profiles removal.
packages/cli/__tests__/zostso/__system__/stop/cli.zos-tso.stop.address-space.system.test.ts
Show resolved
Hide resolved
packages/cli/__tests__/zostso/__system__/stop/cli.zos-tso.stop.address-space.system.test.ts
Show resolved
Hide resolved
..._/__integration__/cmd/__tests__/integration/cli/auth/__scripts__/auth_login_cmd_line_cert.sh
Outdated
Show resolved
Hide resolved
Signed-off-by: Gene Johnston <[email protected]>
Signed-off-by: Gene Johnston <[email protected]>
Quality Gate failedFailed conditions 19.7% Coverage on New Code (required ≥ 80%) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing Timothy's comments.
Re-approving! LGTM! 😋
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks @gejohnston and @awharn for your work on this PR!
Signed-off-by: Gene Johnston <[email protected]>
Release failed for the
Check the workflow run for more error details. Powered by Octorelease 🚀 |
1 similar comment
Release failed for the
Check the workflow run for more error details. Powered by Octorelease 🚀 |
This should be fixed by the following PR: |
What It Does
This PR removes the command definitions for the
zowe profiles
command group. Thus, end-users will no longer be able to run any command from theprofiles
command group. It also removes the initialization of the profiles directory that previously occurred in the Imperative.init() function.The majority of the changes in this PR come from re-implementing all automated tests that created a V1 profile in order to perform a desired operation.
This PR also fixes numerous system tests that failed due to changes to the Zowe error message format.
How to Test
profiles
command, and see that zowe tells you that such a command does not exist. For example:Review Checklist
I certify that I have:
Additional Comments