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 backref from VM to VIF when VIF 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.