diff --git a/azext_edge/tests/edge/orchestration/test_secretsync_int.py b/azext_edge/tests/edge/orchestration/test_secretsync_int.py index 672c3631..2ecaeca7 100644 --- a/azext_edge/tests/edge/orchestration/test_secretsync_int.py +++ b/azext_edge/tests/edge/orchestration/test_secretsync_int.py @@ -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 @@ -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 \ No newline at end of file + assert not difference_roles