diff options
author | Florin Coras <fcoras@cisco.com> | 2017-12-11 09:09:05 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-12-12 21:35:51 +0000 |
commit | 3ea6ce235e9a9af1e78208eef54304ef0c865e67 (patch) | |
tree | f1b7adceac4013772482a18ca0f38711b127765c /test/test_tcp.py | |
parent | 19b1f6ae21aedf2b427f49351e1a265032b67615 (diff) |
tcp/session: add make tests
Change-Id: Icb93ab80c5a6432d7b2b698a47e8b612c6f06fbd
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r-- | test/test_tcp.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py new file mode 100644 index 00000000000..869ef1af9a6 --- /dev/null +++ b/test/test_tcp.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python + +import unittest + +from framework import VppTestCase, VppTestRunner + + +class TestTCP(VppTestCase): + """ TCP Test Case """ + + @classmethod + def setUpClass(cls): + super(TestTCP, cls).setUpClass() + + def setUp(self): + super(TestTCP, self).setUp() + self.vapi.session_enable_disable(is_enabled=1) + + def tearDown(self): + super(TestTCP, self).tearDown() + + def test_tcp(self): + """ TCP Unit Tests """ + error = self.vapi.cli("test tcp all") + + if error: + self.logger.critical(error) + self.assertEqual(error.find("Failed"), -1) + +if __name__ == '__main__': + unittest.main(testRunner=VppTestRunner) |