Esempio n. 1
0
    def test_storage_tier_given(self):
        self.size.extra["storage_tier"] = "hdd"
        storagedevice = _StorageDevice(self.image, self.size)
        d = storagedevice.to_dict()

        self.assertEqual(d["storage_device"][0]["tier"], "hdd")
Esempio n. 2
0
    def test_storage_tier_given(self):
        self.size.extra['storage_tier'] = 'hdd'
        storagedevice = _StorageDevice(self.image, self.size)
        d = storagedevice.to_dict()

        self.assertEquals(d['storage_device'][0]['tier'], 'hdd')
Esempio n. 3
0
    def test_storage_tier_default_value(self):
        storagedevice = _StorageDevice(self.image, self.size)
        d = storagedevice.to_dict()

        self.assertEqual(d["storage_device"][0]["tier"], "maxiops")
Esempio n. 4
0
    def test_storage_tier_default_value(self):
        storagedevice = _StorageDevice(self.image, self.size)
        d = storagedevice.to_dict()

        self.assertEquals(d['storage_device'][0]['tier'], 'maxiops')