diff options
author | Florin Coras <fcoras@cisco.com> | 2018-10-25 18:03:45 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-28 14:57:26 +0000 |
commit | 5665cedf57165c05d00f28de06b627047902ffce (patch) | |
tree | b9a07ed14844302ac512459df7e851ccf370ef4d /test/test_session.py | |
parent | 75b39f87119c1df67723798e16f7c18265da4e15 (diff) |
session: extend connect api for internal apps
Change-Id: Ie4c5cfc4c97acb321a46b4df589dc44de1b616ba
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'test/test_session.py')
-rw-r--r-- | test/test_session.py | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/test/test_session.py b/test/test_session.py index 55541b70527..3336f4de71d 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -47,14 +47,6 @@ class TestSession(VppTestCase): super(TestSession, self).tearDown() self.vapi.session_enable_disable(is_enabled=1) - def test_session(self): - """ Session Unit Tests """ - error = self.vapi.cli("test session all") - - if error: - self.logger.critical(error) - self.assertEqual(error.find("failed"), -1) - def test_segment_manager_alloc(self): """ Session Segment Manager Multiple Segment Allocation """ @@ -92,5 +84,25 @@ class TestSession(VppTestCase): ip_t01.remove_vpp_config() ip_t10.remove_vpp_config() + +class TestSessionUnitTests(VppTestCase): + """ Session Unit Tests Case """ + + def setUp(self): + super(TestSessionUnitTests, self).setUp() + self.vapi.session_enable_disable(is_enabled=1) + + def test_session(self): + """ Session Unit Tests """ + error = self.vapi.cli("test session all") + + if error: + self.logger.critical(error) + self.assertEqual(error.find("failed"), -1) + + def tearDown(self): + super(TestSessionUnitTests, self).tearDown() + self.vapi.session_enable_disable(is_enabled=0) + if __name__ == '__main__': unittest.main(testRunner=VppTestRunner) |