diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2021-02-18 11:17:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 11:17:26 -0500 |
commit | 5a9008e53d7cf987b5cfb78964d2bd987d180993 (patch) | |
tree | 91227d5a71d103500b2b8bc4f4bba12739ba5fdb /tests/integration_tests/bugs/test_lp1898997.py | |
parent | 6056ccd4d4a8a1a314ab8cd6d2bebdf8ae39b35c (diff) | |
download | vyos-cloud-init-5a9008e53d7cf987b5cfb78964d2bd987d180993.tar.gz vyos-cloud-init-5a9008e53d7cf987b5cfb78964d2bd987d180993.zip |
integration_tests: use unique MAC addresses for tests (#813)
Using the same MAC address results in strange test behaviour if more
than one such instance is up: traffic gets routed to an arbitrary
interface with the given MAC address. This can happen if running tests
in parallel, or on a system which retains test instances from previous
runs.
The introduction of tests/integration_tests/__init__.py means that
pylint now checks the integration tests: this commit also addresses
those failures.
Diffstat (limited to 'tests/integration_tests/bugs/test_lp1898997.py')
-rw-r--r-- | tests/integration_tests/bugs/test_lp1898997.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration_tests/bugs/test_lp1898997.py b/tests/integration_tests/bugs/test_lp1898997.py index 54c88d82..90dc17da 100644 --- a/tests/integration_tests/bugs/test_lp1898997.py +++ b/tests/integration_tests/bugs/test_lp1898997.py @@ -10,8 +10,9 @@ network configuration, and confirms that the bridge can be used to ping the default gateway. """ import pytest +from tests.integration_tests import random_mac_address -MAC_ADDRESS = "de:ad:be:ef:12:34" +MAC_ADDRESS = random_mac_address() NETWORK_CONFIG = """\ |