Skip to content

Commit

Permalink
fix test_005_interface::test_004
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Sep 6, 2024
1 parent fa423b8 commit 42841d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/api2/test_005_interface.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import sys
import time
import os
apifolder = os.getcwd()
sys.path.append(apifolder)

import errno

import pytest

from middlewared.service_exception import ValidationError, ValidationErrors
Expand Down Expand Up @@ -121,6 +118,8 @@ def test_002_configure_interface(request, ws_client, get_payload):
def test_003_recheck_ipvx(request):
assert int(call('tunable.get_sysctl', f'net.ipv6.conf.{interface}.autoconf')) == 0


@pytest.mark.skipif(ha, reason='Test valid on HA systems only')
def test_004_remove_critical_failover_group(request):
with pytest.raises(ValidationErrors) as ve:
call('interface.update', interface, {'failover_group': None, 'failover_critical': True})
Expand Down

0 comments on commit 42841d2

Please sign in to comment.