aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/vnet/uri/dummy_app.py
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2020-02-18 19:12:47 +0100
committerDave Barach <openvpp@barachs.net>2020-02-18 20:26:10 +0000
commit3fccd0278c38cb3fb07fc51a3f1686aef1ebb542 (patch)
treecbfed49a51a005377b05999c9bb85e4fb2eb8340 /src/scripts/vnet/uri/dummy_app.py
parentffd15463b2f377cf4b2177cfd76ce4e77461ba68 (diff)
vrrp: do not define _details as autoreply
Without this, _details_reply messages also end up defined; which is not intended, as there are no _details_t_handler functions. Type: fix Fixes: 39e9428b90bc74d1bb15fc17759c8ef6ad712418 Change-Id: Id052b00b00623ca92e5ddce4cc5e1bdfbb1031db Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'src/scripts/vnet/uri/dummy_app.py')
0 files changed, 0 insertions, 0 deletions
#fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/router/bin/python
from .stl_general_test import CStlGeneral_Test, CTRexScenario
from misc_methods import run_command
from nose.plugins.attrib import attr

def setUpModule():
    CStlGeneral_Test.unzip_client_package()

@attr('client_package')
class CTRexClientPKG_Test(CStlGeneral_Test):
    """This class tests TRex client package"""

    def setUp(self):
        CStlGeneral_Test.setUp(self)
        # examples connect by their own
        if CTRexScenario.stl_trex.is_connected():
            self.recover_after_trex_210_issue()
            CTRexScenario.stl_trex.disconnect()

    def tearDown(self):
        # connect back at end of tests
        if not CTRexScenario.stl_trex.is_connected():
            CTRexScenario.stl_trex.connect()
        self.recover_after_trex_210_issue()
        CStlGeneral_Test.tearDown(self)

    def run_client_package_stl_example(self, python_version):
        commands = [
                    'cd %s' % CTRexScenario.scripts_path,
                    'source find_python.sh --%s' % python_version,
                    'which $PYTHON',
                    'cd trex_client/stl/examples',
                    '$PYTHON stl_imix.py -s %s' % self.configuration.trex['trex_name'],
                   ]
        return_code, stdout, stderr = run_command("bash -ce '%s'" % '; '.join(commands))
        if return_code:
            self.fail('Error in running stf_example using %s: %s' % (python_version, [return_code, stdout, stderr]))

    def test_client_python2(self):
        self.run_client_package_stl_example(python_version = 'python2')

    def test_client_python3(self):
        self.run_client_package_stl_example(python_version = 'python3')