src/log/Makefile.am            |  4 +++-
 src/log/apitest/tet_LogOiOps.c |  8 ++++----
 2 files changed, 7 insertions(+), 5 deletions(-)


Major changes:
1) Modify Lennart's test cases because enhancing destination
   configuration validation rules.
2) Add test suite #17 to verify alternative destination

diff --git a/src/log/Makefile.am b/src/log/Makefile.am
--- a/src/log/Makefile.am
+++ b/src/log/Makefile.am
@@ -182,7 +182,9 @@ bin_logtest_SOURCES = \
        src/log/apitest/tet_Log_recov.c \
        src/log/apitest/tet_log_runtime_cfgobj.c \
        src/log/apitest/tet_log_longDN.c \
-       src/log/apitest/tet_Log_clm.c
+       src/log/apitest/tet_Log_clm.c \
+       src/log/apitest/tet_cfg_destination.c
+
 
 bin_logtest_LDADD = \
        lib/libapitest.la \
diff --git a/src/log/apitest/tet_LogOiOps.c b/src/log/apitest/tet_LogOiOps.c
--- a/src/log/apitest/tet_LogOiOps.c
+++ b/src/log/apitest/tet_LogOiOps.c
@@ -1913,7 +1913,7 @@ void check_logRecordDestinationConfigura
        do {
                // Add values
                for (int i = 0; i < num_values; i++) {
-                       sprintf(set_values[i], "Name%d;Type%d;Setting%d", i, i, 
i);
+                       sprintf(set_values[i], "Name%d;localsocket;Setting%d", 
i, i);
                        sprintf(command, "immcfg "
                                "-a logRecordDestinationConfiguration+="
                                "'%s' "
@@ -1969,7 +1969,7 @@ void check_logRecordDestinationConfigura
        do {
                // Add values
                for (int i = 0; i < num_values; i++) {
-                       sprintf(set_values[i], "Name%d;Type%d;Setting%d", i, i, 
i);
+                       sprintf(set_values[i], "Name%d;localsocket;Setting%d", 
i, i);
                        sprintf(command, "immcfg "
                                "-a logRecordDestinationConfiguration+="
                                "'%s' "
@@ -2057,7 +2057,7 @@ void check_logRecordDestinationConfigura
        do {
                // Add values that will be replaced
                for (int i = 0; i < num_values; i++) {
-                       sprintf(set_values[i], "Name%d;Type%d;Setting%d", i, i, 
i);
+                       sprintf(set_values[i], "Name%d;localsocket;Setting%d", 
i, i);
                        sprintf(command, "immcfg "
                                "-a logRecordDestinationConfiguration+="
                                "'%s' "
@@ -2084,7 +2084,7 @@ void check_logRecordDestinationConfigura
                int num_new_values = 3;
                for (int i = 0; i < num_new_values; i++) {
                        sprintf(set_values[i],
-                               "NewName%d;NewType%d;NewSetting%d", i, i, i);
+                               "NewName%d;localsocket;NewSetting%d", i, i);
                }
                sprintf(command, "immcfg "
                        "-a logRecordDestinationConfiguration='%s' "

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to