You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/test/tap/tests
Rahim Kanji dd589508f4
Added regression test
1 year ago
..
aws_ssl_certs
client_host_err
load_data_local_datadir
reg_test_3223_scripts
reg_test_3838_scripts
reg_test_3847_node_datadir
test_cluster_sync_config
tokenizer_payloads
.env
Makefile
README.md
admin-listen_on_unix-t.cpp
admin_show_create_table-t.cpp
admin_show_fields_from-t.cpp
admin_show_table_status-t.cpp
admin_various_commands-t.cpp
admin_various_commands2-t.cpp
admin_various_commands3-t.cpp
aurora.cpp
basic-t.cpp
charset_unsigned_int-t.cpp
clickhouse_php_conn-t.php
config.json
envvars-t.cpp
envvars-t.env
firewall_commands1-t.cpp
galera_1-sim
galera_1_timeout_count.cpp
galera_2-sim
galera_2_timeout_no_count.cpp
generate_set_session_csv.cpp
kill_connection-t.cpp
kill_connection2-t.cpp
kill_connection3-t.cpp
max_connections_ff-t.cpp
modules_server_test.h
multiple_prepared_statements-t.cpp
mysql-fast_forward-t.cpp
mysql-init_connect-1-t.cpp
mysql-init_connect-2-t.cpp
mysql-last_insert_id-t.cpp
mysql-mirror1-t.cpp
mysql-protocol_compression_level-t.cpp
mysql-reg_test_4707_threshold_resultset_size-t.cpp
mysql-reg_test_4716_single_semicolon-t.cpp
mysql-reg_test_4723_query_cache_stores_empty_result-t.cpp
mysql-reg_test_4867_query_rules-t.cpp
mysql-set_transaction-t.cpp
mysql-sql_log_bin-error-t.cpp
mysql-test_malformed_packet-t.cpp
mysql-test_ssl_CA-t.cpp
mysql_hostgroup_attributes-servers_defaults-t.cpp
mysql_hostgroup_attributes_config_file-t.cpp
mysql_query_logging_memory-t.cpp
mysql_reconnect.cpp
mysql_stmt_send_long_data-t.cpp
mysql_stmt_send_long_data_large-t.cpp
pgsql-basic_tests-t.cpp
pgsql-connection_parameters_test-t.cpp Added regression test 1 year ago
pgsql-copy_from_stdin_session_parameter-t.cpp
pgsql-copy_from_test-t.cpp
pgsql-copy_to_test-t.cpp
pgsql-notice_test-t.cpp
pgsql-query_cache_soft_ttl_pct-t.cpp
pgsql-query_cache_test-t.cpp
pgsql-reg_test_4707_threshold_resultset_size-t.cpp
pgsql-reg_test_4716_single_semicolon-t.cpp
pgsql-reg_test_4867_query_rules-t.cpp
pgsql-set_parameter_validation_test-t.cpp
pgsql-unsupported_feature_test-t.cpp
prepare_statement_err3024-t.cpp
proxysql_reference_select_config_file.cnf
reg_test_1493-mixed_compression-t.cpp
reg_test_1574-mariadb_read_stmt_execute_response-t.cpp
reg_test_1574-stmt_metadata-t.cpp
reg_test_2793-compression-t.cpp
reg_test_3184-set_wait_timeout-t.cpp
reg_test_3223-restapi_return_codes-t.cpp
reg_test_3247-mycli_support-t.cpp
reg_test_3273_ssl_con-t.cpp
reg_test_3317-lock_hostgroup_special_queries-t.cpp
reg_test_3327-process_query_set_status_flags-t.cpp
reg_test_3371_prepared_statement_crash-t.cpp
reg_test_3427-stmt_first_comment1-param-t.cpp
reg_test_3427-stmt_first_comment1-t.cpp
reg_test_3427-stmt_first_comment2-param-t.cpp
reg_test_3427-stmt_first_comment2-t.cpp
reg_test_3434-text_stmt_mix-t.cpp
reg_test_3493-USE_with_comment-t.cpp
reg_test_3504-change_user-t.cpp
reg_test_3504-change_user_helper.cpp
reg_test_3546-stmt_empty_params-t.cpp
reg_test_3549-autocommit_tracking-t.cpp
reg_test_3585-stmt_metadata-t.cpp
reg_test_3591-restapi_num_fds-t.cpp
reg_test_3603-stmt_metadata-t.cpp
reg_test_3606-mysql_warnings-t.cpp
reg_test_3625-sqlite3_session_client_error_limit-t.cpp
reg_test_3690-admin_large_pkts-t.cpp
reg_test_3765_ssl_pollout-t.cpp
reg_test_3838-restapi_eintr-t.cpp
reg_test_3847_admin_lock-t.cpp
reg_test_3992_fast_forward_malformed_packet-mysqlsh-t.cpp
reg_test_3992_fast_forward_malformed_packet-pymysql-t.py
reg_test_3992_fast_forward_malformed_packet-t.cpp
reg_test_4001-restapi_scripts_num_fds-t.cpp
reg_test_4055_restapi-t.cpp
reg_test_4072-show-warnings-t.cpp
reg_test_4158_change_user-t.cpp
reg_test_4264-commit_rollback-t.cpp
reg_test_4300-dollar_quote_check-t.cpp
reg_test_4399-stats_mysql_query_digest-t.cpp
reg_test_4402-mysql_fields-t.cpp
reg_test_4556-ssl_error_queue-t.cpp
reg_test_4556-ssl_error_queue-t.env
reg_test__ssl_client_busy_wait-t.cpp
reg_test_compression_split_packets-t.cpp
reg_test_fast_forward_split_packet-t.cpp
reg_test_mariadb_metadata_check-t.cpp
reg_test_mariadb_stmt_store_result-t.cpp
reg_test_sql_calc_found_rows-t.cpp
reg_test_stmt_resultset_err_no_rows-t.cpp
reg_test_stmt_resultset_err_no_rows.php
reg_test_stmt_resultset_err_no_rows_php-t.cpp
repro_3404-mysql_close_fd_leak.cpp
repro_test_leak_3350.cpp
repro_test_leak_3525.cpp
savepoint-948-t.cpp
savepoint-3749-t.cpp
set_character_set-t.cpp
set_testing-240-t.cpp
set_testing-240.h
set_testing-multi-t.cpp
set_testing-t.cpp
set_testing-t.csv
set_testing-t.csv.obsolete
set_testing.h
setparser_test-t.cpp
setparser_test.cpp
setparser_test2.cpp
setparser_test3.cpp
setparser_test_common.h
sqlite3-t.cpp
sqlite_autocommit-t.cpp
stmt_explain-t.cpp
test_PROXY_Protocol-t.cpp
test_admin_prometheus_metrics_dump-t_disabled_gh3571.cpp
test_admin_stats-t.cpp
test_auth_methods-t.cpp
test_auth_methods-t.env
test_auto_increment_delay_multiplex-t.cpp
test_backend_conn_ping-t.cpp
test_binlog_fast_forward-t.cpp
test_binlog_reader-t.cpp
test_binlog_reader_uses_previous_hostgroup-t.cpp
test_cacert_load_and_verify_duration-t.cpp
test_change_user-t.cpp
test_clickhouse_server-t.cpp
test_client_limit_error-t.cpp
test_cluster1-t.cpp
test_cluster_sync-t.cpp
test_cluster_sync_mysql_servers-t.cpp
test_com_binlog_dump_enables_fast_forward-t.cpp
test_com_register_slave_enables_fast_forward-t.cpp
test_com_reset_connection_com_change_user-t.cpp
test_connection_annotation-t.cpp
test_csharp_connector_support-t.cpp
test_debug_filters-t.cpp
test_default_conn_collation-t.cpp
test_default_value_transaction_isolation-t.cpp
test_default_value_transaction_isolation_attr-t.cpp
test_digest_umap_aux-t.cpp
test_dns_cache-t.cpp
test_empty_query-t.cpp
test_enforce_autocommit_on_reads-t.cpp
test_filtered_set_statements-t.cpp
test_firewall-t.cpp
test_flagOUT_weight-t.cpp
test_flush_logs-t.sh
test_format_utils-t.cpp
test_greeting_capabilities-t.cpp
test_gtid_forwarding-t.cpp
test_hostgroup_attributes_online_servers-t.cpp
test_keep_multiplexing_variables-t.cpp
test_ldap_stats_mysql_users.cpp
test_log_last_insert_id-t.cpp
test_max_transaction_time-t.cpp
test_mysql_connect_retries-t.cpp
test_mysql_connect_retries_delay-t.cpp
test_mysql_hostgroup_attributes-1-t.cpp
test_mysql_query_digests_stages-t.cpp
test_mysql_query_rules_fast_routing-t.cpp
test_mysqlsh-t.cpp
test_prepare_statement_memory_usage-t.cpp
test_prometheus_metrics-t.cpp
test_ps_async-t.cpp
test_ps_hg_routing-t.cpp
test_ps_large_result-t.cpp
test_ps_logging-t.cpp
test_ps_no_store-t.cpp
test_query_cache_soft_ttl_pct-t.cpp
test_query_rules_fast_routing_algorithm-t.cpp
test_query_rules_routing-t.cpp
test_query_timeout-t.cpp
test_read_only_actions_offline_hard_servers-t.cpp
test_rw_binary_data-t.cpp
test_server_sess_status-t.cpp
test_session_status_flags-t.cpp
test_set_character_results-t.cpp
test_set_collation-t.cpp
test_simple_embedded_HTTP_server-t.cpp
test_sqlite3_from_unixtime-t.py
test_sqlite3_pass_exts-t.cpp
test_sqlite3_pass_exts-t.env
test_sqlite3_server-t.cpp
test_sqlite3_server.sh
test_sqlite3_server_and_fast_routing-t.cpp
test_ssl_connect-t.cpp
test_ssl_fast_forward-1-t.cpp
test_ssl_fast_forward-2-t.cpp
test_ssl_fast_forward-3-t.cpp
test_ssl_large_query-1-t.cpp
test_ssl_large_query-2-t.cpp
test_stats_proxysql_message_metrics-t.cpp
test_thread_conn_dist-t.cpp
test_throttle_max_bytes_per_second_to_client-t.cpp
test_unshun_algorithm-t.cpp
test_unsupported_queries-t.cpp
test_utf8mb4_as_ci-4841-t.cpp
test_warnings-t.cpp
test_wexecvp_syscall_failures-t.cpp
tests.env

README.md

Warning Count Logging in ProxySQL TAP Tests

With the exception of a few, all TAP tests are now geared up to log warning count and the query that triggered the warning during its execution.

Working

The method for extracting both the warning count and the associated query in all TAP tests involves overriding of specific APIs of MariaDB client library. This method facilitates the seamless extraction of both the warning count and the query.

Default Settings

By default, the logging of both the warning count and the associated query is activated for all TAP tests.

However, there are specific tests where logging is intentionally disabled. If needed, you have the flexibility to disable the logging by defining the preprocessor directive 'DISABLE_WARNING_COUNT_LOGGING'.