def test_start_target_modules_v2_5x(self): Globals().replace('lustre_version', '2.5') tgt = self.fs.new_target(self.srv1, 'mgt', 0, '/dev/root') action = StartTarget(tgt) self.assertEquals(sorted(action.needed_modules()), ['ldiskfs', 'lustre'])
def test_start_target_modules_v2_4x(self): Globals().replace('lustre_version', '2.4') tgt = self.fs.new_target(self.srv1, 'mgt', 0, self.block1) action = StartTarget(tgt) self.assertEqual(sorted(action.needed_modules()), ['fsfilt_ldiskfs', 'lustre'])