code stringlengths 3 6.57k |
|---|
self.tenant_id.lower() |
time.time() |
threading.local() |
datc.register_driver(self) |
do_setup(self, context) |
all([self.username, self.password]) |
LOG.error(msg) |
exception.InvalidInput(msg) |
self.login() |
self._create_tenant() |
create_volume(self, volume) |
extend_volume(self, volume, new_size) |
create_cloned_volume(self, volume, src_vref) |
delete_volume(self, volume) |
ensure_export(self, context, volume, connector=None) |
initialize_connection(self, volume, connector) |
create_export(self, context, volume, connector) |
detach_volume(self, context, volume, attachment=None) |
create_snapshot(self, snapshot) |
delete_snapshot(self, snapshot) |
create_volume_from_snapshot(self, volume, snapshot) |
retype(self, ctxt, volume, new_type, diff, host) |
capabilities (Not Used) |
manage_existing(self, volume, existing_ref) |
manage_existing_get_size(self, volume, existing_ref) |
reference (dictionary) |
size (int) |
safe_to_manage (boolean) |
reason_not_safe (string) |
cinder_id (string) |
extra_info (string) |
value (after sorting) |
sort_keys (valid directions are 'asc' and 'desc') |
unmanage(self, volume) |
get_volume_stats(self, refresh=False) |
login(self) |
_update_qos(self, resource, policies) |
url.format(datc._get_name(resource['id']) |
resource.get('volume_type_id', None) |
int(v) |
policies.items() |
k.endswith("max") |
dict(filter(lambda _v: _v[1] > 0, fpolicies.items() |
_get_lunid(self) |
_init_vendor_properties(self) |
colon(:) |
underscore(_) |
_set_property() |
_("Description of property") |
_("True to round robin the provided portals for a target") |
self.configuration.get('datera_debug_replica_count_override') |
_("Specifies IP pool to use for volume") |
_("Specifies Template to use for volume provisioning") |
_("The name to use for storage instances created") |
_("The name to use for volumes created") |
logging.basicConfig() |
logging.getLogger() |
ModbusClient(**comSettings) |
client.connect() |
while(True) |
client.write_register(3,1000,unit=0x01) |
time.sleep(4) |
client.write_register(3,0,unit=0x01) |
time.sleep(4) |
client.close() |
test_filter_repos(file_config, cli_repos, expected) |
test_assert_importable_is_importable() |
autofix_lib.assert_importable('pre_commit', install='pre-commit') |
test_assert_importable_not_importable() |
pytest.raises(SystemExit) |
autofix_lib.assert_importable('watmodule', install='wat') |
test_require_version_new_enough() |
autofix_lib.require_version_gte('pre-commit', '0.17.0') |
test_require_version_not_new_enough() |
pytest.raises(SystemExit) |
autofix_lib.require_version_gte('pre-commit', '999') |
test_run(capfd) |
autofix_lib.run('echo', 'h"i') |
capfd.readouterr() |
test_cwd(tmpdir) |
os.getcwd() |
autofix_lib.cwd(tmpdir) |
os.getcwd() |
os.getcwd() |
test_repo_context_success(file_config_files, capsys) |
testing.git.revparse(file_config_files.dir1) |
str(file_config_files.output_dir.join('repo1') |
testing.git.revparse('.') |
git.remote('.') |
capsys.readouterr() |
test_repo_context_errors(file_config_files, capsys) |
str(file_config_files.output_dir.join('repo1') |
capsys.readouterr() |
test_interactive_control_c(mock_input, capfd) |
mock_input.set_side_effect(KeyboardInterrupt) |
pytest.raises(SystemExit) |
autofix_lib._interactive_check(use_color=False) |
capfd.readouterr() |
test_interactive_eof(mock_input, capfd) |
mock_input.set_side_effect(EOFError) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.