

def _check_271(self, engine, data):
    self.assertIndexMembers(engine, 'block_device_mapping', 'snapshot_id', ['snapshot_id'])
    self.assertIndexMembers(engine, 'block_device_mapping', 'volume_id', ['volume_id'])
    self.assertIndexMembers(engine, 'dns_domains', 'dns_domains_project_id_idx', ['project_id'])
    self.assertIndexMembers(engine, 'fixed_ips', 'network_id', ['network_id'])
    self.assertIndexMembers(engine, 'fixed_ips', 'fixed_ips_instance_uuid_fkey', ['instance_uuid'])
    self.assertIndexMembers(engine, 'fixed_ips', 'fixed_ips_virtual_interface_id_fkey', ['virtual_interface_id'])
    self.assertIndexMembers(engine, 'floating_ips', 'fixed_ip_id', ['fixed_ip_id'])
    self.assertIndexMembers(engine, 'iscsi_targets', 'iscsi_targets_volume_id_fkey', ['volume_id'])
    self.assertIndexMembers(engine, 'virtual_interfaces', 'virtual_interfaces_network_id_idx', ['network_id'])
    self.assertIndexMembers(engine, 'virtual_interfaces', 'virtual_interfaces_instance_uuid_fkey', ['instance_uuid'])
    self.assertIndexNotExists(engine, 'dns_domains', 'project_id')
    self.assertIndexNotExists(engine, 'virtual_interfaces', 'network_id')

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/db/test_migrations.py NovaMigrationsCheckers._check_271/original