diff options
author | Florin Coras <fcoras@cisco.com> | 2018-01-25 06:34:42 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-01-26 16:15:13 +0000 |
commit | 4399c2eb848b79762ff52a95fa5d9fab222c73bd (patch) | |
tree | 88ad4c903eb516bccb97b8c2fe101cb9e15398f7 /test | |
parent | 87233b51bc4d088ff566cef09a7c96f1f0dac078 (diff) |
session: move builtin apps to their own folder
This consolidates builtin apps under session-apps folder. It also
removes duplicate builtin echo server/client implementations.
Change-Id: I75ed879399c5aa9b75b1eb38b33aedf69dd8df3f
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_sctp.py | 17 | ||||
-rw-r--r-- | test/test_tcp.py | 13 |
2 files changed, 12 insertions, 18 deletions
diff --git a/test/test_sctp.py b/test/test_sctp.py index f25fb7f963d..a2f5e6a45da 100644 --- a/test/test_sctp.py +++ b/test/test_sctp.py @@ -45,16 +45,8 @@ class TestSCTP(VppTestCase): self.vapi.session_enable_disable(is_enabled=0) super(TestSCTP, self).tearDown() - def test_sctp_unittest(self): - """ SCTP Unit Tests """ - error = self.vapi.cli("test sctp all") - - if error: - self.logger.critical(error) - self.assertEqual(error.find("failed"), -1) - def test_sctp_transfer(self): - """ SCTP builtin client/server transfer """ + """ SCTP echo client/server transfer """ # Add inter-table routes ip_t01 = VppIpRoute(self, self.loop1.local_ip4, 32, @@ -70,18 +62,19 @@ class TestSCTP(VppTestCase): # Start builtin server and client uri = "sctp://" + self.loop0.local_ip4 + "/1234" - error = self.vapi.cli("test sctp server appns 0 fifo-size 4 uri " + + error = self.vapi.cli("test echo server appns 0 fifo-size 4 uri " + uri) if error: self.logger.critical(error) + self.assertEqual(error.find("failed"), -1) - error = self.vapi.cli("test sctp client mbytes 10 appns 1" + + error = self.vapi.cli("test echo client mbytes 10 appns 1" + " fifo-size 4" + " no-output test-bytes syn-timeout 20 " + " uri " + uri) if error: self.logger.critical(error) - self.assertEqual(error.find("failed"), -1) + self.assertEqual(error.find("failed"), -1) # Delete inter-table routes ip_t01.remove_vpp_config() diff --git a/test/test_tcp.py b/test/test_tcp.py index ea6e024e2d5..3b36bdf416b 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -54,7 +54,7 @@ class TestTCP(VppTestCase): self.assertEqual(error.find("failed"), -1) def test_tcp_transfer(self): - """ TCP builtin client/server transfer """ + """ TCP echo client/server transfer """ # Add inter-table routes ip_t01 = VppIpRoute(self, self.loop1.local_ip4, 32, @@ -70,17 +70,18 @@ class TestTCP(VppTestCase): # Start builtin server and client uri = "tcp://" + self.loop0.local_ip4 + "/1234" - error = self.vapi.cli("test tcp server appns 0 fifo-size 4 uri " + + error = self.vapi.cli("test echo server appns 0 fifo-size 4 uri " + uri) if error: self.logger.critical(error) + self.assertEqual(error.find("failed"), -1) - error = self.vapi.cli("test tcp client mbytes 10 appns 1 fifo-size 4" + - " no-output test-bytes syn-timeout 2 " + - " uri " + uri) + error = self.vapi.cli("test echo client mbytes 10 appns 1 " + + "fifo-size 4 no-output test-bytes " + + "syn-timeout 2 uri " + uri) if error: self.logger.critical(error) - self.assertEqual(error.find("failed"), -1) + self.assertEqual(error.find("failed"), -1) # Delete inter-table routes ip_t01.remove_vpp_config() |