From 199d6815d49617b4b438a93ccf99e1e4e32a6221 Mon Sep 17 00:00:00 2001 From: Petr Voborník Date: Wed, 25 Jan 2012 13:06:15 +0100 Subject: Automember UI New UI for automember. Implemented: * search facet core * rule details facet * attribute_table_widget - new base class for tables which contains multivalued attribute with special add/remove commands * adding/removing conditions in details facet TODO: * label translations * UI for defining default rules https://fedorahosted.org/freeipa/ticket/2195 --- install/ui/test/data/automembergroup_add.json | 21 +++++++++++++++ .../ui/test/data/automembergroup_find_pkeys.json | 24 +++++++++++++++++ .../ui/test/data/automembergroup_get_records.json | 27 +++++++++++++++++++ install/ui/test/data/automembergroup_show.json | 31 ++++++++++++++++++++++ install/ui/test/data/automemberhostgroup_add.json | 21 +++++++++++++++ .../test/data/automemberhostgroup_find_pkeys.json | 24 +++++++++++++++++ .../test/data/automemberhostgroup_get_records.json | 27 +++++++++++++++++++ install/ui/test/data/automemberhostgroup_show.json | 30 +++++++++++++++++++++ install/ui/test/data/ipa_init.json | 1 + 9 files changed, 206 insertions(+) create mode 100644 install/ui/test/data/automembergroup_add.json create mode 100644 install/ui/test/data/automembergroup_find_pkeys.json create mode 100644 install/ui/test/data/automembergroup_get_records.json create mode 100644 install/ui/test/data/automembergroup_show.json create mode 100644 install/ui/test/data/automemberhostgroup_add.json create mode 100644 install/ui/test/data/automemberhostgroup_find_pkeys.json create mode 100644 install/ui/test/data/automemberhostgroup_get_records.json create mode 100644 install/ui/test/data/automemberhostgroup_show.json (limited to 'install/ui/test') diff --git a/install/ui/test/data/automembergroup_add.json b/install/ui/test/data/automembergroup_add.json new file mode 100644 index 00000000..7b896d2a --- /dev/null +++ b/install/ui/test/data/automembergroup_add.json @@ -0,0 +1,21 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "automembertargetgroup": [ + "cn=foogroup,cn=groups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foogroup" + ], + "dn": "cn=foogroup,cn=group,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + }, + "summary": "Added automember rule \"foogroup\"", + "value": "foogroup" + } +} \ No newline at end of file diff --git a/install/ui/test/data/automembergroup_find_pkeys.json b/install/ui/test/data/automembergroup_find_pkeys.json new file mode 100644 index 00000000..c8918c6c --- /dev/null +++ b/install/ui/test/data/automembergroup_find_pkeys.json @@ -0,0 +1,24 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "result": [ + { + "automembertargetgroup": [ + "cn=foogroup,cn=groups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foogroup" + ], + "dn": "cn=foogroup,cn=group,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + } + ], + "summary": "1 rules matched", + "truncated": false + } +} \ No newline at end of file diff --git a/install/ui/test/data/automembergroup_get_records.json b/install/ui/test/data/automembergroup_get_records.json new file mode 100644 index 00000000..82bcc710 --- /dev/null +++ b/install/ui/test/data/automembergroup_get_records.json @@ -0,0 +1,27 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "results": [ + { + "error": null, + "result": { + "automembertargetgroup": [ + "cn=foogroup,cn=groups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foogroup" + ], + "dn": "cn=foogroup,cn=group,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + }, + "summary": null, + "value": "foogroup" + } + ] + } +} \ No newline at end of file diff --git a/install/ui/test/data/automembergroup_show.json b/install/ui/test/data/automembergroup_show.json new file mode 100644 index 00000000..4b3f0b91 --- /dev/null +++ b/install/ui/test/data/automembergroup_show.json @@ -0,0 +1,31 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "automemberexclusiveregex": [ + "cn=^user5", + "cn=^user6" + ], + "automemberinclusiveregex": [ + "cn=^user[0-9]+" + ], + "automembertargetgroup": [ + "cn=foogroup,cn=groups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foogroup" + ], + "description": [ + "userrule description" + ], + "dn": "cn=foogroup,cn=group,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + }, + "summary": null, + "value": "foogroup" + } +} \ No newline at end of file diff --git a/install/ui/test/data/automemberhostgroup_add.json b/install/ui/test/data/automemberhostgroup_add.json new file mode 100644 index 00000000..e58d2188 --- /dev/null +++ b/install/ui/test/data/automemberhostgroup_add.json @@ -0,0 +1,21 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "automembertargetgroup": [ + "cn=foohostgroup,cn=hostgroups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foohostgroup" + ], + "dn": "cn=foohostgroup,cn=hostgroup,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + }, + "summary": "Added automember rule \"foohostgroup\"", + "value": "foohostgroup" + } +} \ No newline at end of file diff --git a/install/ui/test/data/automemberhostgroup_find_pkeys.json b/install/ui/test/data/automemberhostgroup_find_pkeys.json new file mode 100644 index 00000000..90968346 --- /dev/null +++ b/install/ui/test/data/automemberhostgroup_find_pkeys.json @@ -0,0 +1,24 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "result": [ + { + "automembertargetgroup": [ + "cn=foohostgroup,cn=hostgroups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foohostgroup" + ], + "dn": "cn=foohostgroup,cn=hostgroup,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + } + ], + "summary": "1 rules matched", + "truncated": false + } +} \ No newline at end of file diff --git a/install/ui/test/data/automemberhostgroup_get_records.json b/install/ui/test/data/automemberhostgroup_get_records.json new file mode 100644 index 00000000..6ae23e32 --- /dev/null +++ b/install/ui/test/data/automemberhostgroup_get_records.json @@ -0,0 +1,27 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "results": [ + { + "error": null, + "result": { + "automembertargetgroup": [ + "cn=foohostgroup,cn=hostgroups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foohostgroup" + ], + "dn": "cn=foohostgroup,cn=hostgroup,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + }, + "summary": null, + "value": "foohostgroup" + } + ] + } +} \ No newline at end of file diff --git a/install/ui/test/data/automemberhostgroup_show.json b/install/ui/test/data/automemberhostgroup_show.json new file mode 100644 index 00000000..e3f7814a --- /dev/null +++ b/install/ui/test/data/automemberhostgroup_show.json @@ -0,0 +1,30 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "automemberexclusiveregex": [ + "fqdn=^web5.example.com" + ], + "automemberinclusiveregex": [ + "fqdn=^web[1-9]+.example.com" + ], + "automembertargetgroup": [ + "cn=foohostgroup,cn=hostgroups,cn=accounts,dc=dev,dc=example,dc=com" + ], + "cn": [ + "foohostgroup" + ], + "description": [ + "hostrule description" + ], + "dn": "cn=foohostgroup,cn=hostgroup,cn=automember,cn=etc,dc=dev,dc=example,dc=com", + "objectclass": [ + "top", + "automemberregexrule" + ] + }, + "summary": null, + "value": "foohostgroup" + } +} \ No newline at end of file diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index fc8ec06b..7b1b0d0a 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -368,6 +368,7 @@ }, "tabs": { "audit": "Audit", + "automember": "Automember", "automount": "Automount", "dns": "DNS", "hbac": "Host Based Access Control", -- cgit