示例#1
0
 def test_all_lb_information(self):
     all_info = mi.export_host_info(self.inv)['all']
     inv_all = self.inv['all']['vars']
     self.assertEqual(inv_all['internal_lb_vip_address'],
                      all_info['internal_lb_vip_address'])
示例#2
0
    def test_number_of_hosts(self):
        host_inv = mi.export_host_info(self.inv)['hosts']

        self.assertEqual(len(self.inv['_meta']['hostvars']), len(host_inv))
示例#3
0
 def test_all_information_added(self):
     all_info = mi.export_host_info(self.inv)['all']
     self.assertIn('provider_networks', all_info)
示例#4
0
 def test_groups_added(self):
     host_inv = mi.export_host_info(self.inv)['hosts']
     self.assertIn('groups', host_inv['aio1'].keys())
示例#5
0
 def test_variables_added(self):
     host_inv = mi.export_host_info(self.inv)['hosts']
     self.assertIn('hostvars', host_inv['aio1'].keys())
示例#6
0
 def test_all_lb_information(self):
     all_info = mi.export_host_info(self.inv)['all']
     inv_all = self.inv['all']['vars']
     self.assertEqual(inv_all['internal_lb_vip_address'],
                      all_info['internal_lb_vip_address'])
示例#7
0
 def test_host_is_present(self):
     host_inv = mi.export_host_info(self.inv)['hosts']
     self.assertIn('aio1', host_inv.keys())
示例#8
0
 def test_all_information_added(self):
     all_info = mi.export_host_info(self.inv)['all']
     self.assertIn('provider_networks', all_info)
示例#9
0
    def test_number_of_hosts(self):
        host_inv = mi.export_host_info(self.inv)['hosts']

        self.assertEqual(len(self.inv['_meta']['hostvars']),
                         len(host_inv))
示例#10
0
 def test_variables_added(self):
     host_inv = mi.export_host_info(self.inv)['hosts']
     self.assertIn('hostvars', host_inv['aio1'].keys())
示例#11
0
 def test_groups_added(self):
     host_inv = mi.export_host_info(self.inv)['hosts']
     self.assertIn('groups', host_inv['aio1'].keys())
示例#12
0
 def test_host_is_present(self):
     host_inv = mi.export_host_info(self.inv)['hosts']
     self.assertIn('aio1', host_inv.keys())