Example #1
0
 def test_get_logical_disk_properties_custom_schema(self):
     raid_schema = json.loads(raid_constants.CUSTOM_RAID_SCHEMA)
     logical_disk_properties = raid.get_logical_disk_properties(
         raid_config_schema=raid_schema)
     self.assertIn('raid_level', logical_disk_properties)
     self.assertIn('size_gb', logical_disk_properties)
     self.assertIn('foo', logical_disk_properties)
Example #2
0
 def test_get_logical_disk_properties_custom_schema(self):
     raid_schema = json.loads(raid_constants.CUSTOM_RAID_SCHEMA)
     logical_disk_properties = raid.get_logical_disk_properties(
         raid_config_schema=raid_schema)
     self.assertIn('raid_level', logical_disk_properties)
     self.assertIn('size_gb', logical_disk_properties)
     self.assertIn('foo', logical_disk_properties)
Example #3
0
    def get_logical_disk_properties(self):
        """Get the properties that can be specified for logical disks.

        This method returns a dictionary containing the properties that can
        be specified for logical disks and a textual description for them.

        :returns: A dictionary containing properties that can be mentioned for
            logical disks and a textual description for them.
        """
        return raid.get_logical_disk_properties(self.raid_schema)
Example #4
0
    def get_logical_disk_properties(self):
        """Get the properties that can be specified for logical disks.

        This method returns a dictionary containing the properties that can
        be specified for logical disks and a textual description for them.

        :returns: A dictionary containing properties that can be mentioned for
            logical disks and a textual description for them.
        """
        return raid.get_logical_disk_properties(self.raid_schema)
Example #5
0
 def test_get_logical_disk_properties(self):
     with open(drivers_base.RAID_CONFIG_SCHEMA, "r") as raid_schema_fobj:
         schema = json.load(raid_schema_fobj)
     logical_disk_properties = raid.get_logical_disk_properties(schema)
     self.assertIn("raid_level", logical_disk_properties)
     self.assertIn("size_gb", logical_disk_properties)
     self.assertIn("volume_name", logical_disk_properties)
     self.assertIn("is_root_volume", logical_disk_properties)
     self.assertIn("share_physical_disks", logical_disk_properties)
     self.assertIn("disk_type", logical_disk_properties)
     self.assertIn("interface_type", logical_disk_properties)
     self.assertIn("number_of_physical_disks", logical_disk_properties)
     self.assertIn("controller", logical_disk_properties)
     self.assertIn("physical_disks", logical_disk_properties)
Example #6
0
 def test_get_logical_disk_properties(self):
     with open(drivers_base.RAID_CONFIG_SCHEMA, 'r') as raid_schema_fobj:
         schema = json.load(raid_schema_fobj)
     logical_disk_properties = raid.get_logical_disk_properties(schema)
     self.assertIn('raid_level', logical_disk_properties)
     self.assertIn('size_gb', logical_disk_properties)
     self.assertIn('volume_name', logical_disk_properties)
     self.assertIn('is_root_volume', logical_disk_properties)
     self.assertIn('share_physical_disks', logical_disk_properties)
     self.assertIn('disk_type', logical_disk_properties)
     self.assertIn('interface_type', logical_disk_properties)
     self.assertIn('number_of_physical_disks', logical_disk_properties)
     self.assertIn('controller', logical_disk_properties)
     self.assertIn('physical_disks', logical_disk_properties)
Example #7
0
 def test_get_logical_disk_properties(self):
     with open(drivers_base.RAID_CONFIG_SCHEMA, 'r') as raid_schema_fobj:
         schema = json.load(raid_schema_fobj)
     logical_disk_properties = raid.get_logical_disk_properties(schema)
     self.assertIn('raid_level', logical_disk_properties)
     self.assertIn('size_gb', logical_disk_properties)
     self.assertIn('volume_name', logical_disk_properties)
     self.assertIn('is_root_volume', logical_disk_properties)
     self.assertIn('share_physical_disks', logical_disk_properties)
     self.assertIn('disk_type', logical_disk_properties)
     self.assertIn('interface_type', logical_disk_properties)
     self.assertIn('number_of_physical_disks', logical_disk_properties)
     self.assertIn('controller', logical_disk_properties)
     self.assertIn('physical_disks', logical_disk_properties)