Skip to content

Commit b783a48

Browse files
ilidemilmazuel
authored andcommitted
Update tests for ResourceGraph additionalProperties change (#3268)
1 parent c51b6fd commit b783a48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

azure-mgmt-resourcegraph/tests/recordings/test_mgmt_resourcegraph.test_resources_malformed_query.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interactions:
1515
uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2018-09-01-preview
1616
response:
1717
body: {string: "{\"error\":{\"code\":\"InvalidQuery\",\"message\":\"Query validation
18-
error\",\"details\":[{\"code\":\"ParserFailure\",\"message\":\"Parser failure\",\"additionalProperties\":{\"line\":1,\"characterPositionInLine\":34,\"token\":\"<EOF>\",\"expectedToken\":\"\u0178\"}}]}}"}
18+
error\",\"details\":[{\"code\":\"ParserFailure\",\"message\":\"Parser failure\",\"line\":1,\"characterPositionInLine\":34,\"token\":\"<EOF>\",\"expectedToken\":\"\u0178\"}]}}"}
1919
headers:
2020
cache-control: [no-cache]
2121
content-length: ['232']

azure-mgmt-resourcegraph/tests/test_mgmt_resourcegraph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_resources_malformed_query(self):
172172
self.assertIsNotNone(error.details[0].code)
173173
self.assertIsNotNone(error.details[0].message)
174174
self.assertIsNotNone(error.details[0].additional_properties)
175-
self.assertGreater(len(error.details[0].additional_properties), 0)
175+
self.assertEqual(len(error.details[0].additional_properties), 4)
176176

177177

178178
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)