147
147
stubs.Set(nova.compute.API, 'snapshot', snapshot)
151
def backup(self, context, instance_id, name, backup_type, rotation,
156
return dict(id='123', status='ACTIVE', name=name, properties=props)
150
160
def stub_out_glance_add_image(stubs, sent_to_glance):
152
162
We return the metadata sent to glance by modifying the sent_to_glance dict