Page MenuHomeVyOS Platform

Executing vyos-smoketest multiple times makes ssh test fail on execution
Closed, ResolvedPublicBUG

Description

Executing the unit-tests from vyos-smoketest makes the ssh test fail on subsequent execution

vyos@vyos:/usr/libexec/vyos/tests/smoke/cli$ python3 -m unittest discover
................
----------------------------------------------------------------------
Ran 16 tests in 35.421s

OK
vyos@vyos:/usr/libexec/vyos/tests/smoke/cli$
vyos@vyos:/usr/libexec/vyos/tests/smoke/cli$
vyos@vyos:/usr/libexec/vyos/tests/smoke/cli$ python3 -m unittest discover
............F...
======================================================================
FAIL: test_ssh (test_service_ssh.TestServiceSSH)
Check if SSH service can be configured and runs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/libexec/vyos/tests/smoke/cli/test_service_ssh.py", line 57, in tesh
    self.assertTrue("2222" in port)
AssertionError: False is not true

----------------------------------------------------------------------
Ran 16 tests in 38.086s

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3-rolling-202002131824
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Should be addresses using the new vyos smoketest shim from 1.4 branch.

Should really be backported to 1.3 though...