@Test
    @Order(3)
    public void createDataSource(){
        for (DialectProperties dialectProperties : dialectPropertiesList) {
            if(!dialectProperties.getDbType().equals("CLICKHOUSE")){
                continue;
            }
            String dbTypeEnum = dialectProperties.getDbType();
            Long dataSourceId = TestUtils.nextLong();
            TestUtils.buildContext(dialectProperties, dataSourceId, null);
            // creat
            DataSourceCreateParam dataSourceCreateParam = new DataSourceCreateParam();
            dataSourceCreateParam.setAlias(dialectProperties.getDbType()+"_unittest_"+dialectProperties.getDbType());
            dataSourceCreateParam.setType(dbTypeEnum);
            dataSourceCreateParam.setUrl(dialectProperties.getUrl());
            dataSourceCreateParam.setUserName(dialectProperties.getUsername());
            dataSourceCreateParam.setPassword(dialectProperties.getPassword());
            DataResult<Long> dataSourceConnect = dataSourceService.createWithPermission(dataSourceCreateParam);
            Assertions.assertTrue(dataSourceConnect.getSuccess(), "Failed to create database connection pool");
            // Assertions.assertTrue(DataCenterUtils.JDBC_ACCESSOR_MAP.containsKey(dataSourceId), "Failed to create database connection pool");
        }
    }
Data source testing

@author Jiaju Zhuang
chat2db-server/chat2db-server-test/src/test/java/ai/chat2db/server/test/domain/data/service/SQLExecutorOperationsTest.java