A fake XenAPI SDK.
Bases: exceptions.Exception
Bases: object
Bases: object
Base class for Fake Sessions
Create read-only fields and backref from VM and VDI to VBD when VBD is created.
Create read-only fields in the VM record.
Helper function for simulating XenAPI plugin responses for those that are returning JSON. If this function is given plain arguments, then these are rendered as a JSON list. If it’s given keyword arguments then these are rendered as a JSON dict.
Helper function for simulating XenAPI plugin responses. It escapes and wraps the given argument.
Adds a PIF for each to the local database with VLAN=-1. Do this one per host.
Create an SR that looks like the one created on the local disk by default by the XenServer installer. Do this one per host. Also, fake the installation of an ISO SR.