Skip to content

Commit

Permalink
[Automation] Fix the Uri format issue (Azure#36434)
Browse files Browse the repository at this point in the history
* test

* add 'UriString' replace 'Uri'

* update

* Update Azure.ResourceManager.Automation.netstandard2.0.cs

* update

* update

* update
  • Loading branch information
dvbb authored May 25, 2023
1 parent cba2fb0 commit 0b1c440
Show file tree
Hide file tree
Showing 7 changed files with 1,154 additions and 5 deletions.
2 changes: 2 additions & 0 deletions sdk/automation/Azure.ResourceManager.Automation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

### Bugs Fixed

- Fixed an issue that `System.UriFormatException` is thrown when `Uri` type field is empty during serialization of `AutomationWebhookData`.

### Other Changes

## 1.0.1 (2023-02-14)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ rename-rules:
no-property-type-replacement:
- JobNavigation

models-to-treat-empty-string-as-null:
- AutomationWebhookData

request-path-to-resource-name:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/objectDataTypes/{typeName}/fields: AutomationAccountResource
request-path-to-parent:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ public class AutomationManagementTestBase : ManagementRecordedTestBase<Automatio
protected AutomationManagementTestBase(bool isAsync, RecordedTestMode mode)
: base(isAsync, mode)
{
JsonPathSanitizers.Add("$..uri");
}

protected AutomationManagementTestBase(bool isAsync)
: base(isAsync)
{
JsonPathSanitizers.Add("$..uri");
}

[SetUp]
Expand Down
Loading

0 comments on commit 0b1c440

Please sign in to comment.