

def test_all_cluster_data_collected(self):
    self.env.create(nodes_kwargs=[{
        'roles': ['compute'],
    }])
    self.env.create_node(status=consts.NODE_STATUSES.discover)
    info = InstallationInfo()
    info = info.get_installation_info()
    actual_cluster = info['clusters'][0]
    cluster_schema = {
        
    }
    for column in inspect(cluster_model.Cluster).columns:
        cluster_schema[six.text_type(column.name)] = None
    for rel in inspect(cluster_model.Cluster).relationships:
        cluster_schema[six.text_type(rel.table.name)] = None
    remove_fields = ('tasks', 'cluster_changes', 'nodegroups', 'releases', 'replaced_provisioning_info', 'notifications', 'cluster_deployment_graphs', 'name', 'replaced_deployment_info', 'ui_settings')
    for field in remove_fields:
        cluster_schema.pop(field)
    rename_fields = (('plugins', 'installed_plugins'), ('networking_configs', 'network_configuration'), ('release_id', 'release'), ('cluster_plugin_links', 'plugin_links'))
    for (name_from, name_to) in rename_fields:
        cluster_schema.pop(name_from)
        cluster_schema[name_to] = None
    for key in six.iterkeys(cluster_schema):
        self.assertIn(key, actual_cluster)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/fuel_statistics_tests/test_installation_info.py TestInstallationInfo.test_all_cluster_data_collected/original