Code

add dummy function daemon_log to test scripts
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Mar 2009 07:32:21 +0000 (07:32 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Mar 2009 07:32:21 +0000 (07:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13558 594d385d-05f5-0310-b6e9-bd551577e9d8

12 files changed:
gosa-si/tests/client.php
gosa-si/tests/sqlite-check-clients.pl
gosa-si/tests/sqlite-check-concurrency.pl
gosa-si/tests/sqlite-check-fai-release.pl
gosa-si/tests/sqlite-check-fai-server.pl
gosa-si/tests/sqlite-check-foreign-clients.pl
gosa-si/tests/sqlite-check-incoming.pl
gosa-si/tests/sqlite-check-jobs.pl
gosa-si/tests/sqlite-check-messaging.pl
gosa-si/tests/sqlite-check-packages-list.pl
gosa-si/tests/sqlite-check-server.pl
gosa-si/tests/sqlite-check-users.pl

index 56206507d230d2b0a2f5963246e9a7bdd33a72fc..f1a6c513865d396b927d74f5a1163d5a77b7a551 100755 (executable)
@@ -67,6 +67,7 @@ for($count = 1; $count <= $zahl; $count++)
     #$data = "<xml> <header>gosa_trigger_action_reboot</header> <target>00:01:6c:9d:b9:fa</target> <source>GOSA</source> </xml>";
     #$data = "<xml> <header>gosa_trigger_action_halt</header> <target>00:01:6c:9d:b9:fa</target> <source>GOSA</source> </xml>";
     #$data = "<xml> <header>job_trigger_action_reinstall</header> <source>GOSA</source> <target>00:01:6c:9d:b9:fa</target> <macaddress>00:01:6c:9d:b9:fa</macaddress> <timestamp>19700101000000</timestamp> </xml>";
+$data = "<xml><header>job_trigger_action_reinstall</header><source>GOSA</source><target>00:50:56:06:1c:7d</target><macaddress>00:50:56:06:1c:7d</macaddress></xml>";
     #$data = "<xml> <header>job_trigger_action_instant_update</header> <target>00:01:6c:9d:b9:fa</target> <source>GOSA</source> <timestamp>19700101000000</timestamp> </xml>";
     #$data = "<xml> <header>gosa_new_ping</header> <target>00:01:6c:9d:b9:fa</target> <source>GOSA</source> </xml>";
 
@@ -78,7 +79,7 @@ for($count = 1; $count <= $zahl; $count++)
 
     # List all si-server providing opsi
     #$data = "<xml> <header>gosa_get_hosts_with_module</header> <source>GOSA</source> <target>10.89.1.31:20081</target> <module_name>mailqueue_com</module_name> </xml>";
-    $data = "<xml> <header>gosa_get_hosts_with_module</header> <source>GOSA</source> <target>linux-cl-2:20081</target> <module_name>mailqueue_com</module_name> </xml>";
+    #$data = "<xml> <header>gosa_get_hosts_with_module</header> <source>GOSA</source> <target>linux-cl-2:20081</target> <module_name>mailqueue_com</module_name> </xml>";
 
     # Send messages to a user and displayed message via konch
     #$data = "<xml> <header>gosa_send_user_msg</header> <target>GOSA</target> <source>GOSA</source> <subject>".base64_encode("eine wichtige nachricht")."</subject> <from>admin</from>  <user>polle</user> <user>harald</user> <delivery_time>20130101235959</delivery_time> <message>".base64_encode("kaffeepause")."</message> </xml>"; 
index 1b197ba141da615621a3a11ba9c481bf5aa9b599..218c9130252f5f4c413c781e17c8f484173bce12 100755 (executable)
@@ -27,7 +27,8 @@ print "START\n";
 my $res;
 my $db_name;
 
-    
+sub daemon_log {}
+
 $db_name = "/var/lib/gosa-si/clients.db";
 if (-e $db_name) {
     print "\n############################################################\n";
index 9f03c66c7d5a9d30da6600a35bc1d9e12be2693a..ece1a356e2c7bc1836b8284cb895c1eded692659 100755 (executable)
@@ -10,6 +10,9 @@ use Time::HiRes qw(usleep);
 use Fcntl ':flock';
 use threads;
 
+
+sub daemon_log {}
+
 my %threads;
 # Count of threads, if > 1 it corrupts the db
 my $count= 10;
index efb73d61a23f836040b20ce756d4a7f53c9bd63f..df90a7b96d468692194aa1ef4895527db70ec9bb 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index 1d237e8245b1bb2c2e31f1dd60b1631b6daf9bd2..0e9c687b370b29f2d4fc10f6ba2b6292f7c366a0 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index e3ebba80e282b745a4c079d7d3f7473351565f56..61af806107db5744c74f65765a34037cad33fe24 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index 03a40e12d2d783c81119ac23a45d09c6c4221c88..e8fe202c5c96f719d092438574d164e77566ba50 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index b80039b62ed529901c69d5eb61d1cf9444b059d9..5f6c0db49023fe63de30f4fb3e423eb2c98d8654 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index f7244ad8c81a54da7a79c0daf80650ca8a851c7a..075a915f6c45de945f706c6b12132da9f34ad34a 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index d01644e197d0d5313db674e8a8f5aaf711b1c177..0b4433d46c4263df5a810110831fa31df36c2f39 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index 18f59d7b56f281721030809846e33859612d1890..6ef37571c73a5f74b7927d487a09fb1798e3dfe7 100755 (executable)
@@ -23,6 +23,7 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
index 1f49f8cc5e8d8357c04d8977e333fde3f1b224a7..fc6e0607d89e8f000de1c29485b7b06a872f5652 100755 (executable)
@@ -23,12 +23,11 @@ use warnings;
 use GOSA::DBsqlite;
 use Data::Dumper;
 
+sub daemon_log {}
 print "START\n";
 my $res;
 my $db_name;
 
-    
-
 
 $db_name = "/var/lib/gosa-si/users.db";
 if (-e $db_name) {