-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CredScan Reports - clearing noise related to "scope" in request bodies #14954
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
Conversation
Co-authored-by: Jeremy Meng <[email protected]>
…to harshan/recorder/filter-scope
…rshaNalluru/azure-sdk-for-js into harshan/recorder/filter-scope
…ported in nock with multiple transforms
applyRequestBodyTransformations for browserapplyRequestBodyTransformations for browser
applyRequestBodyTransformations for browserapplyRequestBodyTransformations for browser
applyRequestBodyTransformations for browserapplyRequestBodyTransformations for browser
applyRequestBodyTransformations for browser| } else { | ||
| // TODO: Browser side - not needed right now since the browser tests are not using the new identity with msal | ||
| console.log("This feature is not yet supported in the browser"); | ||
| } else if (runtime === "browser" && typeof fixture !== "string") { |
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.
Add tests
| // This class overrides requests' 'open', 'send' and 'onreadystatechange' functions, adding our own code to them to deal with requests | ||
| export class NiseRecorder extends BaseRecorder { | ||
| private recordings: any[] = []; | ||
| private recordings: { [key: string]: unknown }[] = []; |
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.
nit: Record<string, unknown>?
…to harshan/recorder/filter-scope
…to harshan/recorder/filter-scope
…to harshan/recorder/filter-scope
9cde294 to
b3b00dd
Compare
…to harshan/recorder/filter-scope
jeremymeng
left a comment
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 a lot for the hard work!
|
Hello @HarshaNalluru! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Fix path at line 1557 (Azure#14954)
CredScan Reports - clearing noise related to "scope" in request bodies
...& Extending
applyRequestBodyTransformationsfor browserrequestBodyTransformationsfrom #14897 to handle browser tests as well."https://sanitized/"requestBodyTransformationsfrom the setup, users won't be able to pass. The reason being, Nock doesn't support multiple.filteringRequestBodypatches in the recordings. The best alternative would be to migrate to JSON recordings for node tests.Updates after #14897