

def _pre_upgrade_267(self, engine):
    fixed_ips = oslodbutils.get_table(engine, 'fixed_ips')
    fake_fixed_ip = {
        'id': 1,
    }
    fixed_ips.insert().execute(fake_fixed_ip)
    instances = oslodbutils.get_table(engine, 'instances')
    fake_instance = {
        'id': 1,
        'uuid': 'fake-non-null-uuid',
    }
    instances.insert().execute(fake_instance)
    volumes = oslodbutils.get_table(engine, 'volumes')
    fake_volume = {
        'id': '9c3c317e-24db-4d57-9a6f-96e6d477c1da',
    }
    volumes.insert().execute(fake_volume)

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