diff --git a/maxscale-system-test/avro.cpp b/maxscale-system-test/avro.cpp index 395e03c98..90f7450b8 100644 --- a/maxscale-system-test/avro.cpp +++ b/maxscale-system-test/avro.cpp @@ -6,17 +6,12 @@ * - check that data in avro file is correct */ - -#include "testconnections.h" -#include "maxadmin_operations.h" -#include "sql_t1.h" - -#include "test_binlog_fnc.h" -#include -#include "maxinfo_func.h" - #include #include +#include +#include +#include +#include using std::cout; using std::endl; diff --git a/maxscale-system-test/avro_long.cpp b/maxscale-system-test/avro_long.cpp index 5d33bdb9d..675c22238 100644 --- a/maxscale-system-test/avro_long.cpp +++ b/maxscale-system-test/avro_long.cpp @@ -4,13 +4,11 @@ * - put some data to t1 in the loop */ - #include -#include "testconnections.h" -#include "maxadmin_operations.h" -#include "sql_t1.h" - -#include "test_binlog_fnc.h" +#include +#include +#include +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/binlog_semisync.cpp b/maxscale-system-test/binlog_semisync.cpp index 0712c6099..473498b30 100644 --- a/maxscale-system-test/binlog_semisync.cpp +++ b/maxscale-system-test/binlog_semisync.cpp @@ -2,14 +2,9 @@ * @file binlog_semisync.cpp Same test as setup_binlog, but with semisync enabled */ - #include -#include "testconnections.h" -#include "maxadmin_operations.h" -#include "sql_t1.h" - -#include "test_binlog_fnc.h" - +#include +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/bug676.cpp b/maxscale-system-test/bug676.cpp index d3321285c..b4a2566d1 100644 --- a/maxscale-system-test/bug676.cpp +++ b/maxscale-system-test/bug676.cpp @@ -9,8 +9,7 @@ */ #include -#include "testconnections.h" -#include "mariadb_func.h" +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/bug681.cpp b/maxscale-system-test/bug681.cpp index f88d11603..470d5a593 100644 --- a/maxscale-system-test/bug681.cpp +++ b/maxscale-system-test/bug681.cpp @@ -24,8 +24,8 @@ #include -#include "testconnections.h" -#include "mariadb_func.h" +#include +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/cdc_client.cpp b/maxscale-system-test/cdc_client.cpp index e97929697..e88f7cd01 100644 --- a/maxscale-system-test/cdc_client.cpp +++ b/maxscale-system-test/cdc_client.cpp @@ -6,23 +6,21 @@ * - read data from avro listener, comapre it with inserted data */ +#include +#include +#include +#include +#include #include +#include #include -#include "testconnections.h" - -#include #include #include -#include -#include -#include -#include -#include "maxinfo_func.h" -#include "sql_t1.h" #include -#include -#include -#include + +#include +#include +#include using namespace std; char reg_str[] = "REGISTER UUID=XXX-YYY_YYY, TYPE=JSON"; diff --git a/maxscale-system-test/clustrix_basics.cpp b/maxscale-system-test/clustrix_basics.cpp index e4d8c4996..e79323ec5 100644 --- a/maxscale-system-test/clustrix_basics.cpp +++ b/maxscale-system-test/clustrix_basics.cpp @@ -14,8 +14,8 @@ #include #include #include -#include "testconnections.h" -#include "maxrest.hh" +#include +#include using namespace std; diff --git a/maxscale-system-test/clustrix_distribution.cpp b/maxscale-system-test/clustrix_distribution.cpp index abe555343..8eb5e93fb 100644 --- a/maxscale-system-test/clustrix_distribution.cpp +++ b/maxscale-system-test/clustrix_distribution.cpp @@ -14,8 +14,8 @@ #include #include #include -#include "testconnections.h" -#include "maxrest.hh" +#include +#include using namespace std; diff --git a/maxscale-system-test/clustrix_transaction_replay.cpp b/maxscale-system-test/clustrix_transaction_replay.cpp index a483ed72b..f9e20c11e 100644 --- a/maxscale-system-test/clustrix_transaction_replay.cpp +++ b/maxscale-system-test/clustrix_transaction_replay.cpp @@ -13,8 +13,8 @@ #include #include -#include "testconnections.h" -#include "maxrest.hh" +#include +#include using namespace std; diff --git a/maxscale-system-test/create_rds.cpp b/maxscale-system-test/create_rds.cpp index 0ae5ffc7e..8f893726b 100644 --- a/maxscale-system-test/create_rds.cpp +++ b/maxscale-system-test/create_rds.cpp @@ -5,10 +5,7 @@ */ #include -#include -#include "testconnections.h" -#include -#include "rds_vpc.h" +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/delete_rds.cpp b/maxscale-system-test/delete_rds.cpp index 16b93004c..1c1979abd 100644 --- a/maxscale-system-test/delete_rds.cpp +++ b/maxscale-system-test/delete_rds.cpp @@ -4,10 +4,7 @@ */ #include -#include -#include "testconnections.h" -#include -#include "rds_vpc.h" +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/keepalived.cpp b/maxscale-system-test/keepalived.cpp index 2bc791820..f24f6e862 100644 --- a/maxscale-system-test/keepalived.cpp +++ b/maxscale-system-test/keepalived.cpp @@ -12,10 +12,9 @@ * TODO: replace 'yum' call with executing Chef recipe */ - #include -#include "testconnections.h" -#include "keepalived_func.h" +#include +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/keepalived_masterdown.cpp b/maxscale-system-test/keepalived_masterdown.cpp index d13f64513..85bfdd18b 100644 --- a/maxscale-system-test/keepalived_masterdown.cpp +++ b/maxscale-system-test/keepalived_masterdown.cpp @@ -2,11 +2,10 @@ * @file keepalived:masterdown.cpp */ - #include -#include "testconnections.h" -#include "keepalived_func.h" -#include "failover_common.cpp" +#include +#include +#include static bool check_maxscale_passive(TestConnections& test, int node); static void expect_maxscale_active_passive(TestConnections& test, int active_node); diff --git a/maxscale-system-test/mariadbmonitor/mysqlmon_failover_auto.cpp b/maxscale-system-test/mariadbmonitor/mysqlmon_failover_auto.cpp index 7f5dd8695..a9f16d461 100644 --- a/maxscale-system-test/mariadbmonitor/mysqlmon_failover_auto.cpp +++ b/maxscale-system-test/mariadbmonitor/mysqlmon_failover_auto.cpp @@ -11,7 +11,7 @@ * Public License. */ -#include "mariadb_nodes.h" +#include #include "failover_common.cpp" int main(int argc, char** argv) diff --git a/maxscale-system-test/maxtest/include/maxtest/clustrix_nodes.h b/maxscale-system-test/maxtest/include/maxtest/clustrix_nodes.h index 069e77055..a83b6b1b8 100644 --- a/maxscale-system-test/maxtest/include/maxtest/clustrix_nodes.h +++ b/maxscale-system-test/maxtest/include/maxtest/clustrix_nodes.h @@ -21,10 +21,10 @@ * TODO: move functionality of install_clustrix() to MDBCI */ -#include +#include #include -#include #include +#include #define CLUSTRIX_DEPS_YUM "yum install -y bzip2 wget screen ntp ntpdate vim htop mdadm" #define WGET_CLUSTRIX "wget http://files.clustrix.com/releases/software/clustrix-9.1.4.el7.tar.bz2" diff --git a/maxscale-system-test/maxtest/include/maxtest/mariadb_nodes.h b/maxscale-system-test/maxtest/include/maxtest/mariadb_nodes.h index 7a1bb3ede..3b978a585 100644 --- a/maxscale-system-test/maxtest/include/maxtest/mariadb_nodes.h +++ b/maxscale-system-test/maxtest/include/maxtest/mariadb_nodes.h @@ -12,10 +12,9 @@ * @endverbatim */ - -#include -#include +#include #include +#include #include /** diff --git a/maxscale-system-test/maxtest/include/maxtest/maxinfo_func.h b/maxscale-system-test/maxtest/include/maxtest/maxinfo_func.h index 3da4c9362..8b024ff75 100644 --- a/maxscale-system-test/maxtest/include/maxtest/maxinfo_func.h +++ b/maxscale-system-test/maxtest/include/maxtest/maxinfo_func.h @@ -1,5 +1,7 @@ #pragma once +#include + class TestConnections; int create_tcp_socket(); diff --git a/maxscale-system-test/maxtest/include/maxtest/maxscales.hh b/maxscale-system-test/maxtest/include/maxtest/maxscales.hh index 67c0e8c4b..a5dcf5554 100644 --- a/maxscale-system-test/maxtest/include/maxtest/maxscales.hh +++ b/maxscale-system-test/maxtest/include/maxtest/maxscales.hh @@ -1,9 +1,9 @@ #pragma once #include -#include #include #include +#include class Maxscales: public Nodes { diff --git a/maxscale-system-test/maxtest/include/maxtest/testconnections.h b/maxscale-system-test/maxtest/include/maxtest/testconnections.h index fa5bc402d..c00f5dee2 100644 --- a/maxscale-system-test/maxtest/include/maxtest/testconnections.h +++ b/maxscale-system-test/maxtest/include/maxtest/testconnections.h @@ -1,19 +1,19 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include #include #include #include #include #include +#include +#include +#include #include +#include +#include +#include +#include typedef std::set StringSet; diff --git a/maxscale-system-test/maxtest/src/maxinfo_func.cc b/maxscale-system-test/maxtest/src/maxinfo_func.cc index 41715a273..0304879b1 100644 --- a/maxscale-system-test/maxtest/src/maxinfo_func.cc +++ b/maxscale-system-test/maxtest/src/maxinfo_func.cc @@ -1,19 +1,17 @@ +#include + +#include +#include +#include #include #include -#include - -#include -#include #include -#include -#include -#include - -#include -#include "maxinfo_func.h" -#include -#include #include +#include +#include +#include +#include +#include using namespace std; diff --git a/maxscale-system-test/maxtest/src/maxrest.cc b/maxscale-system-test/maxtest/src/maxrest.cc index 713543171..16bafed57 100644 --- a/maxscale-system-test/maxtest/src/maxrest.cc +++ b/maxscale-system-test/maxtest/src/maxrest.cc @@ -11,7 +11,7 @@ * Public License. */ -#include "maxrest.hh" +#include using namespace std; diff --git a/maxscale-system-test/maxtest/src/nodes.cc b/maxscale-system-test/maxtest/src/nodes.cc index 1e1d2b746..33dead0b8 100644 --- a/maxscale-system-test/maxtest/src/nodes.cc +++ b/maxscale-system-test/maxtest/src/nodes.cc @@ -1,12 +1,12 @@ #include -#include + +#include #include -#include #include #include -#include -#include - +#include +#include +#include #include Nodes::Nodes(const char* pref, diff --git a/maxscale-system-test/maxtest/src/rds_vpc.cc b/maxscale-system-test/maxtest/src/rds_vpc.cc index ebaf83707..2cc4d8bde 100644 --- a/maxscale-system-test/maxtest/src/rds_vpc.cc +++ b/maxscale-system-test/maxtest/src/rds_vpc.cc @@ -1,5 +1,5 @@ +#include #include -#include "rds_vpc.h" RDS::RDS(char* cluster) { diff --git a/maxscale-system-test/maxtest/src/tcp_connection.cc b/maxscale-system-test/maxtest/src/tcp_connection.cc index 88b0b7965..e7ce3173b 100644 --- a/maxscale-system-test/maxtest/src/tcp_connection.cc +++ b/maxscale-system-test/maxtest/src/tcp_connection.cc @@ -1,13 +1,11 @@ -#include "tcp_connection.hh" +#include -#include #include #include #include #include #include - namespace { diff --git a/maxscale-system-test/maxtest/src/test_binlog_fnc.cc b/maxscale-system-test/maxtest/src/test_binlog_fnc.cc index 207cb29fd..746ff532c 100644 --- a/maxscale-system-test/maxtest/src/test_binlog_fnc.cc +++ b/maxscale-system-test/maxtest/src/test_binlog_fnc.cc @@ -1,9 +1,8 @@ #include -#include -#include "maxadmin_operations.h" +#include #include - -#include "test_binlog_fnc.h" +#include +#include int check_sha1(TestConnections* Test) { diff --git a/maxscale-system-test/mxs1628_bad_handshake.cpp b/maxscale-system-test/mxs1628_bad_handshake.cpp index d374d4058..d175321cf 100644 --- a/maxscale-system-test/mxs1628_bad_handshake.cpp +++ b/maxscale-system-test/mxs1628_bad_handshake.cpp @@ -1,7 +1,6 @@ -#include "testconnections.h" -#include "tcp_connection.hh" - #include +#include +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/mxs2250_describe_temp_table.cpp b/maxscale-system-test/mxs2250_describe_temp_table.cpp index 32f1a47cc..846047f36 100644 --- a/maxscale-system-test/mxs2250_describe_temp_table.cpp +++ b/maxscale-system-test/mxs2250_describe_temp_table.cpp @@ -11,8 +11,8 @@ * Public License. */ -#include "mariadb_func.h" -#include "testconnections.h" +#include +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/mxs2512_trx_replay_rollback.cpp b/maxscale-system-test/mxs2512_trx_replay_rollback.cpp index 47005a0b5..2f49eeb0e 100644 --- a/maxscale-system-test/mxs2512_trx_replay_rollback.cpp +++ b/maxscale-system-test/mxs2512_trx_replay_rollback.cpp @@ -11,11 +11,11 @@ * Public License. */ +#include #include #include -#include "mariadb_func.h" -#include "testconnections.h" -#include +#include +#include using namespace std; diff --git a/maxscale-system-test/mxs781_binlog_wrong_passwrd.cpp b/maxscale-system-test/mxs781_binlog_wrong_passwrd.cpp index 2e20b36d2..c48ac6476 100644 --- a/maxscale-system-test/mxs781_binlog_wrong_passwrd.cpp +++ b/maxscale-system-test/mxs781_binlog_wrong_passwrd.cpp @@ -7,11 +7,9 @@ #include -#include "testconnections.h" -#include "maxadmin_operations.h" -#include "sql_t1.h" - -#include "test_binlog_fnc.h" +#include +#include +#include const char* setup_binlog_wrong_passwrd = diff --git a/maxscale-system-test/setup_binlog.cpp b/maxscale-system-test/setup_binlog.cpp index ea49cd3bc..ce24164a3 100644 --- a/maxscale-system-test/setup_binlog.cpp +++ b/maxscale-system-test/setup_binlog.cpp @@ -28,14 +28,9 @@ * master */ - #include -#include "testconnections.h" -#include "maxadmin_operations.h" -#include "sql_t1.h" - -#include "test_binlog_fnc.h" - +#include +#include int main(int argc, char* argv[]) { diff --git a/maxscale-system-test/setup_binlog_gtid.cpp b/maxscale-system-test/setup_binlog_gtid.cpp index 60f3c0905..eb63c44a3 100644 --- a/maxscale-system-test/setup_binlog_gtid.cpp +++ b/maxscale-system-test/setup_binlog_gtid.cpp @@ -3,14 +3,10 @@ * */ - #include -#include "testconnections.h" -#include "maxadmin_operations.h" -#include "sql_t1.h" - -#include "test_binlog_fnc.h" - +#include +#include +#include int main(int argc, char* argv[]) {