Project

General

Profile

Feature #11206

Provide a way to list default role permissions for plugins

Added by Lukas Zapletal over 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

If we were able to list default roles and it's permissions we can use this in unit/functional tests to verify permissions and filters. More than that, this gives us possibility to create a mechanism for comparing expected permissions with existing ones. This might be useful after upgrades when users want to check if some important permissions were not added in the new version.

I have a patch that adds this, it's simple. It also adds a simple rake task that does the check. I would like to have this for 1.9 because we would like to merge a big permission review for Discovery 4.0 together with bunch of new tests covering this area which greatly improves the quality.


Related issues

Related to Foreman - Bug #11230: foreman-debug calls rake "plugins" not "plugin:list"Closed2015-07-28
Related to Foreman - Feature #10900: Ship all built-in roles as read-only and provide a way to clone rolesNew2015-06-22

Associated revisions

Revision 758d57a3 (diff)
Added by Lukas Zapletal over 7 years ago

Fixes #11206 - plugin API now expose default role permissions

Revision 9b33f22f (diff)
Added by Lukas Zapletal over 7 years ago

Fixes #11206 - plugin API now expose default role permissions

(cherry picked from commit 758d57a3c067dbd07f5bfbd66617b6865dab9d66)

History

#1 Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2572 added
  • Pull request deleted ()

#2 Updated by Lukas Zapletal over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Dominic Cleal over 7 years ago

  • Related to Bug #11230: foreman-debug calls rake "plugins" not "plugin:list" added

#4 Updated by Dominic Cleal over 7 years ago

  • Related to Feature #10900: Ship all built-in roles as read-only and provide a way to clone roles added

Also available in: Atom PDF