diff options
Diffstat (limited to 'install/static/test')
-rw-r--r-- | install/static/test/data/sudocmd_add.json | 21 | ||||
-rw-r--r-- | install/static/test/data/sudocmd_del.json | 9 | ||||
-rw-r--r-- | install/static/test/data/sudocmd_find.json | 23 | ||||
-rw-r--r-- | install/static/test/data/sudocmd_mod.json | 31 | ||||
-rw-r--r-- | install/static/test/data/sudocmd_show.json | 29 | ||||
-rw-r--r-- | install/static/test/data/sudocmdgroup_add.json | 26 | ||||
-rw-r--r-- | install/static/test/data/sudocmdgroup_add_member.json | 26 | ||||
-rw-r--r-- | install/static/test/data/sudocmdgroup_del.json | 9 | ||||
-rw-r--r-- | install/static/test/data/sudocmdgroup_find.json | 33 | ||||
-rw-r--r-- | install/static/test/data/sudocmdgroup_mod.json | 39 | ||||
-rw-r--r-- | install/static/test/data/sudocmdgroup_remove_member.json | 22 | ||||
-rw-r--r-- | install/static/test/data/sudocmdgroup_show.json | 44 |
12 files changed, 312 insertions, 0 deletions
diff --git a/install/static/test/data/sudocmd_add.json b/install/static/test/data/sudocmd_add.json new file mode 100644 index 00000000..6de1def4 --- /dev/null +++ b/install/static/test/data/sudocmd_add.json @@ -0,0 +1,21 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "dn": "sudocmd=/usr/bin/less,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "09e4ab26-f456-11df-bb95-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmd" + ], + "sudocmd": [ + "/usr/bin/less" + ] + }, + "summary": "Added sudo command \"/usr/bin/less\"", + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmd_del.json b/install/static/test/data/sudocmd_del.json new file mode 100644 index 00000000..d6bc5ad0 --- /dev/null +++ b/install/static/test/data/sudocmd_del.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true, + "summary": "Deleted sudo command \"/usr/bin/less\"", + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmd_find.json b/install/static/test/data/sudocmd_find.json new file mode 100644 index 00000000..63987715 --- /dev/null +++ b/install/static/test/data/sudocmd_find.json @@ -0,0 +1,23 @@ +{ + "error": null, + "id": 0, + "result": { + "count": 2, + "result": [ + { + "dn": "sudocmd=/usr/bin/more,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "sudocmd": [ + "/usr/bin/more" + ] + }, + { + "dn": "sudocmd=/usr/bin/less,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "sudocmd": [ + "/usr/bin/less" + ] + } + ], + "summary": "2 sudo command matched", + "truncated": false + } +} diff --git a/install/static/test/data/sudocmd_mod.json b/install/static/test/data/sudocmd_mod.json new file mode 100644 index 00000000..82919cd2 --- /dev/null +++ b/install/static/test/data/sudocmd_mod.json @@ -0,0 +1,31 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "memberof": "rsc", + "nsaccountlock": "rscwo", + "sudocmd": "rscwo" + }, + "description": [ + "opposite of more" + ], + "ipauniqueid": [ + "06708d0e-f454-11df-9273-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmd" + ], + "sudocmd": [ + "/usr/bin/less" + ] + }, + "summary": "Modified sudo command \"/usr/bin/less\"", + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmd_show.json b/install/static/test/data/sudocmd_show.json new file mode 100644 index 00000000..f9eacc39 --- /dev/null +++ b/install/static/test/data/sudocmd_show.json @@ -0,0 +1,29 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "memberof": "rsc", + "nsaccountlock": "rscwo", + "sudocmd": "rscwo" + }, + "dn": "sudocmd=/usr/bin/less,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "06708d0e-f454-11df-9273-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmd" + ], + "sudocmd": [ + "/usr/bin/less" + ] + }, + "summary": null, + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmdgroup_add.json b/install/static/test/data/sudocmdgroup_add.json new file mode 100644 index 00000000..951a3a91 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_add.json @@ -0,0 +1,26 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "cn": [ + "group1" + ], + "description": [ + "Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "1a8f4852-f459-11df-815c-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmdgrp", + "groupOfNames", + "top" + ] + }, + "summary": "Added sudo command group \"group1\"", + "value": "group1" + } +} diff --git a/install/static/test/data/sudocmdgroup_add_member.json b/install/static/test/data/sudocmdgroup_add_member.json new file mode 100644 index 00000000..0646f725 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_add_member.json @@ -0,0 +1,26 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "member": { + "sudocmd": [], + "sudocmdgroup": [] + } + }, + "result": { + "cn": [ + "group1" + ], + "description": [ + "SUDO Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "member_sudocmd": [ + "/usr/bin/more", + "/usr/bin/less" + ] + } + } +} diff --git a/install/static/test/data/sudocmdgroup_del.json b/install/static/test/data/sudocmdgroup_del.json new file mode 100644 index 00000000..24c7ab69 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_del.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true, + "summary": "Deleted sudo command group \"group1\"", + "value": "group1" + } +} diff --git a/install/static/test/data/sudocmdgroup_find.json b/install/static/test/data/sudocmdgroup_find.json new file mode 100644 index 00000000..fb2effd2 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_find.json @@ -0,0 +1,33 @@ +{ + "error": null, + "id": 0, + "result": { + "count": 2, + "result": [ + { + "cn": [ + "group1" + ], + "description": [ + "Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "member_sudocmd": [ + "/usr/bin/more", + "/usr/bin/less" + ] + }, + { + "cn": [ + "group2" + ], + "description": [ + "Group 2" + ], + "dn": "cn=group2,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com" + } + ], + "summary": "2 sudo command groups matched", + "truncated": false + } +} diff --git a/install/static/test/data/sudocmdgroup_mod.json b/install/static/test/data/sudocmdgroup_mod.json new file mode 100644 index 00000000..d0eb3226 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_mod.json @@ -0,0 +1,39 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "businesscategory": "rscwo", + "cn": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "member": "rscwo", + "nsaccountlock": "rscwo", + "o": "rscwo", + "objectclass": "rscwo", + "ou": "rscwo", + "owner": "rscwo", + "seealso": "rscwo" + }, + "cn": [ + "group1" + ], + "description": [ + "SUDO Group 1" + ], + "ipauniqueid": [ + "1a8f4852-f459-11df-815c-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmdgrp", + "groupOfNames", + "top" + ] + }, + "summary": "Modified sudo command group \"group1\"", + "value": "group1" + } +} diff --git a/install/static/test/data/sudocmdgroup_remove_member.json b/install/static/test/data/sudocmdgroup_remove_member.json new file mode 100644 index 00000000..55144b9c --- /dev/null +++ b/install/static/test/data/sudocmdgroup_remove_member.json @@ -0,0 +1,22 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "member": { + "sudocmd": [], + "sudocmdgroup": [] + } + }, + "result": { + "cn": [ + "group1" + ], + "description": [ + "SUDO Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com" + } + } +} diff --git a/install/static/test/data/sudocmdgroup_show.json b/install/static/test/data/sudocmdgroup_show.json new file mode 100644 index 00000000..f93ddaa6 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_show.json @@ -0,0 +1,44 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "businesscategory": "rscwo", + "cn": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "member": "rscwo", + "nsaccountlock": "rscwo", + "o": "rscwo", + "objectclass": "rscwo", + "ou": "rscwo", + "owner": "rscwo", + "seealso": "rscwo" + }, + "cn": [ + "group1" + ], + "description": [ + "Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "d99989a6-f459-11df-9273-00163e72f2d9" + ], + "member_sudocmd": [ + "/usr/bin/more", + "/usr/bin/less" + ], + "objectclass": [ + "ipaobject", + "ipasudocmdgrp", + "groupOfNames", + "top" + ] + }, + "summary": null, + "value": "group1" + } +}
\ No newline at end of file |