From 3e77d3132fe44cc2ec579b0e41f92d9a7a558d4c Mon Sep 17 00:00:00 2001 From: Antonio Torres Date: Thu, 17 Jun 2021 17:53:38 +0200 Subject: [PATCH] ipatests: test host update using shortname Add test to ensure that host-mod resolves the FQDN when passing the shortname of the host being modified. Related: https://pagure.io/freeipa/issue/8726 Related: https://pagure.io/freeipa/issue/8884 Signed-off-by: Antonio Torres Reviewed-By: Rob Crittenden --- ipatests/test_xmlrpc/test_host_plugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ipatests/test_xmlrpc/test_host_plugin.py b/ipatests/test_xmlrpc/test_host_plugin.py index 9e6590524..c66bbc865 100644 --- a/ipatests/test_xmlrpc/test_host_plugin.py +++ b/ipatests/test_xmlrpc/test_host_plugin.py @@ -331,6 +331,12 @@ class TestCRUD(XMLRPC_test): name='sshpubkey', error=u'options are not allowed')): command() + def test_update_shortname(self, host): + host.ensure_exists() + host.run_command('host_mod', host.shortname, + updatedns=True, + setattr='nshardwareplatform=linux') + def test_delete_host(self, host): host.delete()