This Page

The quantum.tests.unit.nicira.fake_nvpapiclient Module

class quantum.tests.unit.nicira.fake_nvpapiclient.FakeClient(fake_files_path)
FAKE_GET_RESPONSES = {'lswitch_lportstatus': 'fake_get_lswitch_lport_status.json', 'lrouter_lport': 'fake_get_lrouter_lport.json', 'gatewayservice': 'fake_get_gwservice.json', 'lrouterstatus': 'fake_get_lrouter_status.json', 'lrouter_lportattachment': 'fake_get_lrouter_lport_att.json', 'lrouter': 'fake_get_lrouter.json', 'lrouter_lportstatus': 'fake_get_lrouter_lport_status.json', 'lswitch_lportattachment': 'fake_get_lswitch_lport_att.json', 'lswitch': 'fake_get_lswitch.json', 'lrouter_nat': 'fake_get_lrouter_nat.json', 'lswitch_lport': 'fake_get_lswitch_lport.json'}
FAKE_POST_RESPONSES = {'lrouter_lport': 'fake_post_lrouter_lport.json', 'gatewayservice': 'fake_post_gwservice.json', 'securityprofile': 'fake_post_security_profile.json', 'lswitch': 'fake_post_lswitch.json', 'lrouter_nat': 'fake_post_lrouter_nat.json', 'lswitch_lport': 'fake_post_lswitch_lport.json', 'lrouter': 'fake_post_lrouter.json', 'lqueue': 'fake_post_lqueue.json'}
FAKE_PUT_RESPONSES = {'lrouter_lport': 'fake_post_lrouter_lport.json', 'lswitch_lportattachment': 'fake_put_lswitch_lport_att.json', 'securityprofile': 'fake_post_security_profile.json', 'lswitch': 'fake_post_lswitch.json', 'lrouter_nat': 'fake_post_lrouter_nat.json', 'lswitch_lport': 'fake_post_lswitch_lport.json', 'gatewayservice': 'fake_post_gwservice.json', 'lrouter_lportattachment': 'fake_put_lrouter_lport_att.json', 'lrouter': 'fake_post_lrouter.json', 'lqueue': 'fake_post_lqueue.json'}
GWSERVICE_RESOURCE = 'gatewayservice'
LPORT_RESOURCE = 'lport'
LQUEUE_RESOURCE = 'lqueue'
LROUTER_LPORT_ATT = 'lrouter_lportattachment'
LROUTER_LPORT_RESOURCE = 'lrouter_lport'
LROUTER_LPORT_STATUS = 'lrouter_lportstatus'
LROUTER_NAT_RESOURCE = 'lrouter_nat'
LROUTER_RESOURCE = 'lrouter'
LROUTER_STATUS = 'lrouterstatus'
LSWITCH_LPORT_ATT = 'lswitch_lportattachment'
LSWITCH_LPORT_RESOURCE = 'lswitch_lport'
LSWITCH_LPORT_STATUS = 'lswitch_lportstatus'
LSWITCH_RESOURCE = 'lswitch'
LSWITCH_STATUS = 'lswitchstatus'
MANAGED_RELATIONS = {'lswitch_lport': ['LogicalPortAttachment'], 'lrouter_lport': ['LogicalPortAttachment'], 'lrouter': [], 'lswitch': []}
NAT_RESOURCE = 'nat'
RESOURCES = ['lswitch', 'lrouter', 'lqueue', 'lport', 'nat', 'securityprofile', 'gatewayservice']
SECPROF_RESOURCE = 'securityprofile'
fake_request(*args, **kwargs)
handle_delete(url)
handle_get(url)
handle_post(url, body)
handle_put(url, body)
reset_all()