"Fossies" - the Fresh Open Source Software Archive

Member "opensaf-5.21.09/src/imm/apitest/management/test_saImmOmCcbInitialize.c" (14 Sep 2021, 18374 Bytes) of package /linux/misc/opensaf-5.21.09.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "test_saImmOmCcbInitialize.c": 5.21.06_vs_5.21.09.

    1 /*      -*- OpenSAF  -*-
    2  *
    3  * (C) Copyright 2008 The OpenSAF Foundation
    4  *
    5  * This program is distributed in the hope that it will be useful, but
    6  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    7  * or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
    8  * under the GNU Lesser General Public License Version 2.1, February 1999.
    9  * The complete license can be accessed from the following location:
   10  * http://opensource.org/licenses/lgpl-license.php
   11  * See the Copying file included with the OpenSAF distribution for full
   12  * licensing terms.
   13  *
   14  * Author(s): Ericsson AB
   15  *
   16  */
   17 
   18 #include "imm/apitest/immtest.h"
   19 
   20 void saImmOmCcbInitialize_01(void)
   21 {
   22     const SaImmAdminOwnerNameT adminOwnerName =
   23         (SaImmAdminOwnerNameT) __FUNCTION__;
   24     SaImmAdminOwnerHandleT ownerHandle;
   25     SaImmCcbHandleT ccbHandle;
   26 
   27     safassert(immutil_saImmOmInitialize(&immOmHandle, &immOmCallbacks, &immVersion),
   28           SA_AIS_OK);
   29     safassert(immutil_saImmOmAdminOwnerInitialize(immOmHandle, adminOwnerName,
   30                           SA_TRUE, &ownerHandle),
   31           SA_AIS_OK);
   32 
   33     test_validate(immutil_saImmOmCcbInitialize(ownerHandle, 0, &ccbHandle),
   34               SA_AIS_OK);
   35 
   36     safassert(immutil_saImmOmAdminOwnerFinalize(ownerHandle), SA_AIS_OK);
   37     safassert(immutil_saImmOmFinalize(immOmHandle), SA_AIS_OK);
   38 }
   39 
   40 void saImmOmCcbInitialize_02(void)
   41 {
   42     const SaImmAdminOwnerNameT adminOwnerName =
   43         (SaImmAdminOwnerNameT) __FUNCTION__;
   44     SaImmAdminOwnerHandleT ownerHandle;
   45     SaImmCcbHandleT ccbHandle;
   46 
   47     safassert(immutil_saImmOmInitialize(&immOmHandle, &immOmCallbacks, &immVersion),
   48           SA_AIS_OK);
   49     safassert(immutil_saImmOmAdminOwnerInitialize(immOmHandle, adminOwnerName,
   50                           SA_TRUE, &ownerHandle),
   51           SA_AIS_OK);
   52     safassert(immutil_saImmOmAdminOwnerFinalize(ownerHandle), SA_AIS_OK);
   53 
   54     /* already finalized ownerHandle */
   55     rc = immutil_saImmOmCcbInitialize(ownerHandle, 0, &ccbHandle);
   56     if (rc != SA_AIS_ERR_BAD_HANDLE)
   57         goto done;
   58 
   59     /* invalid ownerHandle */
   60     rc = immutil_saImmOmCcbInitialize(-1, 0, &ccbHandle);
   61 
   62 done:
   63     test_validate(rc, SA_AIS_ERR_BAD_HANDLE);
   64     safassert(immutil_saImmOmFinalize(immOmHandle), SA_AIS_OK);
   65 }
   66 
   67 void saImmOmCcbInitialize_03(void)
   68 {
   69     const SaImmAdminOwnerNameT adminOwnerName =
   70         (SaImmAdminOwnerNameT) __FUNCTION__;
   71     SaImmAdminOwnerHandleT ownerHandle;
   72     SaImmCcbHandleT ccbHandle;
   73 
   74     safassert(immutil_saImmOmInitialize(&immOmHandle, &immOmCallbacks, &immVersion),
   75           SA_AIS_OK);
   76     safassert(immutil_saImmOmAdminOwnerInitialize(immOmHandle, adminOwnerName,
   77                           SA_TRUE, &ownerHandle),
   78           SA_AIS_OK);
   79 
   80     test_validate(immutil_saImmOmCcbInitialize(ownerHandle, -1, &ccbHandle),
   81               SA_AIS_ERR_INVALID_PARAM);
   82     safassert(immutil_saImmOmFinalize(immOmHandle), SA_AIS_OK);
   83 }
   84 
   85 void saImmOmCcbInitialize_04(void)
   86 {
   87     const SaImmAdminOwnerNameT adminOwnerName =
   88         (SaImmAdminOwnerNameT) __FUNCTION__;
   89     SaImmAdminOwnerHandleT ownerHandle;
   90     SaImmCcbHandleT ccbHandle;
   91 
   92     safassert(immutil_saImmOmInitialize(&immOmHandle, &immOmCallbacks, &immVersion),
   93           SA_AIS_OK);
   94     safassert(immutil_saImmOmAdminOwnerInitialize(immOmHandle, adminOwnerName,
   95                           SA_TRUE, &ownerHandle),
   96           SA_AIS_OK);
   97 
   98     safassert(immutil_saImmOmCcbInitialize(ownerHandle, 0, &ccbHandle), SA_AIS_OK);
   99 
  100     test_validate(saImmOmCcbGetErrorStrings(ccbHandle, NULL),
  101               SA_AIS_ERR_INVALID_PARAM);
  102 
  103     safassert(immutil_saImmOmFinalize(immOmHandle), SA_AIS_OK);
  104 }
  105 
  106 void saImmOmCcbInitialize_05(void)
  107 {
  108     const SaImmAdminOwnerNameT adminOwnerName =
  109         (SaImmAdminOwnerNameT) __FUNCTION__;
  110     SaImmAdminOwnerHandleT ownerHandle;
  111     SaImmCcbHandleT ccbHandle;
  112     const SaStringT *errorStrings;
  113 
  114     safassert(immutil_saImmOmInitialize(&immOmHandle, &immOmCallbacks, &immVersion),
  115           SA_AIS_OK);
  116     safassert(immutil_saImmOmAdminOwnerInitialize(immOmHandle, adminOwnerName,
  117                           SA_TRUE, &ownerHandle),
  118           SA_AIS_OK);
  119 
  120     safassert(immutil_saImmOmCcbInitialize(ownerHandle, 0, &ccbHandle), SA_AIS_OK);
  121 
  122     test_validate(saImmOmCcbGetErrorStrings(ccbHandle, &errorStrings),
  123               SA_AIS_OK);
  124 
  125     safassert(immutil_saImmOmFinalize(immOmHandle), SA_AIS_OK);
  126 }
  127 
  128 extern void saImmOmCcbObjectCreate_01(void);
  129 extern void saImmOmCcbObjectCreate_02(void);
  130 extern void saImmOmCcbObjectCreate_03(void);
  131 extern void saImmOmCcbObjectCreate_04(void);
  132 extern void saImmOmCcbObjectCreate_05(void);
  133 extern void saImmOmCcbObjectCreate_06(void);
  134 extern void saImmOmCcbObjectCreate_07(void);
  135 extern void saImmOmCcbObjectCreate_08(void);
  136 extern void saImmOmCcbObjectCreate_09(void);
  137 extern void saImmOmCcbObjectCreate_10(void);
  138 extern void saImmOmCcbObjectCreate_11(void);
  139 extern void saImmOmCcbObjectCreate_12(void);
  140 extern void saImmOmCcbObjectCreate_13(void);
  141 extern void saImmOmCcbObjectCreate_14(void);
  142 extern void saImmOmCcbObjectCreate_15(void);
  143 extern void saImmOmCcbObjectCreate_16(void);
  144 extern void saImmOmCcbObjectCreate_17(void);
  145 extern void saImmOmCcbObjectCreate_18(void);
  146 extern void saImmOmCcbObjectCreate_19(void);
  147 extern void saImmOmCcbObjectCreate_20(void);
  148 extern void saImmOmCcbObjectCreate_21(void);
  149 extern void saImmOmCcbObjectDelete_01(void);
  150 extern void saImmOmCcbObjectDelete_02(void);
  151 extern void saImmOmCcbObjectDelete_03(void);
  152 extern void saImmOmCcbObjectDelete_04(void);
  153 extern void saImmOmCcbObjectDelete_05(void);
  154 extern void saImmOmCcbObjectDelete_06(void);
  155 extern void saImmOmCcbObjectDelete_07(void);
  156 extern void saImmOmCcbObjectDelete_08(void);
  157 extern void saImmOmCcbObjectDelete_09(void);
  158 extern void saImmOmCcbObjectDelete_10(void);
  159 extern void saImmOmCcbObjectDelete_11(void);
  160 extern void saImmOmCcbObjectDelete_12(void);
  161 extern void saImmOmCcbObjectDelete_13(void);
  162 extern void saImmOmCcbObjectDelete_14(void);
  163 extern void saImmOmCcbObjectDelete_15(void);
  164 extern void saImmOmCcbObjectModify_2_01(void);
  165 extern void saImmOmCcbObjectModify_2_02(void);
  166 extern void saImmOmCcbObjectModify_2_03(void);
  167 extern void saImmOmCcbObjectModify_2_04(void);
  168 extern void saImmOmCcbObjectModify_2_05(void);
  169 extern void saImmOmCcbObjectModify_2_06(void);
  170 extern void saImmOmCcbObjectModify_2_07(void);
  171 extern void saImmOmCcbObjectModify_2_08(void);
  172 extern void saImmOmCcbObjectModify_2_09(void);
  173 extern void saImmOmCcbObjectModify_2_10(void);
  174 extern void saImmOmCcbObjectModify_2_11(void);
  175 extern void saImmOmCcbObjectModify_2_12(void);
  176 extern void saImmOmCcbObjectModify_2_13(void);
  177 extern void saImmOmCcbObjectModify_2_14(void);
  178 extern void saImmOmCcbObjectModify_2_15(void);
  179 extern void saImmOmCcbObjectModify_2_16(void);
  180 extern void saImmOmCcbObjectModify_2_17(void);
  181 extern void saImmOmCcbObjectModify_2_18(void);
  182 extern void saImmOmCcbObjectModify_2_19(void);
  183 extern void saImmOmCcbObjectModify_2_20(void);
  184 extern void saImmOmCcbObjectModify_2_21(void);
  185 extern void saImmOmCcbObjectModify_2_22(void);
  186 extern void saImmOmCcbObjectModify_2_23(void);
  187 extern void saImmOmCcbObjectModify_2_24(void);
  188 extern void saImmOmCcbApply_01(void);
  189 extern void saImmOmCcbApply_02(void);
  190 extern void saImmOmCcbFinalize_01(void);
  191 extern void saImmOmCcbFinalize_02(void);
  192 extern void saImmOmCcbAbort_01(void);
  193 extern void saImmOmCcbAbort_02(void);
  194 extern void saImmOmCcbAbort_03(void);
  195 extern void saImmOmCcbValidate_01(void);
  196 extern void saImmOmCcbValidate_02(void);
  197 extern void saImmOmCcbObjectRead_01(void);
  198 extern void saImmOmCcbObjectRead_02(void);
  199 extern void saImmOmCcbObjectRead_03(void);
  200 extern void test_modify_syncr_timeout_success(void);
  201 extern void test_modify_syncr_timeout_failure(void);
  202 extern void test_modify_syncr_timeout_with_imm_client_restart(void);
  203 extern void test_restore_syncr_timeout_with_setenv(void);
  204 extern void test_restore_syncr_timeout_without_setenv(void);
  205 
  206 __attribute__((constructor)) static void saImmOmInitialize_constructor(void)
  207 {
  208     test_suite_add(6, "Configuration Changes");
  209     test_case_add(6, saImmOmCcbInitialize_01,
  210               "saImmOmCcbInitialize - SA_AIS_OK");
  211     test_case_add(6, saImmOmCcbInitialize_02,
  212               "saImmOmCcbInitialize - SA_AIS_ERR_BAD_HANDLE");
  213     test_case_add(6, saImmOmCcbInitialize_03,
  214               "saImmOmCcbInitialize - SA_AIS_ERR_INVALID_PARAM");
  215 
  216     test_case_add(6, saImmOmCcbObjectCreate_01,
  217               "saImmOmCcbObjectCreate - SA_AIS_OK");
  218     test_case_add(6, saImmOmCcbObjectCreate_02,
  219               "saImmOmCcbObjectCreate - SA_AIS_ERR_BAD_HANDLE");
  220     test_case_add(6, saImmOmCcbObjectCreate_03,
  221               "saImmOmCcbObjectCreate - SA_AIS_ERR_INVALID_PARAM");
  222     test_case_add(6, saImmOmCcbObjectCreate_04,
  223               "saImmOmCcbObjectCreate - SA_AIS_ERR_BAD_OPERATION");
  224     test_case_add(6, saImmOmCcbObjectCreate_05,
  225               "saImmOmCcbObjectCreate - SA_AIS_ERR_EXIST");
  226     test_case_add(6, saImmOmCcbObjectCreate_06,
  227               "saImmOmCcbObjectCreate - SA_AIS_ERR_NOT_EXIST");
  228     test_case_add(6, saImmOmCcbObjectCreate_07,
  229               "saImmOmCcbObjectCreate - SA_AIS_OK, association class");
  230     test_case_add(
  231         6, saImmOmCcbObjectCreate_08,
  232         "saImmOmCcbObjectCreate - SA_AIS_OK, empty SaStringT attribute");
  233     test_case_add(
  234         6, saImmOmCcbObjectCreate_09,
  235         "saImmOmCcbObjectCreate - SA_AIS_ERR_INVALID_PARAM, non-valid UTF-8 rdn string");
  236     test_case_add(
  237         6, saImmOmCcbObjectCreate_10,
  238         "saImmOmCcbObjectCreate - SA_AIS_ERR_INVALID_PARAM, valid UTF-8 non 7-bit ASCII rdn string");
  239     test_case_add(
  240         6, saImmOmCcbObjectCreate_11,
  241         "saImmOmCcbObjectCreate - SA_AIS_ERR_INVALID_PARAM, rdn contains control characters");
  242     test_case_add(
  243         6, saImmOmCcbObjectCreate_12,
  244         "saImmOmCcbObjectCreate - SA_AIS_ERR_INVALID_PARAM, rdn is empty string");
  245     test_case_add(6, saImmOmCcbObjectCreate_13,
  246               "saImmOmCcbObjectCreate - SA_AIS_OK, empty SaAnyT");
  247     test_case_add(
  248         6, saImmOmCcbObjectCreate_14,
  249         "saImmOmCcbObjectCreate - SA_AIS_OK, create object with NO_DANGLING attribute");
  250     test_case_add(
  251         6, saImmOmCcbObjectCreate_15,
  252         "saImmOmCcbObjectCreate - SA_AIS_OK, NO_DANGLING reference");
  253     test_case_add(
  254         6, saImmOmCcbObjectCreate_16,
  255         "saImmOmCcbObjectCreate - SA_AIS_ERR_FAILED_OPERATION, NO_DANGLING reference to a non-existing object");
  256     test_case_add(
  257         6, saImmOmCcbObjectCreate_17,
  258         "saImmOmCcbObjectCreate - SA_AIS_OK, NO_DANGLING - bidirectional references");
  259     test_case_add(
  260         6, saImmOmCcbObjectCreate_18,
  261         "saImmOmCcbObjectCreate - SA_AIS_ERR_BAD_OPERATION, create object with NO_DANGLING reference to a deleted object by the same CCB");
  262     test_case_add(
  263         6, saImmOmCcbObjectCreate_19,
  264         "saImmOmCcbObjectCreate - SA_AIS_ERR_BUSY, create object with NO_DANGLING reference to a deleted object by another CCB");
  265     test_case_add(
  266         6, saImmOmCcbObjectCreate_20,
  267         "saImmOmCcbObjectCreate - SA_AIS_ERR_BUSY, create object with NO_DANGLING reference to a created object by another CCB");
  268     test_case_add(
  269         6, saImmOmCcbObjectCreate_21,
  270         "saImmOmCcbObjectCreate - SA_AIS_ERR_INVALID_PARAM, create object with NO_DANGLING reference to non-persistence RTO");
  271 
  272     test_case_add(6, saImmOmCcbObjectDelete_01,
  273               "saImmOmCcbObjectDelete - SA_AIS_OK");
  274     test_case_add(6, saImmOmCcbObjectDelete_02,
  275               "saImmOmCcbObjectDelete - SA_AIS_ERR_BAD_HANDLE");
  276     test_case_add(6, saImmOmCcbObjectDelete_03,
  277               "saImmOmCcbObjectDelete - SA_AIS_ERR_BAD_OPERATION");
  278     test_case_add(6, saImmOmCcbObjectDelete_04,
  279               "saImmOmCcbObjectDelete - SA_AIS_ERR_NOT_EXIST");
  280     test_case_add(6, saImmOmCcbObjectDelete_05,
  281               "saImmOmCcbObjectDelete - SA_AIS_ERR_BUSY");
  282     test_case_add(6, saImmOmCcbObjectDelete_06,
  283               "saImmOmCcbObjectDelete - SA_AIS_OK, NO_DANGLING");
  284     test_case_add(
  285         6, saImmOmCcbObjectDelete_07,
  286         "saImmOmCcbObjectDelete - SA_AIS_OK, NO_DANGLING - cascade deleting");
  287     test_case_add(
  288         6, saImmOmCcbObjectDelete_08,
  289         "saImmOmCcbObjectDelete - SA_AIS_ERR_FAILED_OPERATION, delete NO_DANGLING reference");
  290     test_case_add(
  291         6, saImmOmCcbObjectDelete_09,
  292         "saImmOmCcbObjectDelete - SA_AIS_ERR_BUSY, NO_DANGLING - delete two objects with two CCBs");
  293     test_case_add(
  294         6, saImmOmCcbObjectDelete_10,
  295         "saImmOmCcbObjectDelete - SA_AIS_OK, NO_DANGLING - delete two objects with bidirectional references in the same CCB");
  296     test_case_add(
  297         6, saImmOmCcbObjectDelete_11,
  298         "saImmOmCcbObjectDelete - SA_AIS_ERR_FAILED_OPERATION, NO_DANGLING - delete object with bidirectional references in individual CCB");
  299     test_case_add(
  300         6, saImmOmCcbObjectDelete_12,
  301         "saImmOmCcbObjectDelete - SA_AIS_ERR_FAILED_OPERATION, set NO_DANGLING reference and then delete reffered object");
  302     test_case_add(
  303         6, saImmOmCcbObjectDelete_13,
  304         "saImmOmCcbObjectDelete - SA_AIS_ERR_FAILED_OPERATION, replace NO_DANGLING reference and then delete reffered object");
  305     test_case_add(
  306         6, saImmOmCcbObjectDelete_14,
  307         "saImmOmCcbObjectDelete - SA_AIS_ERR_FAILED_OPERATION, set NO_DANGLING reference to an object created in the same CCB and then delete reffered object");
  308     test_case_add(
  309         6, saImmOmCcbObjectDelete_15,
  310         "saImmOmCcbObjectDelete - SA_AIS_OK, operate on CCB handle which had been previously applied but got TIMEOUT");
  311 
  312     test_case_add(6, saImmOmCcbObjectModify_2_01,
  313               "saImmOmCcbObjectModify_2 - SA_AIS_OK");
  314     test_case_add(6, saImmOmCcbObjectModify_2_02,
  315               "saImmOmCcbObjectModify_2 - SA_AIS_ERR_BAD_HANDLE");
  316     test_case_add(6, saImmOmCcbObjectModify_2_03,
  317               "saImmOmCcbObjectModify_2 - SA_AIS_ERR_INVALID_PARAM");
  318     test_case_add(6, saImmOmCcbObjectModify_2_04,
  319               "saImmOmCcbObjectModify_2 - SA_AIS_ERR_BAD_OPERATION");
  320     test_case_add(6, saImmOmCcbObjectModify_2_05,
  321               "saImmOmCcbObjectModify_2 - SA_AIS_ERR_NOT_EXIST");
  322     test_case_add(6, saImmOmCcbObjectModify_2_06,
  323               "saImmOmCcbObjectModify_2 - SA_AIS_ERR_BUSY");
  324     test_case_add(
  325         6, saImmOmCcbObjectModify_2_09,
  326         "saImmOmCcbObjectModify_2 - SA_AIS_ERR_INVALID_PARAM, non-valid UTF-8 string");
  327     test_case_add(6, saImmOmCcbObjectModify_2_10,
  328               "saImmOmCcbObjectModify_2 - SA_AIS_OK, UTF-8 string");
  329     test_case_add(
  330         6, saImmOmCcbObjectModify_2_11,
  331         "saImmOmCcbObjectModify_2 - SA_AIS_OK, control characters");
  332     test_case_add(6, saImmOmCcbObjectModify_2_12,
  333               "saImmOmCcbObjectModify_2 - SA_AIS_OK, empty string");
  334     test_case_add(6, saImmOmCcbObjectModify_2_13,
  335               "saImmOmCcbObjectModify_2 - SA_AIS_OK, empty SaAnyT");
  336     test_case_add(
  337         6, saImmOmCcbObjectModify_2_14,
  338         "saImmOmCcbObjectModify_2 - SA_AIS_ERR_INVALID_PARAM, duplicates not allowed");
  339     test_case_add(
  340         6, saImmOmCcbObjectModify_2_15,
  341         "saImmOmCcbObjectModify_2 - SA_AIS_OK, set NO_DANGLING reference");
  342     test_case_add(
  343         6, saImmOmCcbObjectModify_2_16,
  344         "saImmOmCcbObjectModify_2 - SA_AIS_OK, replace NO_DANGLING reference");
  345     test_case_add(
  346         6, saImmOmCcbObjectModify_2_17,
  347         "saImmOmCcbObjectModify_2 - SA_AIS_ERR_INVALID_PARAM, set NO_DANGLING reference to non-persistent RTO");
  348     test_case_add(
  349         6, saImmOmCcbObjectModify_2_18,
  350         "saImmOmCcbObjectModify_2 - SA_AIS_ERR_BAD_OPERATION, set NO_DANGLING reference to a deleted object by the same CCB");
  351     test_case_add(
  352         6, saImmOmCcbObjectModify_2_19,
  353         "saImmOmCcbObjectModify_2 - SA_AIS_ERR_BUSY, set NO_DANGLING reference to a deleted object by another CCB");
  354     test_case_add(
  355         6, saImmOmCcbObjectModify_2_20,
  356         "saImmOmCcbObjectModify_2 - SA_AIS_ERR_BUSY, set NO_DANGLING reference to a create object by another CCB");
  357     test_case_add(
  358         6, saImmOmCcbObjectModify_2_21,
  359         "saImmOmCcbObjectModify_2 - SA_AIS_OK, set NO_DANGLING reference to an object created in the same CCB");
  360     test_case_add(
  361         6, saImmOmCcbObjectModify_2_22,
  362         "saImmOmCcbObjectModify_2 - STRONG_DEFAULT, Set value of attribute to NULL");
  363     test_case_add(
  364         6, saImmOmCcbObjectModify_2_23,
  365         "saImmOmCcbObjectModify_2 - STRONG_DEFAULT, Set value of multi-valued attribute to NULL");
  366     test_case_add(
  367         6, saImmOmCcbObjectModify_2_24,
  368         "saImmOmCcbObjectModify_2 - STRONG_DEFAULT, Delete all values of multi-valued attribute");
  369 
  370     test_case_add(6, saImmOmCcbApply_01, "saImmOmCcbApply - SA_AIS_OK");
  371     test_case_add(6, saImmOmCcbApply_02,
  372               "saImmOmCcbApply - SA_AIS_ERR_BAD_HANDLE");
  373 
  374     test_case_add(6, saImmOmCcbFinalize_01,
  375               "saImmOmCcbFinalize - SA_AIS_OK");
  376     test_case_add(6, saImmOmCcbFinalize_02,
  377               "saImmOmCcbFinalize - SA_AIS_ERR_BAD_HANDLE");
  378 
  379     test_case_add(6, saImmOmCcbInitialize_04,
  380               "saImmOmCcbGetErrorStrings - SA_AIS_ERR_INVALID_PARAM");
  381     test_case_add(6, saImmOmCcbInitialize_05,
  382               "saImmOmCcbGetErrorStrings - SA_AIS_OK");
  383 
  384     test_case_add(
  385         6, saImmOmCcbObjectModify_2_08,
  386         "saImmOmCcbObjectModify_2 SA_IMM_ATTR_DELETE multi/single - SA_AIS_OK");
  387     test_case_add(
  388         6, saImmOmCcbObjectModify_2_07,
  389         "saImmOmCcbObjectModify_2 SA_IMM_ATTR_DELETE multi/multi - SA_AIS_OK");
  390     test_case_add(6, saImmOmCcbAbort_01, "saImmOmCcbAbort - SA_AIS_OK");
  391     test_case_add(
  392         6, saImmOmCcbAbort_02,
  393         "saImmOmCcbAbort  continued ccb handle usage - SA_AIS_OK");
  394     test_case_add(
  395         6, saImmOmCcbAbort_03,
  396         "saImmOmCcbAbort after apply with lower imm version - SA_AIS_ERR_VERSION");
  397     test_case_add(6, saImmOmCcbValidate_01,
  398               "saImmOmCcbValidate followed by apply - SA_AIS_OK");
  399     test_case_add(6, saImmOmCcbValidate_02,
  400               "saImmOmCcbValidate followed by abort - SA_AIS_OK");
  401 
  402     test_case_add(6, saImmOmCcbObjectRead_01,
  403               "saImmOmCcbObjectRead Normal Case - SA_AIS_OK");
  404     test_case_add(6, saImmOmCcbObjectRead_02,
  405               "saImmOmCcbObjectRead escalated to modify - SA_AIS_OK");
  406     test_case_add(6, saImmOmCcbObjectRead_03,
  407               "saImmOmCcbObjectRead escalated to delete - SA_AIS_OK");
  408     test_case_add(6, test_modify_syncr_timeout_success,
  409               "saImmOmCcbObjectModify_2 - SA_AIS_OK, Set a valid "
  410               "value to saImmSyncrTimeout");
  411     test_case_add(6, test_modify_syncr_timeout_failure,
  412               "saImmOmCcbObjectModify_2 - SA_AIS_ERR_BAD_OPERATION, "
  413               "Set a invalid value to saImmSyncrTimeout");
  414     test_case_add(6, test_modify_syncr_timeout_with_imm_client_restart,
  415               "saImmOmCcbObjectModify_2 - SA_AIS_OK, Set a valid "
  416               "value to saImmSyncrTimeout then verify syncr timeout "
  417               "after imm client restart");
  418     test_case_add(6, test_restore_syncr_timeout_with_setenv,
  419               "saImmOmCcbObjectModify_2 - SA_AIS_OK, set variable "
  420               "IMMA_SYNCR_TIMEOUT=600 and saImmSyncrTimeout=0 then "
  421               "verify syncr timeout");
  422     test_case_add(6, test_restore_syncr_timeout_without_setenv,
  423               "saImmOmCcbObjectModify_2 - SA_AIS_OK, set attribute "
  424               "saImmSyncrTimeout=0 then verify syncr timeout");
  425 }