-
Notifications
You must be signed in to change notification settings - Fork 9
Update: Readme/Integration test case with key alias extension use cases #15
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 416 416
Branches 59 59
=========================================
Hits 416 416 Continue to review full report at Codecov.
|
|
|
||
| // wrap using key alias | ||
| const wrapKeyParams = Object.assign({}, options); | ||
| wrapKeyParams.id = createKeyAliasParams.alias; |
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.
We should not be setting alias to id.. instead, we should be able to set alias in input and perform the key action
|
|
||
| // un-wrap using key alias | ||
| const unwrapKeyParams = Object.assign({}, options); | ||
| unwrapKeyParams.id = createKeyAliasParams.alias; |
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.
We should not be setting alias to id.. instead, we should be able to set alias in input and perform the key action
|
|
||
| // delete a key using key alias | ||
| const deleteKeyParams = Object.assign({}, options); | ||
| deleteKeyParams.id = createKeyAliasParams.alias; |
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.
We should not be setting alias to id.. instead, we should be able to set alias in input and perform the key action
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #15 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 416 416
Branches 59 59
=========================================
Hits 416 416 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|


W.r.t issue - https://github.ibm.com/kms/kmk/issues/945
Key alias extension is tested for wrap/unwrap/delete key via nodejs SDK and a sample code for the same is updated in README.md file.