From 5da8313b668340494f06afe6d3459f368948588f Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 16 Nov 2010 18:10:40 -0600 Subject: Service and Host Provisioning The service and host details pages have been modified to display Kerberos key provisioning status and to provide a way to unprovision. The host enrollment via OTP has not been implemented yet. The ipa_details_field has been modified to remove any old
tags it created in the previous load operation. This is to support other widgets that need to perform load operation without removing
tags. The certificate_status_panel has been converted into a widget. The host entity has been rewritten using the new framework. The unit tests has been updated. --- install/static/test/details_tests.js | 69 ++++++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 27 deletions(-) (limited to 'install/static/test') diff --git a/install/static/test/details_tests.js b/install/static/test/details_tests.js index 2bb9b9c66..04738143c 100644 --- a/install/static/test/details_tests.js +++ b/install/static/test/details_tests.js @@ -44,7 +44,7 @@ test("Testing ipa_details_section.create().", function() { var container = $("
"); section.create(container); - var dl = container.find('dl'); + var dl = $('dl', container); same( dl.length, 1, @@ -63,15 +63,26 @@ test("Testing ipa_details_section.create().", function() { ); for (var i=0; i 1,"find name in html"); - var dl = container.find('dl'); - + var dl = $('dl', container); ok( dl.length, 'dl is created' ); + var dt = $('dt', dl); same( - dl[0].children.length, 3, - '3 spans' + dt.length, 3, + '3 dt' ); + var span = dt.next(); same( - dl[0].id, section.name, - 'checking section name' + span.length, 3, + '3 span' ); same( - dl[0].children[0].children[0].title, fields[0].name, - 'title matches name' + dl[0].id, section.name, + 'checking section name' ); same( - dl[0].children[0].children[0].innerHTML, fields[0].label+":", + dt[0].innerHTML, fields[0].label+":", 'inner HTML matches label' ); + + var dd = $('dd', span[0]); same( - dl[0].children[2].children[0].title, fields[2].name, - 'title matches fields[2] name' + dd.length, 1, + '1 dd' ); }); -- cgit