-
Notifications
You must be signed in to change notification settings - Fork 27
Fix merging of profile properties in ProfileInfo.createSession
#1010
Conversation
Signed-off-by: Timothy Johnson <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1010 +/- ##
==========================================
- Coverage 89.77% 89.76% -0.01%
==========================================
Files 211 211
Lines 11536 11538 +2
Branches 2586 2587 +1
==========================================
+ Hits 10356 10357 +1
- Misses 1180 1181 +1
☔ View full report in Codecov by Sentry. |
SonarCloud Quality Gate failed. 0 Bugs 87.5% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
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.
Tested and LGTM, thanks @t1m0thyj
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! 😋
Release succeeded for the The following packages have been published:
Powered by Octorelease 🚀 |
What It Does
Fixes #1008 so that user and password takes precedence over tokenValue when both are defined in profile properties.
How to Test
ProfileInfo.createSession
(using a test script like the one below) and verify that only user/password are present in the session.Review Checklist
I certify that I have:
Additional Comments
There is logic in
ConnectionPropsForSessCfg.resolveSessCfgProps
to conditionally add either user/password or tokenValue to the session. But this logic only runs when user, password, and tokenValue are passed incmdArgs
instead of thesessCfg
object. The fix implemented in this PR is consistent with how Zowe CLI command handlers resolve the properties - for example the ZosFilesBaseHandler.