From a438fe5f7ba738ef288496b277daa70b395ea7c2 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Tue, 24 Mar 2009 07:32:21 +0000 Subject: [PATCH] add dummy function daemon_log to test scripts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13558 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/tests/client.php | 3 ++- gosa-si/tests/sqlite-check-clients.pl | 3 ++- gosa-si/tests/sqlite-check-concurrency.pl | 3 +++ gosa-si/tests/sqlite-check-fai-release.pl | 1 + gosa-si/tests/sqlite-check-fai-server.pl | 1 + gosa-si/tests/sqlite-check-foreign-clients.pl | 1 + gosa-si/tests/sqlite-check-incoming.pl | 1 + gosa-si/tests/sqlite-check-jobs.pl | 1 + gosa-si/tests/sqlite-check-messaging.pl | 1 + gosa-si/tests/sqlite-check-packages-list.pl | 1 + gosa-si/tests/sqlite-check-server.pl | 1 + gosa-si/tests/sqlite-check-users.pl | 3 +-- 12 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 56206507d..f1a6c5138 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -67,6 +67,7 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_trigger_action_reboot
00:01:6c:9d:b9:fa GOSA
"; #$data = "
gosa_trigger_action_halt
00:01:6c:9d:b9:fa GOSA
"; #$data = "
job_trigger_action_reinstall
GOSA 00:01:6c:9d:b9:fa 00:01:6c:9d:b9:fa 19700101000000
"; +$data = "
job_trigger_action_reinstall
GOSA00:50:56:06:1c:7d00:50:56:06:1c:7d
"; #$data = "
job_trigger_action_instant_update
00:01:6c:9d:b9:fa GOSA 19700101000000
"; #$data = "
gosa_new_ping
00:01:6c:9d:b9:fa GOSA
"; @@ -78,7 +79,7 @@ for($count = 1; $count <= $zahl; $count++) # List all si-server providing opsi #$data = "
gosa_get_hosts_with_module
GOSA 10.89.1.31:20081 mailqueue_com
"; - $data = "
gosa_get_hosts_with_module
GOSA linux-cl-2:20081 mailqueue_com
"; + #$data = "
gosa_get_hosts_with_module
GOSA linux-cl-2:20081 mailqueue_com
"; # Send messages to a user and displayed message via konch #$data = "
gosa_send_user_msg
GOSA GOSA ".base64_encode("eine wichtige nachricht")." admin polle harald 20130101235959 ".base64_encode("kaffeepause")."
"; diff --git a/gosa-si/tests/sqlite-check-clients.pl b/gosa-si/tests/sqlite-check-clients.pl index 1b197ba14..218c91302 100755 --- a/gosa-si/tests/sqlite-check-clients.pl +++ b/gosa-si/tests/sqlite-check-clients.pl @@ -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"; diff --git a/gosa-si/tests/sqlite-check-concurrency.pl b/gosa-si/tests/sqlite-check-concurrency.pl index 9f03c66c7..ece1a356e 100755 --- a/gosa-si/tests/sqlite-check-concurrency.pl +++ b/gosa-si/tests/sqlite-check-concurrency.pl @@ -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; diff --git a/gosa-si/tests/sqlite-check-fai-release.pl b/gosa-si/tests/sqlite-check-fai-release.pl index efb73d61a..df90a7b96 100755 --- a/gosa-si/tests/sqlite-check-fai-release.pl +++ b/gosa-si/tests/sqlite-check-fai-release.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; use Data::Dumper; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-fai-server.pl b/gosa-si/tests/sqlite-check-fai-server.pl index 1d237e824..0e9c687b3 100755 --- a/gosa-si/tests/sqlite-check-fai-server.pl +++ b/gosa-si/tests/sqlite-check-fai-server.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; use Data::Dumper; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-foreign-clients.pl b/gosa-si/tests/sqlite-check-foreign-clients.pl index e3ebba80e..61af80610 100755 --- a/gosa-si/tests/sqlite-check-foreign-clients.pl +++ b/gosa-si/tests/sqlite-check-foreign-clients.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; use Data::Dumper; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-incoming.pl b/gosa-si/tests/sqlite-check-incoming.pl index 03a40e12d..e8fe202c5 100755 --- a/gosa-si/tests/sqlite-check-incoming.pl +++ b/gosa-si/tests/sqlite-check-incoming.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; use Data::Dumper; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-jobs.pl b/gosa-si/tests/sqlite-check-jobs.pl index b80039b62..5f6c0db49 100755 --- a/gosa-si/tests/sqlite-check-jobs.pl +++ b/gosa-si/tests/sqlite-check-jobs.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; use Data::Dumper; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-messaging.pl b/gosa-si/tests/sqlite-check-messaging.pl index f7244ad8c..075a915f6 100755 --- a/gosa-si/tests/sqlite-check-messaging.pl +++ b/gosa-si/tests/sqlite-check-messaging.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-packages-list.pl b/gosa-si/tests/sqlite-check-packages-list.pl index d01644e19..0b4433d46 100755 --- a/gosa-si/tests/sqlite-check-packages-list.pl +++ b/gosa-si/tests/sqlite-check-packages-list.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; use Data::Dumper; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-server.pl b/gosa-si/tests/sqlite-check-server.pl index 18f59d7b5..6ef37571c 100755 --- a/gosa-si/tests/sqlite-check-server.pl +++ b/gosa-si/tests/sqlite-check-server.pl @@ -23,6 +23,7 @@ use warnings; use GOSA::DBsqlite; use Data::Dumper; +sub daemon_log {} print "START\n"; my $res; my $db_name; diff --git a/gosa-si/tests/sqlite-check-users.pl b/gosa-si/tests/sqlite-check-users.pl index 1f49f8cc5..fc6e0607d 100755 --- a/gosa-si/tests/sqlite-check-users.pl +++ b/gosa-si/tests/sqlite-check-users.pl @@ -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) { -- 2.30.2