From 69eb60f4612a885584b94057822298cc8aba2804 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Fri, 20 Dec 2019 12:40:29 +0100 Subject: [PATCH] RM: removed logging test Its hard to create a logging test for different systems and evaluate their output. Therefore we remove it at the moment. --- t/90-logging.t | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 t/90-logging.t diff --git a/t/90-logging.t b/t/90-logging.t deleted file mode 100644 index 7a627ec..0000000 --- a/t/90-logging.t +++ /dev/null @@ -1,43 +0,0 @@ -use 5.006; -use strict; -use warnings; -use Test::More; -use Test::Exception; -use OSSEC; -use File::Temp qw/ tempfile tempdir /; - - -#first create a tempdirectory where we put the logs -my $tempDir = tempdir( CLEANUP => 0); - -#create basic directory hierarchy -readpipe("mkdir $tempDir" . "/logs"); - -my $ossec; -lives_ok( sub { - $ossec = OSSEC->new(ossecPath=>$tempDir); -}); - -my $log; -lives_ok( sub { - $log = $ossec->arLog(); -}); - -lives_ok( sub { - $log->error("test app" , "this is a test"); -}); - -dies_ok( sub { - $log->fatal("test app" , "this is a test"); -}); - -lives_ok( sub { - $log->info("test app" , "this is a test"); -}); - -lives_ok( sub { - $log->debug("test app" , "this is a test"); -}); - - -done_testing();