diff --git a/azure-mgmt-resourcegraph/tests/recordings/test_mgmt_resourcegraph.test_resources_malformed_query.yaml b/azure-mgmt-resourcegraph/tests/recordings/test_mgmt_resourcegraph.test_resources_malformed_query.yaml index 2518c93555f1..135e7af84eeb 100644 --- a/azure-mgmt-resourcegraph/tests/recordings/test_mgmt_resourcegraph.test_resources_malformed_query.yaml +++ b/azure-mgmt-resourcegraph/tests/recordings/test_mgmt_resourcegraph.test_resources_malformed_query.yaml @@ -15,7 +15,7 @@ interactions: uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2018-09-01-preview response: body: {string: "{\"error\":{\"code\":\"InvalidQuery\",\"message\":\"Query validation - error\",\"details\":[{\"code\":\"ParserFailure\",\"message\":\"Parser failure\",\"additionalProperties\":{\"line\":1,\"characterPositionInLine\":34,\"token\":\"\",\"expectedToken\":\"\u0178\"}}]}}"} + error\",\"details\":[{\"code\":\"ParserFailure\",\"message\":\"Parser failure\",\"line\":1,\"characterPositionInLine\":34,\"token\":\"\",\"expectedToken\":\"\u0178\"}]}}"} headers: cache-control: [no-cache] content-length: ['232'] diff --git a/azure-mgmt-resourcegraph/tests/test_mgmt_resourcegraph.py b/azure-mgmt-resourcegraph/tests/test_mgmt_resourcegraph.py index 5d6c58c96487..d62f3d00f7b6 100644 --- a/azure-mgmt-resourcegraph/tests/test_mgmt_resourcegraph.py +++ b/azure-mgmt-resourcegraph/tests/test_mgmt_resourcegraph.py @@ -172,7 +172,7 @@ def test_resources_malformed_query(self): self.assertIsNotNone(error.details[0].code) self.assertIsNotNone(error.details[0].message) self.assertIsNotNone(error.details[0].additional_properties) - self.assertGreater(len(error.details[0].additional_properties), 0) + self.assertEqual(len(error.details[0].additional_properties), 4) #------------------------------------------------------------------------------