whitebox-tempest-plugin/whitebox_tempest_plugin
James Parker a3ff33907a Allow for ethernet type in rx queue test
Update [1] and subsequent patches [2,3] changed the interface type of
instances from bridge to ethernet, e.g.

    <interface type='ethernet'>
      <mac address='fa:16:3e:3d:50:96'/>
      <target dev='tapa832f5ec-36'/>
      <model type='virtio'/>
      <driver name='vhost' rx_queue_size='1024'/>
      <mtu size='1372'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

This commit changes the test_rx_queue_size logic when searching a guest
for its interface type to check for 'ethernet' first and then fall back
to 'bridge' if it is not found. Also should be noted a conditional set
of the driver was attempted but due how ElementTree evaluates its
boolean [4], opted to check ethernet type first and then fall back to
bridge.

[1] https://review.opendev.org/c/openstack/nova/+/602432
[2] https://review.opendev.org/c/openstack/nova/+/797142
[3] https://review.opendev.org/c/openstack/nova/+/797428
[4] https://github.com/python/cpython/blob/3.9/Lib/xml/etree/ElementTree.py#L214

Change-Id: I29adec51ed510c32b0d00b4f0353f0a9527482b7
2021-08-09 09:21:31 -04:00
..
2018-01-10 11:57:05 +00:00
2021-03-31 17:30:16 -04:00
2021-03-31 17:30:16 -04:00
2020-10-05 14:43:26 -04:00

Whitebox Tempest Tests

This directory contains tests to validate behavior against TripleO/Director-based deployments.

See the Tempest plugin documentation for information about creating a plugin, stable API interface, TempestPlugin class interface, plugin structure, and how to use plugins: https://docs.openstack.org/tempest/latest/plugin.html