-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[KeyVault] - Add support for getRandomBytes operation #15955
Conversation
@@ -19,12 +19,13 @@ | |||
} | |||
}, | |||
"TestType": "node", | |||
"NodeTestVersion": "10.x", | |||
"ServiceVersion": ["7.0", "7.1"] | |||
"NodeTestVersion": "14.x", |
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.
Now that 7.3-preview is the latest, we need an entry for 7.2 as well
@@ -327,7 +332,7 @@ export const enum KnownKeyCurveNames { | |||
} | |||
|
|||
// @public | |||
export const enum KnownKeyOperations { | |||
export enum KnownKeyOperations { |
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 avoid const enum
whenever possible, not breaking as the net-effect is the same for TS and additive for JS. I plan to incrementally replace const enum
with enum
where I can. I did not have lot of success with preserveConstEnums
though
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.
Reviewed the .ts and .md files. LGTM
@@ -49,5 +50,26 @@ onVersions({ minVer: "7.2" }).describe( | |||
assert.equal(result.keyType, "oct-HSM"); | |||
await testClient.flushKey(keyName); | |||
}); | |||
|
|||
onVersions({ minVer: "7.3-preview" }).describe("getRandomBytes", () => { |
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.
Oh this is super cool!
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 actual change looks simple an clean!
What
getRandomBytes
methodWhy