A test to make sure hosts can be renamed using setattr is using an invalid hostname so the host_mod will never get hit.

rob
>From 43266a275dd7ceb452545c36de796c26e886a708 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcrit...@redhat.com>
Date: Thu, 15 Mar 2012 17:01:54 -0400
Subject: [PATCH] Fix test failure testing rename with an invalid
 hostname.

Validation is going to catch the invalid hostname before the mod is tried.
---
 tests/test_xmlrpc/test_host_plugin.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py
index 8f5bd7cf347dd2f712ff441c90dbf61315be8c6b..5e49e2bade1a585d5c724d9f7f4fb351d34f3091 100644
--- a/tests/test_xmlrpc/test_host_plugin.py
+++ b/tests/test_xmlrpc/test_host_plugin.py
@@ -462,7 +462,7 @@ class test_host(Declarative):

         dict(
             desc='Try to rename %r' % fqdn1,
-            command=('host_mod', [fqdn1], dict(setattr=u'fqdn=changed')),
+            command=('host_mod', [fqdn1], dict(setattr=u'fqdn=changed.example.com')),
             expected=errors.NotAllowedOnRDN()
         ),

--
1.7.6

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to