示例#1
0
文件: srmcopy.py 项目: alrossi/g2
 def setUp(self):
     self.uniqueFile = localtools.uniqueFileNameGenerator("SrmCpSuite").next()
     self.uniqueFile1 = localtools.uniqueFileNameGenerator("SrmCpSuite1").next()
     self.localFile = "/etc/profile"
     self.localURL = "file:////%s" % (self.localFile)
     self.tempFile = "/tmp/%s" % (self.uniqueFile)
     self.tempURL =  "file:////%s" % (self.tempFile)
示例#2
0
 def setUp(self):
     self.uniqueFile = localtools.uniqueFileNameGenerator(
         "SrmCpSuite").next()
     self.uniqueFile1 = localtools.uniqueFileNameGenerator(
         "SrmCpSuite1").next()
     self.localFile = "/etc/profile"
     self.localURL = "file:////%s" % (self.localFile)
     self.tempFile = "/tmp/%s" % (self.uniqueFile)
     self.tempURL = "file:////%s" % (self.tempFile)
示例#3
0
文件: gsiftp.py 项目: dCache/g2
 def setUp(self):
     self.uniqueFile = localtools.uniqueFileNameGenerator("GsiFtpSuite").next()
     self.localFile = "/etc/profile"
     self.localURL = "file:////%s" % (self.localFile)
     self.tempFile = "/tmp/%s" % (self.uniqueFile)
     self.tempURL =  "file:////%s" % (self.tempFile)
     self.remoteURL = "gsiftp://%s%s/%s" % (self.sut, self.basepath, self.uniqueFile)
示例#4
0
 def setUp(self):
     self.uniqueFile = localtools.uniqueFileNameGenerator(
         "GsiFtpSuite").next()
     self.localFile = "/etc/profile"
     self.localURL = "file:////%s" % (self.localFile)
     self.tempFile = "/tmp/%s" % (self.uniqueFile)
     self.tempURL = "file:////%s" % (self.tempFile)
     self.remoteURL = "gsiftp://%s%s/%s" % (self.sut, self.basepath,
                                            self.uniqueFile)
示例#5
0
 def testSrmChangePerm(self):
     uniqDir = localtools.uniqueFileNameGenerator("GenDir").next()
     self.remoteURL = "srm://%s%s/%s" % (self.sut, self.basepath, uniqDir)
     self.assertCommandPass(['srmmkdir', '-retry_num=0', self.remoteURL])
     self.assertCommandPass([
         'srm-set-permissions', '-2', '-type=CHANGE', '-other=NONE',
         self.remoteURL
     ])
     dirURL = "srm://%s%s/%s" % (self.sut, self.basepath, uniqDir)
     self.execute(['srmrmdir', '-retry_num=0', dirURL])
示例#6
0
文件: lcgcopy.py 项目: alrossi/g2
    def testLcgCpIntoNonExistDir(self):

        uniqDir = localtools.uniqueFileNameGenerator("GenDir").next();

        self.remoteURL = "srm://%s:8443/%s/%s/%s/%s" % (self.sut, self.ws2path, self.basepath, uniqDir, self.uniqueFile)

        self.assertCommandPass( [self.glite_home + '/bin/lcg-cp', '-b' , '-D', 'srmv2', '-T', 'srmv2', self.localURL, self.remoteURL] )
        self.assertCommandPass( [self.glite_home + '/bin/lcg-cp', '-b' , '-D', 'srmv2', '-T', 'srmv2', self.remoteURL, self.tempURL] )
        self.assertSameSum(self.localFile, self.tempFile)

        self.execute([self.srmcp_home + '/bin/srmrm', self.remoteURL])
示例#7
0
文件: lcgcopy.py 项目: dCache/ci-test
    def testLcgCpIntoNonExistDir(self):

        uniqDir = localtools.uniqueFileNameGenerator("GenDir").next();

        self.remoteURL = "srm://%s:8443/srm/managerv2?SFN=%s/%s/%s" % (self.sut, self.basepath, uniqDir, self.uniqueFile)

        self.assertCommandPass( ['lcg-cp', '-b' , '-D', 'srmv2', '-T', 'srmv2', self.localURL, self.remoteURL] )
        self.assertCommandPass( ['lcg-cp', '-b' , '-D', 'srmv2', '-T', 'srmv2', self.remoteURL, self.tempURL] )
        self.assertSameSum(self.localFile, self.tempFile)

        self.execute(['srmrm', '-retry_num=0', "srm://%s%s/%s/%s" % (self.sut, self.basepath, uniqDir, self.uniqueFile)])
示例#8
0
文件: srmcopy.py 项目: alrossi/g2
    def testV2CopyDirNotExist(self):

        uniqDir = localtools.uniqueFileNameGenerator("GenDir").next();

        self.remoteURL = "srm://%s:8443/%s/%s/%s/%s" % (self.sut, self.ws2path, self.basepath, uniqDir, self.uniqueFile)

        self.assertCommandPass( [self.srmcp_home + '/bin/srmcp','-2', self.localURL, self.remoteURL] )
        self.assertCommandPass( [self.srmcp_home + '/bin/srmcp','-2', self.remoteURL, self.tempURL] )
        self.assertSameSum(self.localFile, self.tempFile)

        self.execute([self.srmcp_home + '/bin/srmrm', self.remoteURL])
        dirURL = "srm://%s:8443/%s/%s/%s" % (self.sut, self.ws2path, self.basepath, uniqDir)
        self.execute([self.srmcp_home + '/bin/srmrm', dirURL])
示例#9
0
    def testV2CopyDirNotExist(self):

        uniqDir = localtools.uniqueFileNameGenerator("GenDir").next()

        self.remoteURL = "srm://%s%s/%s/%s" % (self.sut, self.basepath,
                                               uniqDir, self.uniqueFile)

        self.assertCommandPass(
            ['srmcp', '-retry_num=0', '-2', self.localURL, self.remoteURL])
        self.assertCommandPass(
            ['srmcp', '-retry_num=0', '-2', self.remoteURL, self.tempURL])
        self.assertSameSum(self.localFile, self.tempFile)

        self.execute(['srmrm', '-retry_num=0', self.remoteURL])
        dirURL = "srm://%s%s/%s" % (self.sut, self.basepath, uniqDir)
        self.execute(['srmrmdir', '-retry_num=0', dirURL])
示例#10
0
文件: srmcopy.py 项目: alrossi/g2
 def testSrmChangePerm(self):
     uniqDir = localtools.uniqueFileNameGenerator("GenDir").next();
     self.remoteURL = "srm://%s:8443/%s/%s/%s" % (self.sut, self.ws2path, self.basepath, uniqDir)
     self.assertCommandPass( [self.srmcp_home + '/bin/srmmkdir', self.remoteURL] )
     self.assertCommandPass( [self.srmcp_home + '/bin/srm-set-permissions','-2','-type=CHANGE','-other=NONE', self.remoteURL] )
     self.execute([self.srmcp_home + '/bin/srmrm', uniqDir])
示例#11
0
文件: dcap.py 项目: dCache/ci-test
 def setUp(self):
     self.uniqueFile = localtools.uniqueFileNameGenerator(
         "DcapSuite").next()
     self.localFile = "/etc/profile"
     self.tempFile = "/tmp/%s" % (self.uniqueFile)
示例#12
0
 def setUp(self):
     self.surlBase = "srm://%s:8443/%s" % (self.sut, self.ws2path)
     self.uniqueFile = localtools.uniqueFileNameGenerator("SpaceManagerSuite").next()
     self.localFile = "/etc/profile"
     self.localURL = "file:////%s" % (self.localFile)
示例#13
0
文件: dcap.py 项目: alrossi/g2
 def setUp(self):
     self.uniqueFile = localtools.uniqueFileNameGenerator("DcapSuite").next()
     self.localFile = "/etc/profile"
     self.tempFile = "/tmp/%s" % (self.uniqueFile)
示例#14
0
 def setUp(self):
     self.surlBase = "srm://%s/" % (self.sut)
     self.uniqueFile = localtools.uniqueFileNameGenerator(
         "SpaceManagerSuite").next()
     self.localFile = "/etc/profile"
     self.localURL = "file:////%s" % (self.localFile)