Merge pull request #3669 from Azure/bump-azdev

bump azdev
This commit is contained in:
Maitiú Ó Ciaráin 2024-07-08 14:57:04 +02:00 коммит произвёл GitHub
Родитель b9400c448e 25a91572f9
Коммит 354dbcb7b5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 20 добавлений и 20 удалений

Просмотреть файл

@ -174,8 +174,8 @@ test_validate_cidr_data = [
test_validate_cidr_data,
ids=[i[0] for i in test_validate_cidr_data]
)
@ patch('azext_aro._dynamic_validators.get_subnet')
@ patch('azext_aro._dynamic_validators.parse_resource_id')
@patch('azext_aro._dynamic_validators.get_subnet')
@patch('azext_aro._dynamic_validators.parse_resource_id')
def test_validate_cidr(
# Mocked functions:
parse_resource_id_mock, get_subnet_mock,
@ -305,10 +305,10 @@ test_validate_subnets_data = [
test_validate_subnets_data,
ids=[i[0] for i in test_validate_subnets_data]
)
@ patch('azext_aro._dynamic_validators.get_subnet')
@ patch('azext_aro._dynamic_validators.get_mgmt_service_client')
@ patch('azext_aro._dynamic_validators.parse_resource_id')
@ patch('azext_aro._dynamic_validators.is_valid_resource_id')
@patch('azext_aro._dynamic_validators.get_subnet')
@patch('azext_aro._dynamic_validators.get_mgmt_service_client')
@patch('azext_aro._dynamic_validators.parse_resource_id')
@patch('azext_aro._dynamic_validators.is_valid_resource_id')
def test_validate_subnets(
# Mocked functions:
is_valid_resource_id_mock, parse_resource_id_mock, get_mgmt_service_client_mock, get_subnet_mock,
@ -400,10 +400,10 @@ test_validate_vnets_data = [
test_validate_vnets_data,
ids=[i[0] for i in test_validate_vnets_data]
)
@ patch('azext_aro._dynamic_validators.get_vnet')
@ patch('azext_aro._dynamic_validators.get_mgmt_service_client')
@ patch('azext_aro._dynamic_validators.parse_resource_id')
@ patch('azext_aro._dynamic_validators.is_valid_resource_id')
@patch('azext_aro._dynamic_validators.get_vnet')
@patch('azext_aro._dynamic_validators.get_mgmt_service_client')
@patch('azext_aro._dynamic_validators.parse_resource_id')
@patch('azext_aro._dynamic_validators.is_valid_resource_id')
def test_validate_vnets(
# Mocked functions:
is_valid_resource_id_mock, parse_resource_id_mock, get_mgmt_service_client_mock, get_vnet_mock,
@ -473,8 +473,8 @@ test_validate_resource_data = [
test_validate_resource_data,
ids=[i[0] for i in test_validate_resource_data]
)
@ patch('azext_aro._dynamic_validators.has_role_assignment_on_resource')
@ patch('azext_aro._dynamic_validators.parse_resource_id')
@patch('azext_aro._dynamic_validators.has_role_assignment_on_resource')
@patch('azext_aro._dynamic_validators.parse_resource_id')
def test_validate_resources(
# Mocked functions:
parse_resource_id_mock, has_role_assignment_on_resource_mock,
@ -523,7 +523,7 @@ test_validate_version_data = [
test_validate_version_data,
ids=[i[0] for i in test_validate_version_data]
)
@ patch('azext_aro.custom.aro_get_versions')
@patch('azext_aro.custom.aro_get_versions')
def test_validate_version(
# Mocked Functions

Просмотреть файл

@ -508,15 +508,15 @@ test_validate_subnet_data = [
]
@ pytest.mark.parametrize(
@pytest.mark.parametrize(
"test_description, namespace, key, is_valid_resource_id_mock_return_value, parse_resource_id_mock_return_value, get_subscription_id_mock_return_value, get_network_vnet_subnet_show_mock_return_value, cmd, expected_exception",
test_validate_subnet_data,
ids=[i[0] for i in test_validate_subnet_data]
)
@ patch('azext_aro._validators.subnet_show')
@ patch('azext_aro._validators.get_subscription_id')
@ patch('azext_aro._validators.parse_resource_id')
@ patch('azext_aro._validators.is_valid_resource_id')
@patch('azext_aro._validators.subnet_show')
@patch('azext_aro._validators.get_subscription_id')
@patch('azext_aro._validators.parse_resource_id')
@patch('azext_aro._validators.is_valid_resource_id')
def test_validate_subnet(
# Mocked functions:
is_valid_resource_id_mock, parse_resource_id_mock, get_subscription_id_mock, get_network_vnet_subnet_show_mock,
@ -668,7 +668,7 @@ test_validate_vnet_resource_group_name_data = [
)
def test_validate_vnet_resource_group_name(test_description, namespace, expected_namespace_vnet_resource_group_name):
validate_vnet_resource_group_name(namespace)
assert(namespace.vnet_resource_group_name ==
assert (namespace.vnet_resource_group_name ==
expected_namespace_vnet_resource_group_name)

Просмотреть файл

@ -1,5 +1,5 @@
autopep8==1.6.0
azdev==0.1.37
azdev==0.1.71
azure-mgmt-loganalytics==0.2.0
colorama==0.4.5
ruamel.yaml==0.17.21