code stringlengths 3 6.57k |
|---|
cli.utils.silentremove('this-file-not-exists.json') |
test_tap_properties(self) |
cli.utils.load_yaml('{}/resources/tap-valid-mysql.yml'.format(os.path.dirname(__file__) |
cli.utils.get_tap_property(tap_mysql, 'tap_catalog_argument') |
isinstance(cli.utils.get_tap_extra_config_keys(tap_mysql) |
cli.utils.get_tap_stream_id(tap_mysql, 'dummy_db', 'dummy_schema', 'dummy_table') |
cli.utils.get_tap_default_replication_method(tap_mysql) |
cli.utils.get_tap_property_by_tap_type('tap-mysql', 'default_replication_method') |
cli.utils.load_yaml('{}/resources/tap-valid-kafka.yml'.format(os.path.dirname(__file__) |
cli.utils.get_tap_extra_config_keys(tap_kafka, temp_dir='/my/temp/dir') |
cli.utils.load_yaml('{}/resources/tap-valid-snowflake.yml'.format(os.path.dirname(__file__) |
cli.utils.get_tap_extra_config_keys(tap_snowflake) |
test_get_tap_target_names(self) |
cli.utils.get_tap_target_names(f'{os.path.dirname(__file__) |
test_create_temp_file(self) |
cli.utils.create_temp_file() |
os.path.isfile(temp_file) |
os.remove(temp_file) |
cli.utils.create_temp_file(dir='./temp_dir_to_create_automatically/deep_temp_dir') |
os.path.isfile(temp_file) |
os.remove(temp_file) |
os.path.isfile(temp_file) |
os.remove(temp_file) |
test_find_errors_in_log_file(self) |
format(os.path.dirname(__file__) |
cli.utils.find_errors_in_log_file(log_file) |
format(os.path.dirname(__file__) |
cli.utils.find_errors_in_log_file(log_file) |
query ([Errno 104] Connection reset by peer) |
Denied (Status Code: 403; Error Code: AccessDenied) |
format(os.path.dirname(__file__) |
cli.utils.find_errors_in_log_file(log_file) |
format(os.path.dirname(__file__) |
cli.utils.find_errors_in_log_file(log_file, max_errors=2) |
format(os.path.dirname(__file__) |
cli.utils.find_errors_in_log_file(log_file, error_pattern=re.compile('CUSTOM-ERR-PATTERN') |
logging.getLogger(__name__) |
__virtual__() |
name (string) |
retention_hours (int) |
enhanced_monitoring (list of string) |
num_shards (int) |
stream (if necessary) |
do_reshard (boolean) |
region (string) |
key (string) |
keyid (string) |
profile (dict) |
key (string) |
comments.append('Kinesis stream {0} would be created'.format(name) |
_add_changes(ret, changes_old, changes_new, comments) |
comments.append('Failed to create stream {0}: {1}'.format(name, is_created['error']) |
_add_changes(ret, changes_old, changes_new, comments) |
comments.append('Kinesis stream {0} successfully created'.format(name) |
comments.append('Kinesis stream {0} already exists'.format(name) |
format(name, stream_response['error']) |
_add_changes(ret, changes_old, changes_new, comments) |
format(name, retention_hours) |
format(name, retention_updated['error']) |
_add_changes(ret, changes_old, changes_new, comments) |
comments.append('Kinesis stream {0}: retention hours was successfully updated'.format(name) |
reshard() |
format(name, stream_response['error']) |
_add_changes(ret, changes_old, changes_new, comments) |
format(name, old_retention_hours) |
comments.append('Kinesis stream {0}: did not configure retention hours'.format(name) |
stream_details.get("EnhancedMonitoring") |
set(enhanced_monitoring) |
set(old_enhanced_monitoring) |
new_monitoring_set.intersection(old_monitoring_set) |
list(new_monitoring_set.difference(matching_metrics) |
list(old_monitoring_set.difference(matching_metrics) |
len(enable_metrics) |
format(name, enable_metrics) |
format(name, metrics_enabled['error']) |
_add_changes(ret, changes_old, changes_new, comments) |
format(name, enable_metrics) |
len(disable_metrics) |
format(name, disable_metrics) |
format(name, metrics_disabled['error']) |
_add_changes(ret, changes_old, changes_new, comments) |
format(name, disable_metrics) |
len(disable_metrics) |
len(enable_metrics) |
format(name, (old_enhanced_monitoring if len(old_enhanced_monitoring) |
len(old_enhanced_monitoring) |
len(enhanced_monitoring) |
comments.append('Kinesis stream {0}: did not configure enhanced monitoring'.format(name) |
len(full_stream_details["OpenShards"]) |
format(name, old_num_shards, num_shards) |
format(old_num_shards, num_shards) |
format(name, reshard_response['error']) |
_add_changes(ret, changes_old, changes_new, comments) |
comments.append('Kinesis stream {0}: successfully resharded to {1} shards'.format(name, num_shards) |
format(name, old_num_shards) |
comments.append('Kinesis stream {0}: did not reshard, remains at {1} shards'.format(name, old_num_shards) |
_add_changes(ret, changes_old, changes_new, comments) |
name (string) |
region (string) |
key (string) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.