From 35521ad6bb92057d5faefa2059d7d800bebb1af0 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 19 Mar 2012 10:16:49 -0400 Subject: Don't allow hosts and services of IPA masters to be disabled. https://fedorahosted.org/freeipa/ticket/2487 --- tests/test_xmlrpc/test_host_plugin.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/test_xmlrpc/test_host_plugin.py') diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py index 7068d9a3f..8f5bd7cf3 100644 --- a/tests/test_xmlrpc/test_host_plugin.py +++ b/tests/test_xmlrpc/test_host_plugin.py @@ -673,9 +673,17 @@ class test_host(Declarative): dict( desc='Delete the current host (master?) %s should be caught' % api.env.host, command=('host_del', [api.env.host], {}), - expected=errors.ValidationError(name='fqdn', error='An IPA master host cannot be deleted'), + expected=errors.ValidationError(name='fqdn', error='An IPA master host cannot be deleted or disabled'), ), + + dict( + desc='Disable the current host (master?) %s should be caught' % api.env.host, + command=('host_disable', [api.env.host], {}), + expected=errors.ValidationError(name='fqdn', error='An IPA master host cannot be deleted or disabled'), + ), + + dict( desc='Test that validation is enabled on adds', command=('host_add', [invalidfqdn1], {}), -- cgit