From 0c7c761711baba6a452d0aaa7ababbd101592311 Mon Sep 17 00:00:00 2001 From: AzureFunctionsPython Date: Tue, 26 Apr 2022 22:10:20 +0000 Subject: [PATCH 1/4] Update Python SDK Version to 1.11.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5fbde3296..e0c97c472 100644 --- a/setup.py +++ b/setup.py @@ -105,7 +105,7 @@ "grpcio~=1.43.0", "grpcio-tools~=1.43.0", "protobuf~=3.19.3", - "azure-functions==1.10.1" + 'azure-functions==1.11.0' ] EXTRA_REQUIRES = { From 5b256f953f831327d0baa3b08df7a6576b3bc323 Mon Sep 17 00:00:00 2001 From: gavin-aguiar <80794152+gavin-aguiar@users.noreply.github.com> Date: Tue, 26 Apr 2022 18:19:48 -0500 Subject: [PATCH 2/4] Updated quotes --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e0c97c472..95484f0ef 100644 --- a/setup.py +++ b/setup.py @@ -105,7 +105,7 @@ "grpcio~=1.43.0", "grpcio-tools~=1.43.0", "protobuf~=3.19.3", - 'azure-functions==1.11.0' + "azure-functions==1.11.0" ] EXTRA_REQUIRES = { From 44739658511775a7c1aa11b82480444b8b35f7fc Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 26 Apr 2022 17:15:16 -0700 Subject: [PATCH 3/4] Fix CosmosDB tests with for new system keys --- tests/endtoend/test_cosmosdb_functions.py | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/tests/endtoend/test_cosmosdb_functions.py b/tests/endtoend/test_cosmosdb_functions.py index 03cc5dfb0..de501d42f 100644 --- a/tests/endtoend/test_cosmosdb_functions.py +++ b/tests/endtoend/test_cosmosdb_functions.py @@ -35,10 +35,12 @@ def test_cosmosdb_trigger(self): response = r.json() response.pop('_metadata', None) - self.assertEqual( - response, - doc - ) + self.assertEqual(doc["id"], response["id"]) + self.assertEqual(doc["data"], response["data"]) + self.assertIsNotNone(response["_etag"]) + self.assertIsNotNone(response["_rid"]) + self.assertIsNotNone(response["_self"]) + self.assertIsNotNone(response["_ts"]) except AssertionError: if try_no == max_retries - 1: raise @@ -66,11 +68,13 @@ def test_cosmosdb_input(self): r = self.webhost.request('GET', 'cosmosdb_input') self.assertEqual(r.status_code, 200) response = r.json() - - self.assertEqual( - response, - doc - ) + + self.assertEqual(doc["id"], response["id"]) + self.assertEqual(doc["data"], response["data"]) + self.assertIsNotNone(response["_etag"]) + self.assertIsNotNone(response["_rid"]) + self.assertIsNotNone(response["_self"]) + self.assertIsNotNone(response["_ts"]) except AssertionError: if try_no == max_retries - 1: raise From f59a98b8cba1b849931f24e747e6353a84095515 Mon Sep 17 00:00:00 2001 From: Gavin Aguiar Date: Tue, 26 Apr 2022 19:58:03 -0500 Subject: [PATCH 4/4] Fixed flake8 test --- tests/endtoend/test_cosmosdb_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/endtoend/test_cosmosdb_functions.py b/tests/endtoend/test_cosmosdb_functions.py index de501d42f..78b2e0c4b 100644 --- a/tests/endtoend/test_cosmosdb_functions.py +++ b/tests/endtoend/test_cosmosdb_functions.py @@ -68,7 +68,7 @@ def test_cosmosdb_input(self): r = self.webhost.request('GET', 'cosmosdb_input') self.assertEqual(r.status_code, 200) response = r.json() - + self.assertEqual(doc["id"], response["id"]) self.assertEqual(doc["data"], response["data"]) self.assertIsNotNone(response["_etag"])