You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: defined snapshot reference content type and Json Property
* added snapshot reference content type to content type extensions
* updated the snapshot reference content type to include the charset
* Implementing snapshot references
* Fixed the behavior of an edge case and moved file to a better location in repo
* created unit tests for Snapshot References
* Removed unnecessary comments from tests
* removed extra comments and cleaned up code
* modified test and added set up for testing snapshot references
* adding more integration tests for snapshot references
* removed client and cancellation token from snapshot reference class and updated all affected code
* updated namespaces for all files and created parser class
* additional file to update namespace
* Modified the code to directly use the content type instead of copying
* Used object initializer pattern and passed in cancellationTokens to async methods
* fixed comment and updated TestContext format
* updated behavior to throw exception if snapshot name is null
* Moved the exception error messages from inline to ErrorMessages class and renamed parsing method to Parse()
* Added Request tracing and case for snapshot reference is registered for refresh by not called in select
* added test case to test adding snapshot reference to register but not part of select
* updating request tracing to only tracking use of snapshot references
* removing request tracing logic for Snapshot References count
* added comments and returning SnapshotReference type from Parse()
* removed second way of checking for snapshot references type and updated test cases
* removed redundant error message
* removed unnecessary code
* fixed whitespace issues and made error message clearer
* updating naming and removing old telemetry code
* updated namespace and directory to SnapshotReference
* Added new JsonFields type
* fixed error regarding same namespace and type
* Updated the Parse logic to handle all exceptions instead of LoadSnapshotData
* updated comments to method
* removed the update and reset snapshot reference request tracing methods as they were unnecessary
* removed requestTracing for SnapshotReference from refresh
* reverting previous change
* Made these keyvault integration tests more resilient
* Cleaning up code
* More nit changes
* updated request tracing for snapshot references in refresh
* making the key vault integration test more resilient
* correction to which test needed resilience
thrownewInvalidOperationException($"{nameof(snapshot.SnapshotComposition)} for the selected snapshot with name '{snapshot.Name}' must be 'key', found '{snapshot.SnapshotComposition}'.");
publicconststringSnapshotReferenceInvalidFormat="Invalid snapshot reference format for key '{0}' (label: '{1}').";
14
+
publicconststringSnapshotReferenceInvalidJsonProperty="Invalid snapshot reference format for key '{0}' (label: '{1}'). The '{2}' property must be a string value, but found {3}.";
15
+
publicconststringSnapshotReferencePropertyMissing="Invalid snapshot reference format for key '{0}' (label: '{1}'). The '{2}' property is required.";
16
+
publicconststringSnapshotInvalidComposition="{0} for the selected snapshot with name '{1}' must be 'key', found '{2}'.";
/// Provides parsing functionality for snapshot reference configuration settings.
12
+
/// </summary>
13
+
internalstaticclassSnapshotReferenceParser
14
+
{
15
+
/// <summary>
16
+
/// Parses a snapshot name from a configuration setting containing snapshot reference JSON.
17
+
/// </summary>
18
+
/// <param name="setting">The configuration setting containing the snapshot reference JSON.</param>
19
+
/// <returns>The snapshot reference containing a valid, non-empty snapshot name.</returns>
20
+
/// <exception cref="ArgumentNullException">Thrown when the setting is null.</exception>
21
+
/// <exception cref="FormatException">Thrown when the setting contains invalid JSON, invalid snapshot reference format, or empty/whitespace snapshot name.</exception>
0 commit comments