summaryrefslogtreecommitdiffstats
path: root/install/ui/test/navigation_tests.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-05-06 17:04:09 -0400
committerAdam Young <ayoung@redhat.com>2011-05-26 14:53:40 -0400
commit1636d649264348526012b1f699284ad728e8a43d (patch)
treed65f7427070871b8a50ab3dbf4b8bfab65530da6 /install/ui/test/navigation_tests.js
parent5288bdb79ae7602cb72a735fad0c8b6e62a48df0 (diff)
downloadfreeipa-1636d649264348526012b1f699284ad728e8a43d.tar.gz
freeipa-1636d649264348526012b1f699284ad728e8a43d.tar.xz
freeipa-1636d649264348526012b1f699284ad728e8a43d.zip
automount UI
automount implemented using standard facets and containing_entity pkey generation sample data fixtures for automount. messages for automount and HBAC. modified form of the search facet used to nest the automount entities Add works for nested entities. Delete works for all but keys. Since the API for this is going to change, I'm not going to fix it pre-checkin. All the places the PKEY prefix is needed uses a single function. Added breadcrumb trail into title. update ipa_init sample data add redirect logic for pages without pkeys. add and delete link to appropriate entities for nested search facet. Using on demand entities. Fixed breadcrumbs.
Diffstat (limited to 'install/ui/test/navigation_tests.js')
-rw-r--r--install/ui/test/navigation_tests.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js
index d9bcc8eb..9126fae3 100644
--- a/install/ui/test/navigation_tests.js
+++ b/install/ui/test/navigation_tests.js
@@ -41,10 +41,14 @@ test("Testing IPA.navigation.create().", function() {
var entity;
var user_mock_called = false;
var group_mock_called = false;
+ //Force reset of entities
+ IPA.entities = $.ordered_map();
IPA.entity_factories.user = function() {
var that = IPA.entity({name: 'user',
metadata:IPA.metadata.objects.user});
+ that.add_facet(IPA.search_facet({'entity_name':'user'}));
+
that.setup = function(container){
user_mock_called = true;
same(container.attr('name'), 'user', 'user container name');