-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Marked empty/null actions as failed * replaced tabs with spaces * Updated spacing * Replaced tab with spaces * Updates based on feedback * Updated Validation Logic * WIP Added test cases for OneOrMoreRequiredAttribute * Added test case for EnumberableItemsNotNull Attribute * Feedback updates * Updates based on PR feedback * Sort 'using' lists and removed unapplicable data annotation * Removed xUnit reference now that we are using NUnit tests * removed Update-Snippets.ps1 changes and will rebase * Added null check and test for response before marking as failed * Updated exception to validation exception and corrected test * Changed back to argument null exception * Added response validation exception type * Update sdk/entra/Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.resx Adding a missing period Co-authored-by: Jesse Squire <[email protected]> * Added period * Added not null check for source field in payload * Changed source attribute to required * Adding necessary updates to merge with azure main * Added validation class * added logic to throw RequestValidationException * Replaced tabs with spaces * Added pull request template * Added existing text to PR template * Removed pr template * Reverted IsMsaPassThroughEnabled and ran scripts to pass build merge * Added comment * Updated changelog * added more context to changelog file * Revert changes * ODataType property in Request is now required * Add bug fix description to changelog * Corrected format * Add metrics to header * Reverting code that was changed by accident * passing inner exception to RequestValidationException * Modify version semantics * Revert version name * ChangeLog * Changes to metrics * Change the metrics format string to match the general guidelines for azure sdk * Sorted usings * ran the scripts * Updated Errors and added unit tests * Used newtonsoft to parse json and updated unit tests * Updated changelog * Updated error for invalid json characters * Updated exception identifier * Replaced data with sanitized values * Updated GUIDs, IP address and emails * Removed newtonsoft dependencies and used system.text.json instead * Removed newtonsoft dependency from AuthenticationEventDataTests * Changing access level on AuthEventResponseHandler * Change the which assembly is used for metrics * Ran script * Use type to look up assembly * Updated TestHelpers newtonsoft dependencies to stj * Removed usings * Using assembly name instead of assembly itself * Modify the tests to check only for value exsistence and not actual value * Adding using for JsonDocument and Used JsonObject * Changing metrics to a singleton pattern and modifing the tests to trim * Ran Scripts * Added braces * Reverted test project changes as newtonsoft linq is currently needed * removed unnecessary comment and line * replaced string quotes with string.empty * Simplified isJson method and reverted project change * Updated IsJson boolean method to ValidateJson void * Updated spacing * Updated Json error string for empty payload * Update error string * Added structure for Exception classes * Made classes internal * Update class to remove Old exceptions --------- Co-authored-by: Jesse Squire <[email protected]> Co-authored-by: Harman Dhunna🐳 <[email protected]> Co-authored-by: HarmanDhunna <[email protected]>
- Loading branch information
1 parent
ac80145
commit 41e5fd3
Showing
34 changed files
with
776 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 14 additions & 5 deletions
19
...Azure.WebJobs.Extensions.AuthenticationEvents/src/AuthenticationEventResource.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.