]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(test): improve test 60
authorBeniamino Galvani <bgalvani@redhat.com>
Tue, 7 Feb 2023 14:28:57 +0000 (15:28 +0100)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 13 Feb 2023 07:53:39 +0000 (08:53 +0100)
commit5e846cb1320e32db1e3d200743f8fc08732d4c9e
treed74c5ac30b96bb7233b97beb15dc525afa861a10
parent8f44740f2c234ddb275e0a11e23d45e3678eb4a0
fix(test): improve test 60

The test has the following issues:

 - it sets up a bridge on net1 and net2, however those interfaces
   are part of the same qemu hub and this causes switching loops;

 - the bonds are created on two interfaces but only one has a DHCP server, and
   this causes random failures;

 - the checks performed on the client are pretty limited.

Rework the test:

 - avoid the bridging loop;

 - update the topology to use a bond interface on the server side;

 - introduce additional checks on the client: start a ping and check that ports
   are properly attached to bonds and bridge;

 - make it possible to return module-specific information from the client; in
   the future this can be added for example to check that the NetworkManager or
   systemd-networkd configuration is correct.
test/TEST-60-BONDBRIDGEVLANIFCFG/client-init.sh
test/TEST-60-BONDBRIDGEVLANIFCFG/exports
test/TEST-60-BONDBRIDGEVLANIFCFG/server-init.sh
test/TEST-60-BONDBRIDGEVLANIFCFG/test.sh