[omd-commits] OMD Git: omd: tests: added test for file ownership after cp/mv

git version control git at mathias-kettner.de
Thu May 12 12:30:16 CEST 2011


Module:   omd
Branch:   master
Commit:   f45aec02fee6a07f3528bf5cc23e214a8bdef874
URL:      http://omdistro.org/projects/omd/repository/revisions/f45aec02fee6a07f3528bf5cc23e214a8bdef874

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Thu May 12 12:01:12 2011 +0200
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Thu May 12 12:30:03 2011 +0200

tests: added test for file ownership after cp/mv

---

 t/10-omd_testsite.t |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/t/10-omd_testsite.t b/t/10-omd_testsite.t
index 926b59c..c4b1a19 100644
--- a/t/10-omd_testsite.t
+++ b/t/10-omd_testsite.t
@@ -12,7 +12,7 @@ BEGIN {
     use lib "$FindBin::Bin/lib/lib/perl5";
 }
 
-plan( tests => 93 );
+plan( tests => 101 );
 
 my $omd_bin = TestUtils::get_omd_bin();
 
@@ -45,7 +45,9 @@ my $tests = [
   { cmd => $omd_bin." stop $site",       like => '/Stopping nagios/' },
   { cmd => $omd_bin." cp $site $site2",  like => '/Copying site '.$site.' to '.$site2.'.../', 
                                          errlike => '/Apache port \d+ is in use\. I\'ve choosen \d+ instead\./' },
+  { cmd => "/usr/bin/find /omd/sites/$site2/ -not -user $site2 -ls",  like => '/^\s*$/' },
   { cmd => $omd_bin." mv $site2 $site3", like => '/Moving site '.$site2.' to '.$site3.'.../' },
+  { cmd => "/usr/bin/find /omd/sites/$site3/ -not -user $site3 -ls",  like => '/^\s*$/' },
   { cmd => $omd_bin." rm $site3",        like => '/Restarting Apache...\s*OK/', stdin => "yes\n" },
   { cmd => $omd_bin." rm $site",         like => '/Restarting Apache...\s*OK/', stdin => "yes\n" },
   { cmd => $omd_bin." create -u 7017 -g 7018 $site", 



More information about the omd-commits mailing list