freeipa/install/ui/test
Petr Vobornik 14ac2193fe Add and remove dns per-domain permission in Web UI
This patch adds support for new per-domain permissions to Web UI.

User with assigned permission (through role,priviledge) can edit DNS zone. These permissions can be added/remove by ipa dnszone-{add/remove}permission $dnszone command.

For adding/removing of this permission in Web UI new actions in DNS zone action list were created. DNS zone object doesn't contain information about existance of related permission. Such information is required for enabling/disabling of new actions. Web UI has to search for the permission to get it. DNS zone facet was modified to use batch command, in a same way as user facet, for loading dnszone and the permission at the same time - on load.

Batch command has a feature to report all errors. Such behavior is unwanted because we expect that permission-show command will fail when the permission doesn't exist. Batch command was therefore modified to not report commands which has retry attribute set to false. This attr was chosen because it has similar purpose in single command execution.

New actions should be enabled only for users with appropriate rights. It is not possible to obtain rights for certain action in advance so an approximation is used: write right for dns zones' managedby attribute.

https://fedorahosted.org/freeipa/ticket/2851
2012-07-11 16:33:10 +02:00
..
bin Show password expiration date. 2012-02-01 15:51:50 +01:00
conf Added functional test runner. 2011-04-05 21:21:54 +00:00
data Add and remove dns per-domain permission in Web UI 2012-07-11 16:33:10 +02:00
functional Fixed resizing issues. 2011-06-13 09:23:29 -04:00
lib Added functional test runner. 2011-04-05 21:21:54 +00:00
aci_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
aci_tests.js Added attrs field to permission for target=subtree 2012-04-10 13:19:36 +02:00
all_tests.html Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
association_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
association_tests.js Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
certificate_tests.html jQuery ordered map. 2011-05-20 12:11:47 -04:00
certificate_tests.js Fixed unit tests after widget refactoring 2011-12-05 16:02:01 +00:00
details_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
details_tests.js Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
entity_tests.html Moved facet code into facet.js. 2011-11-04 16:51:43 +01:00
entity_tests.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
index.html Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
ip_tests.html Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
ip_tests.js Fixed IPv6 validation special case: single colon 2012-01-03 21:28:53 -06:00
ipa_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
ipa_tests.js Fixed unit tests after widget refactoring 2011-12-05 16:02:01 +00:00
jsl.conf Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
navigation_tests.html Moved facet code into facet.js. 2011-11-04 16:51:43 +01:00
navigation_tests.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
ordered_map_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
ordered_map_tests.js jQuery ordered map. 2011-05-20 12:11:47 -04:00
qunit.css rename static to ui 2011-01-20 14:12:47 +00:00
qunit.js rename static to ui 2011-01-20 14:12:47 +00:00
README rename static to ui 2011-01-20 14:12:47 +00:00
widget_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
widget_tests.js Fixed evaluating checkbox dirty status 2012-03-15 16:08:02 +01:00

http://www.freeipa.org/page/UI_Unit_Tests