Skip to content

Commit

Permalink
update 0004_start_test.py - failing assert for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Nov 18, 2024
1 parent fd38ff1 commit 65f2ff0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/functional_tests/0004_start_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def test_03_create_and_start_nobridge_vnet_jail(release, jail, invoke_cli, nobri
assert jail.exists is True
assert jail.running is True

stdout, stderr = jail.run_command(['ifconfig'])
assert 'zzzz' in stdout

Check failure on line 77 in tests/functional_tests/0004_start_test.py

View check run for this annotation

Cirrus CI / Use prebuilt packages

tests/functional_tests/0004_start_test.py#L77

tests.functional_tests.0004_start_test.test_03_create_and_start_nobridge_vnet_jail
Raw output
release = '14.1-RELEASE', jail = nobridge_jail
invoke_cli = <function invoke_cli.<locals>.invoke at 0x264311308cc0>
nobridge_jail_ip = '192.168.2.2'

    @require_root
    @require_zpool
    @require_nobridge_jail_ip
    def test_03_create_and_start_nobridge_vnet_jail(release, jail, invoke_cli, nobridge_jail_ip):
        jail = jail('nobridge_jail')
    
        invoke_cli([
            'create', '-r', release, '-n', jail.name,
            f'ip4_addr=lo0|{nobridge_jail_ip}', 'boot=on', 'vnet=on',
            'interfaces=vnet0:none', 'vnet_default_interface=none',
            'ip6_addr=epair0b|fe80::2/10', 'defaultrouter6=none',
            'defaultrouter=none'
        ])
    
        assert jail.exists is True
        assert jail.running is True
    
        stdout, stderr = jail.run_command(['ifconfig'])
>       assert 'zzzz' in stdout
E       AssertionError: assert 'zzzz' in 'lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384\n\toptions=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>\n\tinet 127.0.0.1 netmask 0xff000000\n\tinet6 ::1 prefixlen 128\n\tinet6 fe80::1%lo0 prefixlen 64 scopeid 0x3\n\tgroups: lo\n\tnd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>\n'

tests/functional_tests/0004_start_test.py:77: AssertionError

stdout, stderr = jail.run_command(['ifconfig'], jailed=False)

assert bool(stderr) is False, f'Ifconfig returned an error: {stderr}'
Expand Down

0 comments on commit 65f2ff0

Please sign in to comment.