summaryrefslogtreecommitdiffstats
path: root/install/static/test/data/sudorule_mod.json
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-11-19 11:38:35 -0600
committerAdam Young <ayoung@redhat.com>2010-11-22 15:28:42 -0500
commit27d8529a840bb1f54e520ccd70bf7c2113d03069 (patch)
tree7f798d63d259f2b85039212917123999ad8555c3 /install/static/test/data/sudorule_mod.json
parent861a0fdba9c07d612d6a220b6ec5cf5eb3c24e46 (diff)
downloadfreeipa-27d8529a840bb1f54e520ccd70bf7c2113d03069.tar.gz
freeipa-27d8529a840bb1f54e520ccd70bf7c2113d03069.tar.xz
freeipa-27d8529a840bb1f54e520ccd70bf7c2113d03069.zip
Fixed action panel queries
Previously the queries for action panel were done globally. Since each entity container has its own action panel, the queries will return multiple results. This is fixed by qualifying the query to run within the entity container. The query has also been moved into ipa_facet.get_action_panel(). Entities that do not have their own entity container (e.g. HBAC services and service groups) will need to override this method to get the action panel from the right entity container (e.g. HBAC rules). The facet.setup_views() has been renamed to facet.create_action_panel(). New test data for SUDO rules have been added.
Diffstat (limited to 'install/static/test/data/sudorule_mod.json')
-rw-r--r--install/static/test/data/sudorule_mod.json51
1 files changed, 51 insertions, 0 deletions
diff --git a/install/static/test/data/sudorule_mod.json b/install/static/test/data/sudorule_mod.json
new file mode 100644
index 000000000..7785f5f5e
--- /dev/null
+++ b/install/static/test/data/sudorule_mod.json
@@ -0,0 +1,51 @@
+{
+ "error": null,
+ "id": 0,
+ "result": {
+ "result": {
+ "attributelevelrights": {
+ "aci": "rscwo",
+ "cmdcategory": "rscwo",
+ "cn": "rscwo",
+ "description": "rscwo",
+ "externalhost": "rscwo",
+ "externaluser": "rscwo",
+ "hostcategory": "rscwo",
+ "hostmask": "rscwo",
+ "ipaenabledflag": "rscwo",
+ "ipasudoopt": "rscwo",
+ "ipasudorunas": "rscwo",
+ "ipasudorunasextgroup": "rscwo",
+ "ipasudorunasextuser": "rscwo",
+ "ipasudorunasgroup": "rscwo",
+ "ipasudorunasgroupcategory": "rscwo",
+ "ipasudorunasusercategory": "rscwo",
+ "ipauniqueid": "rsc",
+ "memberallowcmd": "rscwo",
+ "memberdenycmd": "rscwo",
+ "memberhost": "rscwo",
+ "memberuser": "rscwo",
+ "nsaccountlock": "rscwo",
+ "usercategory": "rscwo"
+ },
+ "cmdcategory": [
+ "all"
+ ],
+ "cn": [
+ "test"
+ ],
+ "description": [
+ "Test Rule"
+ ],
+ "ipauniqueid": [
+ "94ef3550-f443-11df-a2aa-00163e72f2d9"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipasudorule"
+ ]
+ },
+ "summary": null,
+ "value": "test"
+ }
+}