mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
Improve permission plugin test cleanup
The rename tests use names that were not being cleaned up when the tests fail. Add cleanup steps for them. Also, use --force so system permissions are removed as well.
This commit is contained in:
committed by
Martin Kosek
parent
2c433cdd7e
commit
dbf10b83bd
@@ -81,9 +81,11 @@ invalid_permission1 = u'bad;perm'
|
|||||||
class test_permission(Declarative):
|
class test_permission(Declarative):
|
||||||
|
|
||||||
cleanup_commands = [
|
cleanup_commands = [
|
||||||
('permission_del', [permission1], {}),
|
('permission_del', [permission1], {'force': True}),
|
||||||
('permission_del', [permission2], {}),
|
('permission_del', [permission2], {'force': True}),
|
||||||
('permission_del', [permission3], {}),
|
('permission_del', [permission3], {'force': True}),
|
||||||
|
('permission_del', [permission1_renamed], {'force': True}),
|
||||||
|
('permission_del', [permission1_renamed_ucase], {'force': True}),
|
||||||
('privilege_del', [privilege1], {}),
|
('privilege_del', [privilege1], {}),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user