From b734c57b3b81b3cad2f84951ee79c3a493504e32 Mon Sep 17 00:00:00 2001 From: hallvictoria <59299039+hallvictoria@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:09:23 -0500 Subject: [PATCH] test: removed skipping for docker tests (#1568) * removed skipping for docker tests * lint * revert extra fwpc retry --------- Co-authored-by: Victoria Hall --- tests/endtoend/test_eventhub_batch_functions.py | 14 -------------- tests/endtoend/test_generic_functions.py | 13 ------------- tests/endtoend/test_servicebus_functions.py | 7 ------- tests/endtoend/test_table_functions.py | 16 ---------------- 4 files changed, 50 deletions(-) diff --git a/tests/endtoend/test_eventhub_batch_functions.py b/tests/endtoend/test_eventhub_batch_functions.py index 5785de39..11cf4d38 100644 --- a/tests/endtoend/test_eventhub_batch_functions.py +++ b/tests/endtoend/test_eventhub_batch_functions.py @@ -3,20 +3,11 @@ import json import time from datetime import datetime -from unittest import skipIf from dateutil import parser from tests.utils import testutils -from tests.utils.constants import CONSUMPTION_DOCKER_TEST, DEDICATED_DOCKER_TEST -from azure_functions_worker.utils.common import is_envvar_true - -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Table functions which are used in the bindings in these tests" - " has a bug with the table extension 1.0.0. " - "https://github.com/Azure/azure-sdk-for-net/issues/33902.") class TestEventHubFunctions(testutils.WebHostTestCase): """Test EventHub Trigger and Output Bindings (cardinality: many). @@ -135,11 +126,6 @@ def test_eventhub_multiple_with_metadata(self): self.assertIsNotNone(sys_props['Offset']) -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Table functions which are used in the bindings has a bug with the" - " table extension 1.0.0. " - "https://github.com/Azure/azure-sdk-for-net/issues/33902.") class TestEventHubBatchFunctionsStein(testutils.WebHostTestCase): @classmethod diff --git a/tests/endtoend/test_generic_functions.py b/tests/endtoend/test_generic_functions.py index 46f83937..361b67f7 100644 --- a/tests/endtoend/test_generic_functions.py +++ b/tests/endtoend/test_generic_functions.py @@ -2,19 +2,10 @@ # Licensed under the MIT License. import time import typing -from unittest import skipIf from tests.utils import testutils -from tests.utils.constants import CONSUMPTION_DOCKER_TEST, DEDICATED_DOCKER_TEST -from azure_functions_worker.utils.common import is_envvar_true - -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Table functions which are used in the bindings in these tests" - " has a bug with the table extension 1.0.0. " - "https://github.com/Azure/azure-sdk-for-net/issues/33902.") class TestGenericFunctions(testutils.WebHostTestCase): """Test Generic Functions with implicit output enabled @@ -73,10 +64,6 @@ def check_log_return_types(self, host_out: typing.List[str]): self.assertFalse(errors_found) -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Table functions has a bug with the table extension 1.0.0." - "https://github.com/Azure/azure-sdk-for-net/issues/33902.") class TestGenericFunctionsStein(TestGenericFunctions): @classmethod diff --git a/tests/endtoend/test_servicebus_functions.py b/tests/endtoend/test_servicebus_functions.py index c8b69157..aaacd76d 100644 --- a/tests/endtoend/test_servicebus_functions.py +++ b/tests/endtoend/test_servicebus_functions.py @@ -2,17 +2,10 @@ # Licensed under the MIT License. import json import time -from unittest import skipIf from tests.utils import testutils -from tests.utils.constants import CONSUMPTION_DOCKER_TEST, DEDICATED_DOCKER_TEST -from azure_functions_worker.utils.common import is_envvar_true - -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Skipping SB tests till docker image is updated with host 4.33") class TestServiceBusFunctions(testutils.WebHostTestCase): @classmethod diff --git a/tests/endtoend/test_table_functions.py b/tests/endtoend/test_table_functions.py index c53d6e8d..d6e367bd 100644 --- a/tests/endtoend/test_table_functions.py +++ b/tests/endtoend/test_table_functions.py @@ -3,18 +3,10 @@ import json import pathlib import time -from unittest import skipIf from tests.utils import testutils -from tests.utils.constants import CONSUMPTION_DOCKER_TEST, DEDICATED_DOCKER_TEST -from azure_functions_worker.utils.common import is_envvar_true - -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Table functions has a bug with the table extension 1.0.0." - "https://github.com/Azure/azure-sdk-for-net/issues/33902.") class TestTableFunctions(testutils.WebHostTestCase): @classmethod @@ -50,10 +42,6 @@ def test_table_bindings(self): self.assertTrue(row_key_present) -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Table functions has a bug with the table extension 1.0.0." - "https://github.com/Azure/azure-sdk-for-net/issues/33902.") class TestTableFunctionsStein(testutils.WebHostTestCase): @classmethod @@ -76,10 +64,6 @@ def test_table_bindings(self): self.assertTrue(row_key_present) -@skipIf(is_envvar_true(DEDICATED_DOCKER_TEST) - or is_envvar_true(CONSUMPTION_DOCKER_TEST), - "Table functions has a bug with the table extension 1.0.0." - "https://github.com/Azure/azure-sdk-for-net/issues/33902.") class TestTableFunctionsGeneric(TestTableFunctionsStein): @classmethod