code stringlengths 3 6.57k |
|---|
interface_stats(self, instance_name, iface_id) |
get_console_output(self, instance) |
get_vnc_console(self, instance) |
get_console_pool_info(self, console_type) |
refresh_security_group_rules(self, security_group_id) |
refresh_security_group_members(self, security_group_id) |
refresh_instance_security_rules(self, instance) |
refresh_provider_fw_rules(self) |
get_available_resource(self, nodename) |
exception.NovaException("node %s is not found" % nodename) |
ensure_filtering_rules_for_instance(self, instance_ref, network_info) |
NotImplementedError('This method is supported only by libvirt.') |
get_instance_disk_info(self, instance_name) |
confirm_migration(self, migration, instance, network_info) |
unfilter_instance(self, instance_ref, network_info) |
NotImplementedError('This method is supported only by libvirt.') |
test_remove_vm(self, instance_name) |
self.instances.pop(instance_name) |
get_host_stats(self, refresh=False) |
self.host_status_base.copy() |
stats.append(host_status) |
len(stats) |
exception.NovaException("FakeDriver has no node") |
len(stats) |
host_power_action(self, host, action) |
host_maintenance_mode(self, host, mode) |
set_host_enabled(self, host, enabled) |
get_disk_available_least(self) |
get_volume_connector(self, instance) |
get_available_nodes(self) |
instance_on_disk(self, instance) |
list_instance_uuids(self) |
FakeVirtAPI(virtapi.VirtAPI) |
instance_update(self, context, instance_uuid, updates) |
instance_get_by_uuid(self, context, instance_uuid) |
db.instance_get_by_uuid(context, instance_uuid) |
instance_get_all_by_host(self, context, host) |
db.instance_get_all_by_host(context, host) |
aggregate_get_by_host(self, context, host, key=None) |
db.aggregate_get_by_host(context, host, key=key) |
aggregate_metadata_delete(self, context, aggregate, key) |
db.aggregate_metadata_delete(context, aggregate['id'], key) |
security_group_get_by_instance(self, context, instance) |
db.security_group_get_by_instance(context, instance['id']) |
provider_fw_rule_get_all(self, context) |
db.provider_fw_rule_get_all(context) |
agent_build_get_by_triple(self, context, hypervisor, os, architecture) |
unwrap_envelope(await response.json() |
issubclass(expected_cls, web.HTTPError) |
do_assert_error(data, error, expected_cls, expected_msg) |
issubclass(expected_cls, web.HTTPNoContent) |
pformat(data) |
pformat(error) |
pformat(data) |
pformat(error) |
unwrap_envelope(await response.json() |
do_assert_error(data, error, expected_cls, expected_msg) |
pformat(data) |
pformat(error) |
len(error["errors"]) |
ServerTimeoutException(Exception) |
HTTPTimeoutServer(HTTPServer) |
get_request(self) |
self.socket.settimeout(120.0) |
self.socket.accept() |
settimeout(None) |
SimpleServer(BaseHTTPRequestHandler) |
value
("thursday") |
do_GET(self) |
self.doAllRequests() |
do_POST(self) |
self.doAllRequests() |
do_PUT(self) |
self.doAllRequests() |
do_DELETE(self) |
self.doAllRequests() |
doAllRequests(self) |
int(self.headers.getheader("Content-Length", "0") |
self.rfile.read(postLength) |
self.headers.getheader("If-Modified-Since", "") |
self.headers.getheader("Authorization", "") |
self.path.endswith(".authwww") |
self.send_response(401) |
self.send_header('WWW-Authenticate', "Basic realm='testrealm'") |
self.send_header('Content-type', 'text/html') |
self.end_headers() |
self.path.endswith(".auth") |
self.send_error(401,"Unauthorized: %s" % self.path) |
self.path.endswith(".authsub") |
self.send_error(401,"Unauthorized: %s" % self.path) |
self.headers.getheader("X-HTTP-Method-Override", "") |
len(overrideHeader) |
self.path.endswith("/accounts/ClientLogin") |
re.search("(Passwd=) |
searchResult.group(2) |
re.search("(logintoken=) |
searchResult.group(2) |
re.search("(logincaptcha=) |
searchResult.group(2) |
if (logintoken == "CapToken") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.