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 2021-06-17 17:53:38 +02:00 committed by Rob Crittenden
parent 3a4939fa39
commit 3e77d3132f

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()