Skip to content

Commit 90d4543

Browse files
Copilotraosuhas
andcommitted
Update existing test file instead of creating new one for managedByExtended
Co-authored-by: raosuhas <11067581+raosuhas@users.noreply.github.com>
1 parent be580a7 commit 90d4543

3 files changed

Lines changed: 7 additions & 292 deletions

File tree

packages/rulesets/src/native/tests/migrated-arm-rule-tests.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ describe("IndividualAzureTests", () => {
2121
assertValidationRuleCount(messages, ruleName, 1)
2222
})
2323

24-
test("body top level resource with managedByExtended should pass", async () => {
25-
const fileNames = ["body-top-level-properties-managedByExtended.json"]
26-
const ruleName = "BodyTopLevelProperties"
27-
const messages: LintResultMessage[] = await collectTestMessagesFromValidator(fileNames, OpenApiTypes.arm, ruleName)
28-
assertValidationRuleCount(messages, ruleName, 0)
29-
})
30-
3124
test("tracked resource must have patch", async () => {
3225
const fileNames = ["armResource/trackedResourceNoPatch.json", "armResource/trackedResourceCommon.json"]
3326
const ruleName = "TrackedResourcePatchOperation"

packages/rulesets/src/native/tests/resources/body-top-level-properties-managedByExtended.json

Lines changed: 0 additions & 285 deletions
This file was deleted.

packages/rulesets/src/native/tests/resources/body-top-level-properties-real-swagger.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@
140140
"type": "string",
141141
"description": "The escaped name of the namespace."
142142
},
143+
"managedByExtended": {
144+
"type": "array",
145+
"items": {
146+
"type": "string"
147+
},
148+
"description": "The fully qualified resource IDs of the resources that manage this resource"
149+
},
143150
"classification": {
144151
"$ref": "#/definitions/NamespaceClassification",
145152
"description": "Kind of namespace"

0 commit comments

Comments
 (0)