Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
vilit1 committed Jan 8, 2025
1 parent 5c7ccf9 commit 798480f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions azext_edge/tests/edge/orchestration/test_secretsync_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ def secretsync_int_setup(settings, tracked_resources):
f"Cannot run secretsync tests without an instance and resource group. Current settings:\n {settings}"
)
if not any([settings.env.azext_edge_kv, settings.env.azext_edge_sp_object_id]):
raise AssertionError(
pytest.skip(
"Cannot run secretsync tests without a keyvault id or a object id. Object Id is needed to add "
"'Key Vault Secrets Officer' to a newly created key vault."
f"Current settings:\n {settings}"
)

kv_id = settings.env.azext_edge_kv
Expand Down Expand Up @@ -196,4 +195,4 @@ def _assert_role_assignments(
else:
# role could have been applied before - so just make sure nothing new was applied
difference_roles = set(expected_secretsync_roles).difference(set(initial_assignment_names))
assert not difference_roles
assert not difference_roles

0 comments on commit 798480f

Please sign in to comment.