summaryrefslogtreecommitdiffstats
path: root/install/static/test
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-01-11 17:07:46 +0700
committerAdam Young <ayoung@redhat.com>2011-01-11 21:33:45 -0500
commit308b7b3a4965d4cef55929099939f2446104eaec (patch)
tree41aec023a9d7445fec1f7f5b12450a7d192700d7 /install/static/test
parent9d0dc89b03d4e3f50d54d1189a119016b2c805c3 (diff)
downloadfreeipa.git-308b7b3a4965d4cef55929099939f2446104eaec.tar.gz
freeipa.git-308b7b3a4965d4cef55929099939f2446104eaec.tar.xz
freeipa.git-308b7b3a4965d4cef55929099939f2446104eaec.zip
Added group association table for SUDO command.
A section has been added to the SUDO command details page for managing the association with SUDO command groups. New test data has been added as well.
Diffstat (limited to 'install/static/test')
-rw-r--r--install/static/test/data/sudocmd_memberof_add.json53
-rw-r--r--install/static/test/data/sudocmd_memberof_remove.json50
-rw-r--r--install/static/test/data/sudocmd_memberof_show.json61
-rw-r--r--install/static/test/data/sudocmd_show.json4
4 files changed, 168 insertions, 0 deletions
diff --git a/install/static/test/data/sudocmd_memberof_add.json b/install/static/test/data/sudocmd_memberof_add.json
new file mode 100644
index 00000000..e263007d
--- /dev/null
+++ b/install/static/test/data/sudocmd_memberof_add.json
@@ -0,0 +1,53 @@
+{
+ "error": null,
+ "id": 0,
+ "result": {
+ "count": 2,
+ "results": [
+ {
+ "completed": 1,
+ "error": null,
+ "failed": {
+ "member": {
+ "sudocmd": [],
+ "sudocmdgroup": []
+ }
+ },
+ "result": {
+ "cn": [
+ "group1"
+ ],
+ "description": [
+ "Group 1"
+ ],
+ "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=ipa",
+ "member_sudocmd": [
+ "/usr/bin/less"
+ ]
+ }
+ },
+ {
+ "completed": 1,
+ "error": null,
+ "failed": {
+ "member": {
+ "sudocmd": [],
+ "sudocmdgroup": []
+ }
+ },
+ "result": {
+ "cn": [
+ "group2"
+ ],
+ "description": [
+ "Group 2"
+ ],
+ "dn": "cn=group2,cn=sudocmdgroups,cn=accounts,dc=ipa",
+ "member_sudocmd": [
+ "/usr/bin/more"
+ ]
+ }
+ }
+ ]
+ }
+}
diff --git a/install/static/test/data/sudocmd_memberof_remove.json b/install/static/test/data/sudocmd_memberof_remove.json
new file mode 100644
index 00000000..347b5cde
--- /dev/null
+++ b/install/static/test/data/sudocmd_memberof_remove.json
@@ -0,0 +1,50 @@
+{
+ "error": null,
+ "id": 0,
+ "result": {
+ "count": 2,
+ "results": [
+ {
+ "completed": 1,
+ "error": null,
+ "failed": {
+ "member": {
+ "sudocmd": [],
+ "sudocmdgroup": []
+ }
+ },
+ "result": {
+ "cn": [
+ "group1"
+ ],
+ "description": [
+ "Group 1"
+ ],
+ "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=ipa"
+ }
+ },
+ {
+ "completed": 1,
+ "error": null,
+ "failed": {
+ "member": {
+ "sudocmd": [],
+ "sudocmdgroup": []
+ }
+ },
+ "result": {
+ "cn": [
+ "group2"
+ ],
+ "description": [
+ "Group 2"
+ ],
+ "dn": "cn=group2,cn=sudocmdgroups,cn=accounts,dc=ipa",
+ "memberindirect_sudocmd": [
+ "/usr/bin/more"
+ ]
+ }
+ }
+ ]
+ }
+}
diff --git a/install/static/test/data/sudocmd_memberof_show.json b/install/static/test/data/sudocmd_memberof_show.json
new file mode 100644
index 00000000..9b7f3af2
--- /dev/null
+++ b/install/static/test/data/sudocmd_memberof_show.json
@@ -0,0 +1,61 @@
+{
+ "error": null,
+ "id": 0,
+ "result": {
+ "count": 2,
+ "results": [
+ {
+ "error": null,
+ "result": {
+ "cn": [
+ "group1"
+ ],
+ "description": [
+ "Group 1"
+ ],
+ "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=ipa",
+ "ipauniqueid": [
+ "fc775d2e-1d56-11e0-b7cd-00163e2fe6de"
+ ],
+ "member_sudocmd": [
+ "/usr/bin/less"
+ ],
+ "objectclass": [
+ "ipaobject",
+ "ipasudocmdgrp",
+ "groupOfNames",
+ "top"
+ ]
+ },
+ "summary": null,
+ "value": "group1"
+ },
+ {
+ "error": null,
+ "result": {
+ "cn": [
+ "group2"
+ ],
+ "description": [
+ "Group 2"
+ ],
+ "dn": "cn=group2,cn=sudocmdgroups,cn=accounts,dc=ipa",
+ "ipauniqueid": [
+ "b90c1930-1d5b-11e0-ac89-00163e2fe6de"
+ ],
+ "member_sudocmd": [
+ "/usr/bin/more"
+ ],
+ "objectclass": [
+ "ipaobject",
+ "ipasudocmdgrp",
+ "groupOfNames",
+ "top"
+ ]
+ },
+ "summary": null,
+ "value": "group2"
+ }
+ ]
+ }
+}
diff --git a/install/static/test/data/sudocmd_show.json b/install/static/test/data/sudocmd_show.json
index f9eacc39..a08401d7 100644
--- a/install/static/test/data/sudocmd_show.json
+++ b/install/static/test/data/sudocmd_show.json
@@ -15,6 +15,10 @@
"ipauniqueid": [
"06708d0e-f454-11df-9273-00163e72f2d9"
],
+ "memberof": [
+ "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com",
+ "cn=group2,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com"
+ ],
"objectclass": [
"ipaobject",
"ipasudocmd"