summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2020-01-31 09:35:29 +0100
committerFlorin Coras <florin.coras@gmail.com>2020-03-05 15:26:51 +0000
commitb4e5e50fe898bf905aa7087e17740394b97e5cf9 (patch)
tree26e8afd851165d38def755048fe69d6578de9fe8 /test
parent5893747d72acd0a507f74fe61c13cae54de23630 (diff)
session: API cleanup
Use consistent API types. Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: Ib752a3425c076eb53bc5255a48039cbb74b1fcce Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_session.py4
-rw-r--r--test/test_tcp.py4
-rw-r--r--test/test_tls.py4
-rw-r--r--test/test_udp.py4
-rw-r--r--test/vpp_papi_provider.py3
5 files changed, 9 insertions, 10 deletions
diff --git a/test/test_session.py b/test/test_session.py
index 60e5eb4f8a3..94218d08e8e 100644
--- a/test/test_session.py
+++ b/test/test_session.py
@@ -37,9 +37,9 @@ class TestSession(VppTestCase):
table_id += 1
# Configure namespaces
- self.vapi.app_namespace_add_del(namespace_id=b"0",
+ self.vapi.app_namespace_add_del(namespace_id="0",
sw_if_index=self.loop0.sw_if_index)
- self.vapi.app_namespace_add_del(namespace_id=b"1",
+ self.vapi.app_namespace_add_del(namespace_id="1",
sw_if_index=self.loop1.sw_if_index)
def tearDown(self):
diff --git a/test/test_tcp.py b/test/test_tcp.py
index 8decac52b9d..40579e284e4 100644
--- a/test/test_tcp.py
+++ b/test/test_tcp.py
@@ -36,9 +36,9 @@ class TestTCP(VppTestCase):
table_id += 1
# Configure namespaces
- self.vapi.app_namespace_add_del(namespace_id=b"0",
+ self.vapi.app_namespace_add_del(namespace_id="0",
sw_if_index=self.loop0.sw_if_index)
- self.vapi.app_namespace_add_del(namespace_id=b"1",
+ self.vapi.app_namespace_add_del(namespace_id="1",
sw_if_index=self.loop1.sw_if_index)
def tearDown(self):
diff --git a/test/test_tls.py b/test/test_tls.py
index 86ee3cc80a5..008664dfd7a 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -82,9 +82,9 @@ class TestTLS(VppTestCase):
table_id += 1
# Configure namespaces
- self.vapi.app_namespace_add_del(namespace_id=b"0",
+ self.vapi.app_namespace_add_del(namespace_id="0",
sw_if_index=self.loop0.sw_if_index)
- self.vapi.app_namespace_add_del(namespace_id=b"1",
+ self.vapi.app_namespace_add_del(namespace_id="1",
sw_if_index=self.loop1.sw_if_index)
def tearDown(self):
diff --git a/test/test_udp.py b/test/test_udp.py
index af64f8ae704..5336675c79d 100644
--- a/test/test_udp.py
+++ b/test/test_udp.py
@@ -277,9 +277,9 @@ class TestUDP(VppTestCase):
table_id += 1
# Configure namespaces
- self.vapi.app_namespace_add_del(namespace_id="0".encode('ascii'),
+ self.vapi.app_namespace_add_del(namespace_id="0",
sw_if_index=self.loop0.sw_if_index)
- self.vapi.app_namespace_add_del(namespace_id="1".encode('ascii'),
+ self.vapi.app_namespace_add_del(namespace_id="1",
sw_if_index=self.loop1.sw_if_index)
def tearDown(self):
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index f9c72fa0d29..bf3f17d2c51 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -1564,8 +1564,7 @@ class VppPapiProvider(object):
'sw_if_index': sw_if_index,
'ip4_fib_id': ip4_fib_id,
'ip6_fib_id': ip6_fib_id,
- 'namespace_id': namespace_id,
- 'namespace_id_len': len(namespace_id)})
+ 'namespace_id': namespace_id})
def punt_socket_register(self, reg, pathname,
header_version=1):