

def test_installation_info(self):
    info = InstallationInfo()
    nodes_params = [{
        'roles': ['compute'],
    }, {
        'roles': ['compute'],
    }, {
        'roles': ['controller'],
    }]
    self.env.create(release_kwargs={
        'operating_system': consts.RELEASE_OS.centos,
    }, cluster_kwargs={
        
    }, nodes_kwargs=nodes_params)
    unallocated_nodes_params = [{
        'status': consts.NODE_STATUSES.discover,
    }, {
        'status': consts.NODE_STATUSES.discover,
    }]
    for unallocated_node in unallocated_nodes_params:
        self.env.create_node(**unallocated_node)
    info = info.get_installation_info()
    self.assertEquals(1, info['clusters_num'])
    self.assertEquals(len(nodes_params), info['allocated_nodes_num'])
    self.assertEquals(len(unallocated_nodes_params), info['unallocated_nodes_num'])
    self.assertTrue(('master_node_uid' in info))
    self.assertTrue(('contact_info_provided' in nodes_params['user_information']))
    self.assertDictEqual(settings.VERSION, info['fuel_release'])

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/fuel_statistics_tests/test_installation_info.py TestInstallationInfo.test_installation_info/VarMisuse@202/313 `info`->`nodes_params`