

def test_clusters_info_no_vmware_attributes_exception(self):
    self.env.upload_fixtures(['openstack'])
    info = InstallationInfo()
    release = ReleaseCollection.filter_by(None, operating_system=consts.RELEASE_OS.ubuntu)
    nodes_params = [{
        'roles': ['compute'],
    }, {
        'roles': ['compute'],
    }, {
        'roles': ['controller'],
    }]
    cluster = self.env.create(cluster_kwargs={
        'release_id': release[0].id,
        'mode': consts.CLUSTER_MODES.ha_compact,
        'net_provider': consts.CLUSTER_NET_PROVIDERS.neutron,
    }, nodes_kwargs=nodes_params)
    self.env.create_node({
        'status': consts.NODE_STATUSES.discover,
    })
    VmwareAttributes.delete(cluster.vmware_attributes)
    self.env.db.flush()
    self.assertNotRaises(AttributeError, info.get_clusters_info)

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