Skip to content

Commit

Permalink
Merge pull request #3669 from Azure/bump-azdev
Browse files Browse the repository at this point in the history
bump azdev
  • Loading branch information
mociarain authored Jul 8, 2024
2 parents b9400c4 + 25a9157 commit 354dbcb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def test_can_do_action(
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,
Expand Down Expand Up @@ -305,10 +305,10 @@ def test_validate_cidr(
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,
Expand Down Expand Up @@ -400,10 +400,10 @@ def test_validate_subnets(
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,
Expand Down Expand Up @@ -473,8 +473,8 @@ def test_validate_vnets(
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,
Expand Down Expand Up @@ -523,7 +523,7 @@ def test_validate_resources(
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
Expand Down
12 changes: 6 additions & 6 deletions python/az/aro/azext_aro/tests/latest/unit/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,15 +508,15 @@ def test_validate_pull_secret(test_description, namespace, expected_exception):
]


@ 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,
Expand Down Expand Up @@ -668,7 +668,7 @@ def test_validate_visibility(test_description, key, namespace, expected_exceptio
)
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)


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 354dbcb

Please sign in to comment.