12 use lib
"$FindBin::Bin/lib/lib/perl5";
17 ##################################################
18 # create our test site
19 my $omd_bin = TestUtils
::get_omd_bin
();
20 my $site = TestUtils
::create_test_site
() or TestUtils
::bail_out_clean
("no further testing without site");
22 ##################################################
25 { cmd
=> $omd_bin." start $site" },
27 { cmd
=> "/bin/su - $site -c 'lib/nagios/plugins/check_http -t 30 -H localhost -u /$site/check_mk -e 401'", like
=> '/HTTP OK:/' },
28 { cmd
=> "/bin/su - $site -c 'lib/nagios/plugins/check_http -t 30 -H localhost -a omdadmin:omd -u /$site/check_mk -e 301'", like
=> '/HTTP OK:/' },
29 { cmd
=> "/bin/su - $site -c 'lib/nagios/plugins/check_http -t 30 -H localhost -a omdadmin:omd -u /$site/check_mk/ -e 200'", like
=> '/HTTP OK:/' },
31 { cmd
=> $omd_bin." stop $site" },
33 for my $test (@
{$tests}) {
34 TestUtils
::test_command
($test);
37 ##################################################
39 TestUtils
::remove_test_site
($site);