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 <antorres@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Antonio Torres authored and Rob Crittenden committed 2021-06-18 10:46:29 -04:00
1 parent 3a4939fa39
commit 3e77d3132f
1 file changed
+6
+6
View File
@@ -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()