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)
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)
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)
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)
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])
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])
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)])
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])
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])
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])
def setUp(self): self.uniqueFile = localtools.uniqueFileNameGenerator( "DcapSuite").next() self.localFile = "/etc/profile" self.tempFile = "/tmp/%s" % (self.uniqueFile)
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)
def setUp(self): self.uniqueFile = localtools.uniqueFileNameGenerator("DcapSuite").next() self.localFile = "/etc/profile" self.tempFile = "/tmp/%s" % (self.uniqueFile)
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)