test: expand noise injection to more PostgreSQL tests

- Injected 'internal_noise_mysql_traffic_v2', 'internal_noise_prometheus_poller', and 'internal_noise_rest_prometheus_poller' into:
  - pgsql-notice_test-t
  - pgsql-copy_to_test-t
  - pgsql-copy_from_test-t
- Updated 'test_noise_injection-t' to verify the new MySQL v2 noise routine.
pull/5408/head
Rene Cannao 2 months ago
parent 0ffeeacd83
commit 06a067baff

@ -11,6 +11,7 @@
#include <thread>
#include "libpq-fe.h"
#include "command_line.h"
#include "noise_utils.h"
#include "tap.h"
#include "utils.h"
@ -897,12 +898,19 @@ void execute_tests(bool with_ssl, bool diff_conn) {
}
int main(int argc, char** argv) {
plan(51 * 2); // Total number of tests planned
if (cl.getEnv())
return exit_status();
spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}});
spawn_internal_noise(cl, internal_noise_prometheus_poller);
spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}});
if (cl.use_noise) {
plan(51 * 2 + 3);
} else {
plan(51 * 2);
}
execute_tests(true, false);
execute_tests(false, false);

@ -10,6 +10,7 @@
#include <thread>
#include "libpq-fe.h"
#include "command_line.h"
#include "noise_utils.h"
#include "tap.h"
#include "utils.h"
@ -490,12 +491,19 @@ void execute_tests(bool with_ssl, bool diff_conn) {
}
int main(int argc, char** argv) {
plan(42 * 2); // Total number of tests planned
if (cl.getEnv())
return exit_status();
spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}});
spawn_internal_noise(cl, internal_noise_prometheus_poller);
spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}});
if (cl.use_noise) {
plan(42 * 2 + 3);
} else {
plan(42 * 2);
}
execute_tests(true, false);
execute_tests(false, false);

@ -10,6 +10,7 @@
#include <thread>
#include "libpq-fe.h"
#include "command_line.h"
#include "noise_utils.h"
#include "tap.h"
#include "utils.h"
@ -127,12 +128,19 @@ void execute_tests(bool with_ssl, bool diff_conn) {
}
int main(int argc, char** argv) {
plan(2 * 2); // Total number of tests planned
if (cl.getEnv())
return exit_status();
spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}});
spawn_internal_noise(cl, internal_noise_prometheus_poller);
spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}});
if (cl.use_noise) {
plan(2 * 2 + 3);
} else {
plan(2 * 2);
}
execute_tests(true, false);
execute_tests(false, false);

@ -29,6 +29,7 @@ int main(int argc, char** argv) {
spawn_internal_noise(cl, internal_noise_prometheus_poller);
spawn_internal_noise(cl, internal_noise_random_stats_poller);
spawn_internal_noise(cl, internal_noise_mysql_traffic);
spawn_internal_noise(cl, internal_noise_mysql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}});
spawn_internal_noise(cl, internal_noise_pgsql_traffic);
spawn_internal_noise(cl, internal_noise_pgsql_traffic_v2, {{"num_connections", "100"}, {"reconnect_interval", "100"}, {"avg_delay_ms", "300"}});
spawn_internal_noise(cl, internal_noise_rest_prometheus_poller, {{"enable_rest_api", "true"}, {"port", "6070"}});

Loading…
Cancel
Save