code
stringlengths
3
6.57k
enable_vm_protection(self)
pulumi.get(self, "enable_vm_protection")
etag(self)
pulumi.get(self, "etag")
location(self)
pulumi.get(self, "location")
name(self)
pulumi.get(self, "name")
pulumi.getter(name="provisioningState")
provisioning_state(self)
pulumi.get(self, "provisioning_state")
pulumi.getter(name="resourceGuid")
resource_guid(self)
pulumi.get(self, "resource_guid")
subnets(self)
pulumi.get(self, "subnets")
tags(self)
pulumi.get(self, "tags")
type(self)
pulumi.get(self, "type")
pulumi.getter(name="virtualNetworkPeerings")
virtual_network_peerings(self)
pulumi.get(self, "virtual_network_peerings")
translate_output_property(self, prop)
_tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop)
translate_input_property(self, prop)
_tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop)
test_json_detectors(self)
cli.utils.is_json('{Invalid JSON}')
cli.utils.is_json('[]')
cli.utils.is_json('{}')
cli.utils.is_json('{"prop": 123}')
cli.utils.is_json('{"prop-str":"dummy-string","prop-int":123,"prop-bool":true}')
cli.utils.is_json_file('./dummy-json')
cli.utils.is_json_file('{}/resources/example.json'.format(os.path.dirname(__file__)
cli.utils.is_json_file('{}/resources/invalid.json'.format(os.path.dirname(__file__)
cli.utils.is_json_file('{}/resources'.format(os.path.dirname(__file__)
test_json_loader(self)
cli.utils.load_json('/invalid/location/to/json')
pytest.raises(Exception)
cli.utils.load_json('{}/resources/invalid.json'.format(os.path.dirname(__file__)
cli.utils.load_json('{}/resources/example.json'.format(os.path.dirname(__file__)
test_json_saver(self)
pytest.raises(Exception)
cli.utils.save_json(obj, '/invalid/path')
cli.utils.save_json(obj, 'test-json.json')
cli.utils.load_json('test-json.json')
os.remove('test-json.json')
test_yaml_detectors(self)
cli.utils.is_yaml('id: 123')
cli.utils.is_yaml_file('./dummy-yaml')
cli.utils.is_yaml_file('{}/resources/example.yml'.format(os.path.dirname(__file__)
cli.utils.is_yaml_file('{}/resources/invalid.yml'.format(os.path.dirname(__file__)
cli.utils.is_yaml_file('{}/resources'.format(os.path.dirname(__file__)
test_yaml_loader(self)
cli.utils.load_yaml('/invalid/location/to/yaml')
pytest.raises(Exception)
cli.utils.load_yaml('{}/resources/invalid.yml'.format(os.path.dirname(__file__)
pytest.raises(Exception)
cli.utils.load_yaml('{}/resources/example.yml'.format(os.path.dirname(__file__)
cli.utils.load_yaml('{}/resources/example.yml'.format(os.path.dirname(__file__)
format(os.path.dirname(__file__)
format(os.path.dirname(__file__)
test_sample_file_path(self)
cli.utils.get_sample_file_paths()
os.path.isfile(sample)
re.match('.*config.yml$', sample)
re.match('.*(tap|target)
re.match('.*README.md$', sample)
test_extract_log_attributes(self)
cli.utils.extract_log_attributes('snowflake-fx-20190508_000038.singer.log.success')
cli.utils.extract_log_attributes('snowflake-fx-20190508_231238.fastsync.log.running')
cli.utils.extract_log_attributes('dummy-log-file.log')
test_fastsync_bin(self)
cli.utils.get_fastsync_bin(VIRTUALENVS_DIR, 'mysql', 'snowflake')
format(VIRTUALENVS_DIR)
test_vault(self)
pytest.raises(SystemExit)
cli.utils.vault_encrypt('plain_test', 'not-existing-secret-file')
cli.utils.vault_encrypt('plain_text', '{}/resources/vault-secret.txt'.format(os.path.dirname(__file__)
encrypted_str.startswith("b'$ANSIBLE_VAULT;")
cli.utils.vault_format_ciphertext_yaml(encrypted_str)
formatted_encrypted_str.startswith('!vault |')
cli.utils.vault_format_ciphertext_yaml(encrypted_str, name='encrypted_plain_text')
test_schema_loader(self)
pytest.raises(SystemExit)
cli.utils.load_schema('/invalid/location/to/schema')
os.path.dirname(__file__)
cli.utils.load_schema('tap')
test_json_validate(self)
cli.utils.load_schema('tap')
cli.utils.load_yaml('{}/resources/tap-valid-mysql.yml'.format(os.path.dirname(__file__)
cli.utils.validate(valid_tap, schema)
cli.utils.load_yaml('{}/resources/tap-invalid.yml'.format(os.path.dirname(__file__)
pytest.raises(SystemExit)
cli.utils.validate(invalid_tap, schema)
test_delete_keys(self)
cli.utils.delete_empty_keys({'foo': 'bar', 'foo2': None})
cli.utils.delete_keys_from_dict({'foo': 'bar', 'foo2': 'bar2'}, ['foo2'])
test_silentremove(self)