Browse Source

[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.
Thomas Markwalder 11 years ago
parent
commit
4707a2dbce

+ 2 - 0
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" }

+ 1 - 3
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;
         }
     }