summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mock_trex.py5
-rw-r--r--test/test_chains.py2
-rw-r--r--test/test_nfvbench.py1
3 files changed, 8 insertions, 0 deletions
diff --git a/test/mock_trex.py b/test/mock_trex.py
index c128e9a..c4ce9d7 100644
--- a/test/mock_trex.py
+++ b/test/mock_trex.py
@@ -55,6 +55,11 @@ except ImportError:
api_mod.STLVmFlowVarRepetableRandom = STLDummy
api_mod.STLVmWrFlowVar = STLDummy
api_mod.UDP = STLDummy
+ api_mod.bind_layers = STLDummy
+ api_mod.FlagsField = STLDummy
+ api_mod.Packet = STLDummy
+ api_mod.ThreeBytesField = STLDummy
+ api_mod.XByteField = STLDummy
services_mod = ModuleType('trex_stl_lib.services')
stl_lib_mod.services = services_mod
diff --git a/test/test_chains.py b/test/test_chains.py
index 109b73b..a9c9ac7 100644
--- a/test/test_chains.py
+++ b/test/test_chains.py
@@ -76,6 +76,7 @@ def test_chain_runner_ext_no_openstack():
config = _get_chain_config(sc=ChainType.EXT)
specs = Specs()
config.vlans = [100, 200]
+ config.vnis = [5000, 6000]
config['traffic_generator']['mac_addrs_left'] = ['00:00:00:00:00:00']
config['traffic_generator']['mac_addrs_right'] = ['00:00:00:00:01:00']
@@ -172,6 +173,7 @@ def _check_nfvbench_openstack(sc=ChainType.PVP, l2_loopback=False):
if l2_loopback:
config.l2_loopback = True
config.vlans = [[100], [200]]
+ config.vnis = [[5000], [6000]]
factory = BasicFactory()
config_plugin = factory.get_config_plugin_class()(config)
config = config_plugin.get_config()
diff --git a/test/test_nfvbench.py b/test/test_nfvbench.py
index f532bba..04778e7 100644
--- a/test/test_nfvbench.py
+++ b/test/test_nfvbench.py
@@ -319,6 +319,7 @@ def _get_dummy_tg_config(chain_type, rate, scc=1, fc=10, step_ip='0.0.0.1',
def _get_traffic_client():
config = _get_dummy_tg_config('PVP', 'ndr_pdr')
+ config['vxlan'] = False
config['ndr_run'] = True
config['pdr_run'] = True
config['generator_profile'] = 'dummy'