[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4168 - trunk/OpenDNSSEC/enforcer/test/cunit

Sion Lloyd sion at nominet.org.uk
Thu Nov 4 15:19:59 CET 2010


Author: sion
Date: 2010-11-04 15:19:59 +0100 (Thu, 04 Nov 2010)
New Revision: 4168

Modified:
   trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_key.c
   trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_request.c
Log:
Fix unit tests.


Modified: trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_key.c
===================================================================
--- trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_key.c	2010-11-04 10:26:16 UTC (rev 4167)
+++ trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_key.c	2010-11-04 14:19:59 UTC (rev 4168)
@@ -288,7 +288,7 @@
     int zone_id = 1;
     int status;
 
-    status = KsmKeyGetUnallocated(policy_id, sm, bits, algorithm, zone_id, &keypair_id);
+    status = KsmKeyGetUnallocated(policy_id, sm, bits, algorithm, zone_id, 1, &keypair_id);
 
     CU_ASSERT_EQUAL(status, 0);
     CU_ASSERT_EQUAL(keypair_id, 3); 
@@ -296,7 +296,7 @@
     status = KsmDnssecKeyCreate(zone_id, keypair_id, KSM_TYPE_ZSK, KSM_STATE_GENERATE, "now", &dnsseckey_id);
     CU_ASSERT_EQUAL(status, 0);
 
-    status = KsmKeyGetUnallocated(policy_id, sm, bits, algorithm, zone_id, &keypair_id);
+    status = KsmKeyGetUnallocated(policy_id, sm, bits, algorithm, zone_id, 1, &keypair_id);
 
     CU_ASSERT_EQUAL(status, 0);
     CU_ASSERT_EQUAL(keypair_id, 4);

Modified: trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_request.c
===================================================================
--- trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_request.c	2010-11-04 10:26:16 UTC (rev 4167)
+++ trunk/OpenDNSSEC/enforcer/test/cunit/test_ksm_request.c	2010-11-04 14:19:59 UTC (rev 4168)
@@ -106,7 +106,7 @@
     char*   datetime = DtParseDateTimeString("now");
 
     /* Allocate a key to the zone (routines previously tested) */
-    status = KsmKeyGetUnallocated(policy_id, sm, bits, algorithm, zone_id, &keypair_id);
+    status = KsmKeyGetUnallocated(policy_id, sm, bits, algorithm, zone_id, 1, &keypair_id);
     CU_ASSERT_EQUAL(status, 0);
 
     status = KsmDnssecKeyCreate(zone_id, keypair_id, KSM_TYPE_ZSK, KSM_STATE_GENERATE, datetime, &dnsseckey_id);




More information about the Opendnssec-commits mailing list