diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2018-12-17 21:43:43 -0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-12-21 07:49:37 +0000 |
commit | 919efad2671993d4c6d5a0dba8eeb99d5c60edf1 (patch) | |
tree | 7798b4deaa7057817194a59e1b7d94a99f3e460d /test/test_punt.py | |
parent | e21463d87979a49720bf1eb1744f01261ffea620 (diff) |
tests: Rework vpp config generation.
* Allows test cases to configure the VPP runtime config
during fixture setup.
* Sample use in a TestCase:
@classmethod
def setUpConstants(cls):
tempdir = cls.tempdir
cls.config.add('punt', 'socket', '%s/socket_punt' % cls.tempdir)
super(TestPuntSocket, cls).setUpConstants()
# enable/disabe a plugin via:
#cls.config.add_plugin('dpdk_plugin.so', 'disable')
* Supports the following config stanzas:
'unix',
'acl-plugin'
'api-queue'
'api-trace'
'api-segment'
'cj'
'cpu'
'dns'
'dpdk
# currently don't support dynamic keys
# 'heapsize'
'l2learn'
'l2tp'
'mactime'
'mc'
'nat'
'oam'
'plugins'
'punt'
'session'
'socksvr'
'statseg'
'tapcli'
'tcp'
'tuntap'
'vhost-user'
Change-Id: I44f276487267d26eaa46f87e730bdd861003b234
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_punt.py')
-rw-r--r-- | test/test_punt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_punt.py b/test/test_punt.py index d57a847ef0c..b20dc76c61d 100644 --- a/test/test_punt.py +++ b/test/test_punt.py @@ -121,8 +121,8 @@ class TestPuntSocket(VppTestCase): @classmethod def setUpConstants(cls): - cls.extra_vpp_punt_config = [ - "punt", "{", "socket", cls.tempdir+"/socket_punt", "}"] + tempdir = cls.tempdir + cls.config.add('punt', 'socket', '%s/socket_punt' % cls.tempdir) super(TestPuntSocket, cls).setUpConstants() def setUp(self): |