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.
This commit is contained in:
Rob Crittenden 2011-07-15 17:18:42 -04:00
parent 3fdca99c48
commit b14473a86c
2 changed files with 8 additions and 8 deletions

View File

@ -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):
"""

View File

@ -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):
"""