From 2d63e28c7825ced7d038d6ea655416f5648e6c23 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 3 Aug 2012 16:18:27 +0200 Subject: Range Web UI Range web UI was implemented. It consist of: * new menu item - 'ranges' in 'IPA Server' tab * new search page * new details page https://fedorahosted.org/freeipa/ticket/2894 --- install/ui/test/data/ipa_init.json | 11 ++++++++ install/ui/test/data/range_add.json | 34 ++++++++++++++++++++++ install/ui/test/data/range_find.json | 32 +++++++++++++++++++++ install/ui/test/data/range_find_pkeys.json | 17 +++++++++++ install/ui/test/data/range_get_records.json | 40 ++++++++++++++++++++++++++ install/ui/test/data/range_mod.json | 43 ++++++++++++++++++++++++++++ install/ui/test/data/range_show.json | 44 +++++++++++++++++++++++++++++ 7 files changed, 221 insertions(+) create mode 100644 install/ui/test/data/range_add.json create mode 100644 install/ui/test/data/range_find.json create mode 100644 install/ui/test/data/range_find_pkeys.json create mode 100644 install/ui/test/data/range_get_records.json create mode 100644 install/ui/test/data/range_mod.json create mode 100644 install/ui/test/data/range_show.json (limited to 'install/ui/test/data') diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json index 6111881ee..32ce1c1e3 100644 --- a/install/ui/test/data/ipa_init.json +++ b/install/ui/test/data/ipa_init.json @@ -361,6 +361,17 @@ "pwpolicy": { "identity": "Password Policy" }, + "range": { + "details": "Range Settings", + "ipabaseid": "Base ID", + "ipabaserid": "Primary RID base", + "ipaidrangesize": "Range size", + "ipanttrusteddomainsid": "Domain SID", + "ipasecondarybaserid": "Secondary RID base", + "type": "Range type", + "type_ad": "Active Directory domain", + "type_local": "Local domain" + }, "role": { "identity": "Role Settings" }, diff --git a/install/ui/test/data/range_add.json b/install/ui/test/data/range_add.json new file mode 100644 index 000000000..bccb88e78 --- /dev/null +++ b/install/ui/test/data/range_add.json @@ -0,0 +1,34 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "cn": [ + "DEV.EXAMPLE.COM_id_range" + ], + "dn": "cn=foo_range,cn=ranges,cn=etc,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com", + "ipabaseid": [ + "107400000" + ], + "ipabaserid": [ + "1000" + ], + "ipaidrangesize": [ + "200000" + ], + "iparangetype": [ + "local domain range" + ], + "ipasecondarybaserid": [ + "100000000" + ], + "objectclass": [ + "top", + "ipaIDrange", + "ipaDomainIDRange" + ] + }, + "summary": "Added ID range \"DEV.EXAMPLE.COM_id_range\"", + "value": "DEV.EXAMPLE.COM_id_range" + } +} \ No newline at end of file diff --git a/install/ui/test/data/range_find.json b/install/ui/test/data/range_find.json new file mode 100644 index 000000000..9d47a94fc --- /dev/null +++ b/install/ui/test/data/range_find.json @@ -0,0 +1,32 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "result": [ + { + "cn": [ + "DEV.EXAMPLE.COM_id_range" + ], + "dn": "cn=example.com_id_range,cn=ranges,cn=etc,dc=dev,dc=example,dc=com", + "ipabaseid": [ + "107400000" + ], + "ipabaserid": [ + "1001" + ], + "ipaidrangesize": [ + "200000" + ], + "iparangetype": [ + "local domain range" + ], + "ipasecondarybaserid": [ + "100000000" + ] + } + ], + "summary": "1 range matched", + "truncated": false + } +} \ No newline at end of file diff --git a/install/ui/test/data/range_find_pkeys.json b/install/ui/test/data/range_find_pkeys.json new file mode 100644 index 000000000..21f91cdbd --- /dev/null +++ b/install/ui/test/data/range_find_pkeys.json @@ -0,0 +1,17 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "result": [ + { + "cn": [ + "DEV.EXAMPLE.COM_id_range" + ], + "dn": "cn=example.com_id_range,cn=ranges,cn=etc,dc=dev,dc=example,dc=com" + } + ], + "summary": "1 range matched", + "truncated": false + } +} \ No newline at end of file diff --git a/install/ui/test/data/range_get_records.json b/install/ui/test/data/range_get_records.json new file mode 100644 index 000000000..5f17c26bd --- /dev/null +++ b/install/ui/test/data/range_get_records.json @@ -0,0 +1,40 @@ +{ + "error": null, + "id": null, + "result": { + "count": 1, + "results": [ + { + "error": null, + "result": { + "cn": [ + "DEV.EXAMPLE.COM_id_range" + ], + "dn": "cn=example.com_id_range,cn=ranges,cn=etc,dc=dev,dc=example,dc=com", + "ipabaseid": [ + "107400000" + ], + "ipabaserid": [ + "1001" + ], + "ipaidrangesize": [ + "200000" + ], + "iparangetype": [ + "local domain range" + ], + "ipasecondarybaserid": [ + "100000000" + ], + "objectclass": [ + "top", + "ipaIDrange", + "ipaDomainIDRange" + ] + }, + "summary": null, + "value": "DEV.EXAMPLE.COM_id_range" + } + ] + } +} \ No newline at end of file diff --git a/install/ui/test/data/range_mod.json b/install/ui/test/data/range_mod.json new file mode 100644 index 000000000..47c72d053 --- /dev/null +++ b/install/ui/test/data/range_mod.json @@ -0,0 +1,43 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "cn": "rscwo", + "ipabaseid": "rscwo", + "ipabaserid": "rscwo", + "ipaidrangesize": "rscwo", + "ipasecondarybaserid": "rscwo", + "nsaccountlock": "rscwo", + "objectclass": "rscwo" + }, + "cn": [ + "DEV.EXAMPLE.COM_id_range" + ], + "ipabaseid": [ + "107400000" + ], + "ipabaserid": [ + "1001" + ], + "ipaidrangesize": [ + "200000" + ], + "iparangetype": [ + "local domain range" + ], + "ipasecondarybaserid": [ + "100000000" + ], + "objectclass": [ + "top", + "ipaIDrange", + "ipaDomainIDRange" + ] + }, + "summary": "Modified ID range \"DEV.EXAMPLE.COM_id_range\"", + "value": "DEV.EXAMPLE.COM_id_range" + } +} \ No newline at end of file diff --git a/install/ui/test/data/range_show.json b/install/ui/test/data/range_show.json new file mode 100644 index 000000000..0bf544fed --- /dev/null +++ b/install/ui/test/data/range_show.json @@ -0,0 +1,44 @@ +{ + "error": null, + "id": null, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "cn": "rscwo", + "ipabaseid": "rscwo", + "ipabaserid": "rscwo", + "ipaidrangesize": "rscwo", + "ipasecondarybaserid": "rscwo", + "nsaccountlock": "rscwo", + "objectclass": "rscwo" + }, + "cn": [ + "DEV.EXAMPLE.COM_id_range" + ], + "dn": "cn=example.com_id_range,cn=ranges,cn=etc,dc=dev,dc=example,dc=com", + "ipabaseid": [ + "107400000" + ], + "ipabaserid": [ + "1000" + ], + "ipaidrangesize": [ + "200000" + ], + "iparangetype": [ + "local domain range" + ], + "ipasecondarybaserid": [ + "100000000" + ], + "objectclass": [ + "top", + "ipaIDrange", + "ipaDomainIDRange" + ] + }, + "summary": null, + "value": "DEV.EXAMPLE.COM_id_range" + } +} \ No newline at end of file -- cgit