Adds test for RDMA migration check Signed-off-by: Oksana Vohchana <ovosh...@redhat.com> --- tests/acceptance/migration.py | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 59144f18fd..c96da1dd4b 100644 --- a/tests/acceptance/migration.py +++ b/tests/acceptance/migration.py @@ -107,3 +107,15 @@ class Migration(Test): """ free_port = self._get_free_port() dest_uri = 'exec:nc -l localhost %u' % free_port + + @skipUnless(_if_rdma_enable(), 'Unit rdma.service could not be found') + @skipUnless(_get_interface_rdma(), 'RDMA service or interface not configured') + def test_migration_with_rdma_localhost(self): + iface = _get_interface_rdma() + ip = _get_ip_rdma(iface) + if ip: + free_port = self._get_free_port(address=ip) + else: + self.cancel("Ip address doesn't configured properly on interface:%s" % iface) + dest_uri = 'rdma:%s:%u' % (ip, free_port) + self.do_migrate(dest_uri) -- 2.21.1