Exemplo n.º 1
0
 def test_load_host_incomplete_facts(self):
     cfg_path = self.write_config(os.path.join(self.work_dir, "ooinstall.conf"), CONFIG_INCOMPLETE_FACTS)
     ooconfig = OOConfig(cfg_path)
     missing_host_facts = ooconfig.calc_missing_facts()
     self.assertEquals(2, len(missing_host_facts))
     self.assertEquals(1, len(missing_host_facts["10.0.0.2"]))
     self.assertEquals(3, len(missing_host_facts["10.0.0.3"]))
Exemplo n.º 2
0
 def test_load_host_incomplete_facts(self):
     cfg_path = self.write_config(os.path.join(self.work_dir,
         'ooinstall.conf'), CONFIG_INCOMPLETE_FACTS)
     ooconfig = OOConfig(cfg_path)
     missing_host_facts = ooconfig.calc_missing_facts()
     self.assertEquals(2, len(missing_host_facts))
     self.assertEquals(1, len(missing_host_facts['10.0.0.2']))
     self.assertEquals(3, len(missing_host_facts['10.0.0.3']))
Exemplo n.º 3
0
 def test_load_complete_facts(self):
     cfg_path = self.write_config(os.path.join(self.work_dir,
         'ooinstall.conf'), SAMPLE_CONFIG)
     ooconfig = OOConfig(cfg_path)
     missing_host_facts = ooconfig.calc_missing_facts()
     self.assertEquals(0, len(missing_host_facts))
 def test_load_complete_facts(self):
     cfg_path = self.write_config(
         os.path.join(self.work_dir, 'ooinstall.conf'), SAMPLE_CONFIG)
     ooconfig = OOConfig(cfg_path)
     missing_host_facts = ooconfig.calc_missing_facts()
     self.assertEquals(0, len(missing_host_facts))