Ejemplo n.º 1
0
 def testCapabilitiesNoneFsTypes(self):
     storage.PROC_FILESYSTEMS = 'testdata/storage/proc.filesystems'
     cap = storage.CapabilitiesNoneLinux26()
     self.assertEqual(
         cap.SupportedFileSystemTypes,
         'ext2,ext3,ext4,FAT32,X_CATAWAMPUS-ORG_iso9660,'
         'X_CATAWAMPUS-ORG_squashfs,X_CATAWAMPUS-ORG_udf')
Ejemplo n.º 2
0
 def testCapabilitiesNone(self):
   storage.PROC_FILESYSTEMS = 'testdata/storage/proc.filesystems'
   cap = storage.CapabilitiesNoneLinux26()
   cap.ValidateExports()
   self.assertFalse(cap.FTPCapable)
   self.assertFalse(cap.HTTPCapable)
   self.assertFalse(cap.HTTPSCapable)
   self.assertFalse(cap.HTTPWritable)
   self.assertFalse(cap.SFTPCapable)
   self.assertEqual(cap.SupportedNetworkProtocols, '')
   self.assertEqual(cap.SupportedRaidTypes, '')
   self.assertFalse(cap.VolumeEncryptionCapable)