[PATCH v2 4/4] Acceptance test: provides to use RDMA transport for migration test

Oksana Vohchana posted 4 patches 5 years, 8 months ago
There is a newer version of this series
[PATCH v2 4/4] Acceptance test: provides to use RDMA transport for migration test
Posted by Oksana Vohchana 5 years, 8 months ago
Adds test for RDMA migration check

Signed-off-by: Oksana Vohchana <ovoshcha@redhat.com>
---
 tests/acceptance/migration.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py
index 5632d74f14..9b58b5a629 100644
--- a/tests/acceptance/migration.py
+++ b/tests/acceptance/migration.py
@@ -103,3 +103,12 @@ class Migration(Test):
         dest_uri = 'exec:nc -l localhost %u' % free_port
         src_uri = 'exec:nc localhost %u' % free_port
         self.do_migrate(dest_uri, src_uri)
+
+    @skipUnless(NET_AVAILABLE, 'Netifaces module not installed')
+    @skipUnless(_if_rdma_enable(None), "Unit rdma.service could not be found")
+    @skipUnless(_get_ip_rdma(None), 'RoCE(RDMA) service or interface not configured')
+    def test_migration_with_rdma_localhost(self):
+        ip = self._get_ip_rdma()
+        free_port = self._get_free_port(address=ip)
+        dest_uri = 'rdma:%s:%u' % (ip, free_port)
+        self.do_migrate(dest_uri)
-- 
2.21.1