From eb8f091c9bfce3f6d4004bbf214e169aa3f8fe29 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 11 Feb 2011 18:04:04 -0600 Subject: Fixed association facets. The association config has been removed because it incorrectly assumes there is only one association between two entities. Now each association is defined separately using association facets. The service.py has been modified to specify the correct relationships. The API.txt has been updated. https://fedorahosted.org/freeipa/ticket/960 --- install/ui/test/association_tests.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'install/ui/test/association_tests.js') diff --git a/install/ui/test/association_tests.js b/install/ui/test/association_tests.js index a65678a7f..41b113d76 100644 --- a/install/ui/test/association_tests.js +++ b/install/ui/test/association_tests.js @@ -23,7 +23,7 @@ module('associate'); test("Testing serial_associator().", function() { - expect(10); + expect(7); var orig_ipa_cmd = IPA.cmd; @@ -42,15 +42,10 @@ test("Testing serial_associator().", function() { counter++; equals( - name, params.method, + name, params.other_entity+'_'+params.method, "Checking IPA.cmd() parameter: method" ); - equals( - objname, params.other_entity, - "Checking IPA.cmd() parameter: object name" - ); - equals( args[0], "user"+counter, "Checking IPA.cmd() parameter: primary key" @@ -65,7 +60,7 @@ test("Testing serial_associator().", function() { ok(true, "on_success() is invoked."); }; - var associator = serial_associator(params); + var associator = IPA.serial_associator(params); associator.execute(); IPA.cmd = orig_ipa_cmd; @@ -73,7 +68,7 @@ test("Testing serial_associator().", function() { test("Testing bulk_associator().", function() { - expect(5); + expect(4); var orig_ipa_cmd = IPA.cmd; @@ -92,15 +87,10 @@ test("Testing bulk_associator().", function() { counter++; equals( - name, params.method, + name, params.entity_name+'_'+params.method, "Checking IPA.cmd() parameter: method" ); - equals( - objname, params.entity_name, - "Checking IPA.cmd() parameter: object name" - ); - equals( args[0], params.pkey, "Checking IPA.cmd() parameter: primary key" @@ -120,7 +110,7 @@ test("Testing bulk_associator().", function() { ok(true, "on_success() is invoked."); }; - var associator = bulk_associator(params); + var associator = IPA.bulk_associator(params); associator.execute(); IPA.cmd = orig_ipa_cmd; -- cgit