summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-07-15 17:18:42 -0400
committerRob Crittenden <rcritten@redhat.com>2011-07-17 22:21:53 -0400
commitb14473a86c352dd395405fe0618b82aefcba2d6d (patch)
treed178e3f7558589637f1b13c0d1d893e707a288ba
parent3fdca99c48f19d6af7182b69bea0ee11100a9dd7 (diff)
downloadfreeipa-b14473a86c352dd395405fe0618b82aefcba2d6d.tar.gz
freeipa-b14473a86c352dd395405fe0618b82aefcba2d6d.tar.xz
freeipa-b14473a86c352dd395405fe0618b82aefcba2d6d.zip
Fix failing tests due to object name changes
Some object names had spaces in them which was bad, update the tests to reflect the new names.
-rw-r--r--tests/test_xmlrpc/test_hbac_plugin.py8
-rw-r--r--tests/test_xmlrpc/test_sudorule_plugin.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_xmlrpc/test_hbac_plugin.py b/tests/test_xmlrpc/test_hbac_plugin.py
index 29e9f6c48..3985b61cf 100644
--- a/tests/test_xmlrpc/test_hbac_plugin.py
+++ b/tests/test_xmlrpc/test_hbac_plugin.py
@@ -185,7 +185,7 @@ class test_hbac(XMLRPC_test):
"""
ret = api.Command['user_show'](self.test_user, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_HBAC rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_hbacrule', self.rule_name)
def test_9_b_show_group(self):
"""
@@ -194,7 +194,7 @@ class test_hbac(XMLRPC_test):
"""
ret = api.Command['group_show'](self.test_group, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_HBAC rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_hbacrule', self.rule_name)
def test_9_hbacrule_remove_user(self):
"""
@@ -239,7 +239,7 @@ class test_hbac(XMLRPC_test):
"""
ret = api.Command['host_show'](self.test_host, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_HBAC rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_hbacrule', self.rule_name)
def test_a_hbacrule_show_hostgroup(self):
"""
@@ -248,7 +248,7 @@ class test_hbac(XMLRPC_test):
"""
ret = api.Command['hostgroup_show'](self.test_hostgroup, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_HBAC rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_hbacrule', self.rule_name)
def test_b_hbacrule_remove_host(self):
"""
diff --git a/tests/test_xmlrpc/test_sudorule_plugin.py b/tests/test_xmlrpc/test_sudorule_plugin.py
index 88c608d61..c428899c7 100644
--- a/tests/test_xmlrpc/test_sudorule_plugin.py
+++ b/tests/test_xmlrpc/test_sudorule_plugin.py
@@ -161,7 +161,7 @@ class test_sudorule(XMLRPC_test):
"""
ret = api.Command['user_show'](self.test_user, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_Sudo Rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_sudorule', self.rule_name)
def test_9_b_show_group(self):
"""
@@ -170,7 +170,7 @@ class test_sudorule(XMLRPC_test):
"""
ret = api.Command['group_show'](self.test_group, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_Sudo Rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_sudorule', self.rule_name)
def test_9_sudorule_remove_user(self):
"""
@@ -382,7 +382,7 @@ class test_sudorule(XMLRPC_test):
"""
ret = api.Command['host_show'](self.test_host, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_Sudo Rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_sudorule', self.rule_name)
def test_a_sudorule_show_hostgroup(self):
"""
@@ -391,7 +391,7 @@ class test_sudorule(XMLRPC_test):
"""
ret = api.Command['hostgroup_show'](self.test_hostgroup, all=True)
entry = ret['result']
- assert_attr_equal(entry, 'memberof_Sudo Rule', self.rule_name)
+ assert_attr_equal(entry, 'memberof_sudorule', self.rule_name)
def test_b_sudorule_remove_host(self):
"""