Skip to content

Commit

Permalink
resource-manager, fix resource update call validation (#637)
Browse files Browse the repository at this point in the history
* fix resource update call validation

* changeset
  • Loading branch information
XiaofeiCao authored Jul 17, 2024
1 parent ce0160c commit 86b5841
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-peas-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@azure-tools/cadl-ranch-specs": patch
---

Fix body check on TrackedResource update.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ Scenarios.Azure_ResourceManager_Models_Resources_TopLevelTrackedResources_update
if (req.params.topLevelResourceName.toLowerCase() !== "top") {
throw new ValidationError("Unexpected top level resource name", "top", req.params.topLevelResourceName);
}
req.expect.bodyEquals({
properties: {
description: "valid2",
},
req.expect.deepEqual(req.body.properties, {
description: "valid2",
});
const resource = {
...validTopLevelResource,
Expand Down

0 comments on commit 86b5841

Please sign in to comment.