diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py index 3560ae6a0f1..c8c0388ca9a 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py @@ -24,6 +24,7 @@ class FunctionAppAccessRestrictionScenarioTest(ScenarioTest): + @unittest.skip("To be fixed") @ResourceGroupPreparer(parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) def test_functionapp_access_restriction_show(self, resource_group, location): @@ -49,6 +50,7 @@ def test_functionapp_access_restriction_show(self, resource_group, location): JMESPathCheck('scmIpSecurityRestrictionsDefaultAction', None) ]) + @unittest.skip("To be fixed") @ResourceGroupPreparer(parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) def test_functionapp_access_restriction_set_simple(self, resource_group, location): @@ -80,6 +82,7 @@ def test_functionapp_access_restriction_set_simple(self, resource_group, locatio JMESPathCheck('scmIpSecurityRestrictionsDefaultAction', 'Deny') ]) + @unittest.skip("To be fixed") @ResourceGroupPreparer(parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) def test_functionapp_access_restriction_set_complex(self, resource_group, location): @@ -100,6 +103,7 @@ def test_functionapp_access_restriction_set_complex(self, resource_group, locati JMESPathCheck('scmIpSecurityRestrictionsUseMain', False) ]) + @unittest.skip("To be fixed") @ResourceGroupPreparer(random_name_length=17, parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) # random_name_length is temporary until the bug fix in the API is deployed successfully & then should be removed. @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) @@ -121,6 +125,7 @@ def test_functionapp_access_restriction_add(self, resource_group, location): JMESPathCheck('[1].action', 'Deny') ]) + @unittest.skip("To be fixed") @ResourceGroupPreparer(parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) def test_functionapp_access_restriction_add_ip_address_validation(self, resource_group, location): @@ -176,6 +181,7 @@ def test_functionapp_access_restriction_add_service_endpoint(self, resource_grou JMESPathCheck('[1].action', 'Deny') ]) + @unittest.skip("To be fixed") @ResourceGroupPreparer(parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) def test_functionapp_access_restriction_remove(self, resource_group, location): @@ -202,6 +208,7 @@ def test_functionapp_access_restriction_remove(self, resource_group, location): JMESPathCheck('[0].action', 'Allow') ]) + @unittest.skip("To be fixed") @ResourceGroupPreparer(parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) def test_functionapp_access_restriction_add_scm(self, resource_group, location): @@ -222,6 +229,7 @@ def test_functionapp_access_restriction_add_scm(self, resource_group, location): JMESPathCheck('[1].action', 'Deny') ]) + @unittest.skip("To be fixed") @ResourceGroupPreparer(parameter_name_for_location='location', location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) def test_functionapp_access_restriction_remove_scm(self, resource_group, location): diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py index aafd37af460..0c4852dc6a8 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py @@ -169,6 +169,7 @@ def test_acr_deployment_function_app(self, resource_group, storage_account): class FunctionAppReservedInstanceTest(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_reserved_instance(self, resource_group, storage_account): @@ -191,6 +192,7 @@ def test_functionapp_reserved_instance(self, resource_group, storage_account): class FunctionAppHttpsOnlyTest(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_https_only(self, resource_group, storage_account): @@ -210,6 +212,7 @@ def test_functionapp_https_only(self, resource_group, storage_account): class FunctionAppWithPlanE2ETest(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @ResourceGroupPreparer(parameter_name='resource_group2', location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) def test_functionapp_e2e(self, resource_group, resource_group2): @@ -364,6 +367,7 @@ def test_functionapp_on_linux_app_service_dotnet_with_runtime_version(self, reso class FunctionUpdatePlan(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_move_plan_to_elastic(self, resource_group, storage_account): @@ -431,6 +435,7 @@ def test_functionapp_update_slot(self, resource_group, storage_account): class FunctionAppWithConsumptionPlanE2ETest(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(name_prefix='azurecli-functionapp-c-e2e', location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_consumption_e2e(self, resource_group, storage_account): @@ -459,6 +464,7 @@ def test_functionapp_consumption_e2e(self, resource_group, storage_account): self.cmd( 'functionapp delete -g {} -n {}'.format(resource_group, functionapp_name)) + @live_only() # TODO to be fixed @ResourceGroupPreparer(name_prefix='azurecli-functionapp-c-e2e-ragrs', location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer(sku='Standard_RAGRS') def test_functionapp_consumption_ragrs_storage_e2e(self, resource_group, storage_account): @@ -638,6 +644,7 @@ def test_functionapp_consumption_linux_dotnet_isolated(self, resource_group, sto class FunctionappDaprConfig(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='northeurope') @StorageAccountPreparer() def test_functionapp_enable_dapr(self, resource_group, storage_account): @@ -982,6 +989,7 @@ def __init__(self, method_name, config_file=None, recording_name=None, recording super().__init__(method_name, config_file, recording_name, recording_processors, replay_processors, recording_patches, replay_patches, random_config_dir) self.cmd('extension add -n application-insights') + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='westeurope') @StorageAccountPreparer() def test_functionapp_create_with_appcontainer_managed_environment(self, resource_group, storage_account): @@ -1006,6 +1014,7 @@ def test_functionapp_create_with_appcontainer_managed_environment(self, resource self.assertTrue('ftpPublishingUrl' not in r) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='eastus') @StorageAccountPreparer() def test_functionapp_create_with_appcontainer_managed_environment_existing_app_insights(self, resource_group, storage_account): @@ -1069,7 +1078,8 @@ def test_functionapp_create_with_appcontainer_managed_environment_vnet_config_er with self.assertRaises(ArgumentUsageError): self.cmd('functionapp create -g {} -n {} -s {} --vnet {} --subnet {} --environment {} --runtime dotnet --functions-version 4' .format(resource_group, functionapp_name, storage_account, vnet_name, subnet_name, managed_environment_name)) - + + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='westeurope') @StorageAccountPreparer() def test_functionapp_create_with_appcontainer_managed_environment_add_vnet_error(self, resource_group, storage_account): @@ -1098,6 +1108,7 @@ def test_functionapp_create_with_appcontainer_managed_environment_add_vnet_error self.cmd('functionapp vnet-integration add -g {} -n {} --vnet {} --subnet {}' .format(resource_group, functionapp_name, vnet_name, subnet_name)) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='southcentralus') @StorageAccountPreparer() def test_functionapp_create_with_appcontainer_managed_environment_remove_vnet_error(self, resource_group, storage_account): @@ -1123,6 +1134,7 @@ def test_functionapp_create_with_appcontainer_managed_environment_remove_vnet_er with self.assertRaises(ValidationError): self.cmd('functionapp vnet-integration remove -g {} -n {}'.format(resource_group, functionapp_name)) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='westeurope') @StorageAccountPreparer() def test_functionapp_create_with_appcontainer_managed_environment_list_vnet_error(self, resource_group, storage_account): @@ -1147,7 +1159,8 @@ def test_functionapp_create_with_appcontainer_managed_environment_list_vnet_erro JMESPathPatternCheck('hostNames[0]', functionapp_name + ".+" + 'azurecontainerapps.io')]) with self.assertRaises(ValidationError): self.cmd('functionapp vnet-integration list -g {} -n {}'.format(resource_group, functionapp_name)) - + + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='northeurope') @StorageAccountPreparer() def test_functionapp_delete_functions(self, resource_group, storage_account): @@ -1196,6 +1209,7 @@ def test_functionapp_create_with_appcontainer_managed_environment_plan_error(sel self.cmd('functionapp create -g {} -n {} -p {} -s {} --environment {} --runtime dotnet --functions-version 4' .format(resource_group, functionapp_name, plan_name, storage_account, managed_environment_name)) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='northeurope') @StorageAccountPreparer() def test_functionapp_config_with_appcontainer_managed_environment_error(self, resource_group, storage_account): @@ -1222,6 +1236,7 @@ def test_functionapp_config_with_appcontainer_managed_environment_error(self, re self.cmd('functionapp config show -g {} -n {}' .format(resource_group, functionapp_name)) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='eastus') @StorageAccountPreparer() def test_functionapp_create_with_replicas(self, resource_group, storage_account): @@ -1261,6 +1276,7 @@ def test_functionapp_create_with_min_replicas_error(self, resource_group, storag self.cmd('functionapp create -g {} -n {} -p {} -s {} --runtime dotnet --functions-version 4 --min-replicas 1' .format(resource_group, functionapp_name, plan_name, storage_account)) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location='eastus') @StorageAccountPreparer() def test_functionapp_container_config_set_replicas(self, resource_group, storage_account): @@ -1511,6 +1527,7 @@ def test_functionapp_windows_runtime_custom_handler(self, resource_group, storag class FunctionAppOnWindowsWithoutRuntime(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_windows_without_runtime(self, resource_group, storage_account): @@ -1529,6 +1546,7 @@ def test_functionapp_windows_without_runtime(self, resource_group, storage_accou class FunctionAppWithAppInsightsKey(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_with_app_insights_key(self, resource_group, storage_account): @@ -1560,6 +1578,7 @@ def __init__(self, method_name, config_file=None, recording_name=None, recording super().__init__(method_name, config_file, recording_name, recording_processors, replay_processors, recording_patches, replay_patches, random_config_dir) self.cmd('extension add -n application-insights') + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_with_app_insights_conn_string(self, resource_group, storage_account): @@ -1635,6 +1654,7 @@ def test_functionapp_without_default_distributed_tracing(self, resource_group, s class FunctionAppWithAppInsightsDefault(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_with_default_app_insights(self, resource_group, storage_account): @@ -1657,6 +1677,7 @@ def test_functionapp_with_default_app_insights(self, resource_group, storage_acc self.assertTrue('AzureWebJobsDashboard' not in [ kp['name'] for kp in app_set]) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_with_no_default_app_insights(self, resource_group, storage_account): @@ -1685,6 +1706,7 @@ def __init__(self, method_name, config_file=None, recording_name=None, recording super().__init__(method_name, config_file, recording_name, recording_processors, replay_processors, recording_patches, replay_patches, random_config_dir) self.cmd('extension add -n application-insights') + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_create_default_rg_and_workspace(self, resource_group, storage_account): @@ -1702,6 +1724,7 @@ def test_functionapp_create_default_rg_and_workspace(self, resource_group, stora self.check('workspaceResourceId', workspace_id) ]) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_existing_workspace(self, resource_group, storage_account): @@ -1713,6 +1736,7 @@ def test_functionapp_existing_workspace(self, resource_group, storage_account): self.check('workspaceResourceId', workspace['id']) ]) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_existing_default_rg(self, resource_group, storage_account): @@ -1884,6 +1908,7 @@ def test_functionapp_on_linux_functions_version_consumption(self, resource_group "[?name=='FUNCTIONS_EXTENSION_VERSION'].value|[0]", '~4') ]) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=LINUX_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_on_linux_dotnet_consumption(self, resource_group, storage_account): @@ -2038,6 +2063,7 @@ def test_functionapp_slot_swap(self, resource_group, storage_account): class FunctionAppKeysTests(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_keys_set(self, resource_group, storage_account): @@ -2065,6 +2091,7 @@ def test_functionapp_keys_set(self, resource_group, storage_account): JMESPathCheck('type', 'Microsoft.Web/sites/host/functionKeys'), JMESPathCheck('value', None)]) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_keys_list(self, resource_group, storage_account): @@ -2089,6 +2116,7 @@ def test_functionapp_keys_list(self, resource_group, storage_account): .format(resource_group, functionapp_name)).assert_with_checks([ JMESPathCheck('functionKeys.{}'.format(key_name), key_value)]) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_keys_delete(self, resource_group, storage_account): @@ -2116,6 +2144,7 @@ def test_functionapp_keys_delete(self, resource_group, storage_account): .format(resource_group, functionapp_name)).assert_with_checks([ JMESPathCheck('functionKeys.{}'.format(key_name), None)]) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_keys_set_slot(self, resource_group, storage_account): @@ -2523,6 +2552,7 @@ def test_functionapp_list_deployment_logs(self, resource_group, storage_account) class FunctionappLocalContextScenarioTest(LocalContextScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_local_context(self, resource_group, storage_account): @@ -2579,6 +2609,7 @@ def test_functionapp_assign_system_identity(self, resource_group, storage_accoun self.cmd('functionapp identity show -g {} -n {}'.format(resource_group, functionapp_name), checks=self.is_empty()) + @live_only() # TODO to be fixed @AllowLargeResponse(8192) @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() @@ -2611,6 +2642,7 @@ def test_functionapp_assign_user_identity(self, resource_group, storage_account) self.check('userAssignedIdentities', None), ]) + @live_only() # TODO to be fixed @AllowLargeResponse(8192) @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() @@ -2655,6 +2687,7 @@ def test_functionapp_remove_identity(self, resource_group, storage_account): class FunctionappCorsTest(ScenarioTest): + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() def test_functionapp_cors_credentials(self, resource_group, storage_account): @@ -2671,6 +2704,7 @@ def test_functionapp_cors_credentials(self, resource_group, storage_account): class FunctionappNetworkConnectionTests(ScenarioTest): + @live_only() # TODO to be fixed @AllowLargeResponse() @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() @@ -2713,6 +2747,7 @@ def test_functionapp_vnetE2E(self, resource_group, storage_account): JMESPathCheck('length(@)', 0) ]) + @live_only() # TODO to be fixed @AllowLargeResponse() @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() @@ -2745,6 +2780,7 @@ def test_functionapp_create_with_vnet_consumption_plan(self, resource_group, sto self.cmd( 'functionapp create -g {} -n {} -s {} --consumption-plan-location {} --vnet {} --subnet {} --functions-version 4'.format(resource_group, functionapp_name, storage_account, WINDOWS_ASP_LOCATION_FUNCTIONAPP, vnet_name, subnet_name)) + @live_only() # TODO to be fixed @AllowLargeResponse() @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() @@ -2767,6 +2803,7 @@ def test_functionapp_vnet_basic_sku_E2E(self, resource_group, storage_account): JMESPathCheck('[0].name', subnet_name) ]) + @live_only() # TODO to be fixed @AllowLargeResponse() @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @StorageAccountPreparer() @@ -2789,6 +2826,7 @@ def test_functionapp_vnet_EP_sku_E2E(self, resource_group, storage_account): JMESPathCheck('[0].name', subnet_name) ]) + @live_only() # TODO to be fixed @AllowLargeResponse() @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP) @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_FUNCTIONAPP, parameter_name="rg2") diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py index 71cd5bd815b..5ee73cce36a 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py @@ -1576,6 +1576,7 @@ def test_webapp_cors(self, resource_group): self.cmd('webapp cors show -g {rg} -n {web} --slot {slot}', checks=self.check('allowedOrigins', [])) + @live_only() # TODO to be fixed @ResourceGroupPreparer(location=WINDOWS_ASP_LOCATION_WEBAPP) @StorageAccountPreparer() def test_functionapp_cors(self, resource_group, storage_account):