mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06: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:
parent
2c433cdd7e
commit
dbf10b83bd
@ -81,9 +81,11 @@ invalid_permission1 = u'bad;perm'
|
||||
class test_permission(Declarative):
|
||||
|
||||
cleanup_commands = [
|
||||
('permission_del', [permission1], {}),
|
||||
('permission_del', [permission2], {}),
|
||||
('permission_del', [permission3], {}),
|
||||
('permission_del', [permission1], {'force': True}),
|
||||
('permission_del', [permission2], {'force': True}),
|
||||
('permission_del', [permission3], {'force': True}),
|
||||
('permission_del', [permission1_renamed], {'force': True}),
|
||||
('permission_del', [permission1_renamed_ucase], {'force': True}),
|
||||
('privilege_del', [privilege1], {}),
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user