Skip to content

Commit

Permalink
update 0004_start_test.py - use re for bridge search
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Nov 19, 2024
1 parent 77d3ebe commit 0f931f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/functional_tests/0004_start_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import inspect
import tempfile
import os
import re


require_root = pytest.mark.require_root
Expand Down Expand Up @@ -97,7 +98,7 @@ def test_03_create_and_start_nobridge_vnet_jail(release, jail, invoke_cli, nobri
stdout, stderr = jail.run_command(['ifconfig'], jailed=False)

assert bool(stderr) is False, f'Ifconfig returned an error: {stderr}'
assert 'bridge' not in stdout, 'Unexpected bridge was created.'
assert re.search(r'bridge[0-9]', stdout) is None, 'Unexpected bridge was created.'
assert f'fe80::1%vnet0.{jail.jid}:' in stdout
assert f'description: associated with jail: {jail.name} as nic: epair0b'

Expand Down

0 comments on commit 0f931f2

Please sign in to comment.