BIND 10 trac3186, updated. 4707a2dbce19333a1c6cb1bc9020ef2051eca1fe [3186] Added test_users_err.txt test file for user_check lib

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Oct 21 17:25:08 UTC 2013


The branch, trac3186 has been updated
       via  4707a2dbce19333a1c6cb1bc9020ef2051eca1fe (commit)
      from  a1b91fbe2702b3fb60ac639f3ce7286c525c739a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4707a2dbce19333a1c6cb1bc9020ef2051eca1fe
Author: Thomas Markwalder <tmark at isc.org>
Date:   Mon Oct 21 13:23:47 2013 -0400

    [3186] Added test_users_err.txt test file for user_check lib
    
    Added unit test data file, overlooked with prior commit. Also
    added missiong include to user_file.cc and took extraneous debug
    cout.

-----------------------------------------------------------------------

Summary of changes:
 src/hooks/dhcp/user_chk/tests/test_users_err.txt |    2 ++
 src/hooks/dhcp/user_chk/user_file.cc             |    4 +---
 2 files changed, 3 insertions(+), 3 deletions(-)
 create mode 100644 src/hooks/dhcp/user_chk/tests/test_users_err.txt

-----------------------------------------------------------------------
diff --git a/src/hooks/dhcp/user_chk/tests/test_users_err.txt b/src/hooks/dhcp/user_chk/tests/test_users_err.txt
new file mode 100644
index 0000000..3204006
--- /dev/null
+++ b/src/hooks/dhcp/user_chk/tests/test_users_err.txt
@@ -0,0 +1,2 @@
+{ "type" : "DUID", "id" : "777777777777", "opt1" : "true" }
+{ "type" : "BOGUS", "id" : "01AC00F03344", "opt1" : "true" }
diff --git a/src/hooks/dhcp/user_chk/user_file.cc b/src/hooks/dhcp/user_chk/user_file.cc
index 361727c..83f1b19 100644
--- a/src/hooks/dhcp/user_chk/user_file.cc
+++ b/src/hooks/dhcp/user_chk/user_file.cc
@@ -18,6 +18,7 @@
 
 #include <boost/foreach.hpp>
 #include <errno.h>
+#include <iostream>
 
 UserFile::UserFile(const std::string& fname) : fname_(fname), ifs_() {
     if (fname_.empty()) {
@@ -109,9 +110,6 @@ UserFile::makeUser(const std::string& user_string) {
         } else {
             // JSON parsing reduces any duplicates to the last value parsed,
             // so we will never see duplicates here.
-            std::cout << "adding propetry: " << label << ":[" << value << "]"
-                      << std::endl;
-
             properties[label]=value;
         }
     }



More information about the bind10-changes mailing list