Coverage for lbCVMFSTools/TaskHandlers/NightliesInstallTask/tests/TestLinkManager.py : 91%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
############################################################################### # (c) Copyright 2016 CERN # # # # This software is distributed under the terms of the GNU General Public # # Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". # # # # In applying this licence, CERN does not waive the privileges and immunities # # granted to it by virtue of its status as an Intergovernmental Organization # # or submit itself to any jurisdiction. # ############################################################################### Test of the version path link functionality in the model classes.
@author: Stefan-Gabriel CHITICTestLinkManager '''
PathManager, LinkManager
shutil.rmtree("/tmp/toto") shutil.rmtree("/tmp/foo/") installArea="/tmp/toto/cvmfstest.cern.ch/nightlies", workspace="/tmp/foo/")
'/tmp/toto/cvmfstest.cern.ch/nightlies/slot1/Today') '/tmp/toto/cvmfstest.cern.ch/nightlies/slot1/Wed') # The cvmfs path dose not exists, so it should return Fail self.assertFalse( self.lManager.checkLinks('slot1', 1234, '2017-05-31'))
'/tmp/toto/cvmfstest.cern.ch/nightlies/slot1/Today') '/tmp/toto/cvmfstest.cern.ch/nightlies/slot1/Wed')
unittest.main() |