You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ feat(tests): add environment variable support for MySQL to Doris E2E tests
- Introduces a new test case `testMySQL2DorisEnvVar` that validates environment variable resolution during data syncing from MySQL to Doris.
- Implements methods to set and unset environment variables for testing purposes.
- Adds initialization SQL and configuration files to support the new test scenario.
"select * from ( select * from test_e2e_mysql_env.env_tbl1_test union all select * from test_e2e_mysql_env.env_tbl2_test union all select * from test_e2e_mysql_env.env_tbl3_test union all select * from test_e2e_mysql_env.env_tbl5_test) res order by 1";
// add incremental data to verify CDC continues working with env vars
622
+
ContainerUtils.executeSQLStatement(
623
+
getMySQLQueryConnection(),
624
+
LOG,
625
+
"insert into test_e2e_mysql_env.tbl1 values ('doris_env_1_1',10)",
626
+
"insert into test_e2e_mysql_env.tbl2 values ('doris_env_2_1',11)",
627
+
"update test_e2e_mysql_env.tbl1 set age=18 where name='doris_env_1'",
628
+
"delete from test_e2e_mysql_env.tbl2 where name='doris_env_2'");
629
+
Thread.sleep(20000);
630
+
631
+
LOG.info(
632
+
"Start to verify incremental data result with environment variable resolution.");
633
+
List<String> expected2 =
634
+
Arrays.asList(
635
+
"doris_env_1,18",
636
+
"doris_env_1_1,10",
637
+
"doris_env_2_1,11",
638
+
"doris_env_3,3");
639
+
Stringsql2 =
640
+
"select * from ( select * from test_e2e_mysql_env.env_tbl1_test union all select * from test_e2e_mysql_env.env_tbl2_test union all select * from test_e2e_mysql_env.env_tbl3_test ) res order by 1";
0 commit comments