1328837476-hug commented on code in PR #12690:
URL: https://github.com/apache/seatunnel/pull/12690#discussion_r4220348605
##########
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-maxcompute-e2e/src/test/java/org/apache/seatunnel/e2e/connector/maxcompute/MaxComputeIT.java:
##########
@@ -271,18 +273,43 @@ public void testReadColumn() {
config.put("project", "mocked_mc");
config.put("table_name", "test_table");
config.put("read_columns", Arrays.asList("ID", "NAME"));
- SeaTunnelSource<Object, SourceSplit, Serializable> source =
- new MaxcomputeSourceFactory()
- .createSource(
- new TableSourceFactoryContext(
- ReadonlyConfig.fromMap(config),
-
Thread.currentThread().getContextClassLoader()))
- .createSource();
+ SeaTunnelSource<Object, SourceSplit, Serializable> source =
createSource(config);
CatalogTable table = source.getProducedCatalogTables().get(0);
Assertions.assertArrayEquals(
new String[] {"ID", "NAME"},
table.getTableSchema().getFieldNames());
}
+ @Test
Review Comment:
Removed the validation-only `testRejectBlankSourceEndpoint` from
`MaxComputeIT` in 06b03709. The endpoint boundary cases remain in
`MaxcomputeSourceFactoryTest`, and all 11 tests in that class pass.
The E2E change now only updates the existing `testReadColumn` scenario to
create the source through `FactoryUtil` and read table metadata from the
emulator. The shared helper has been inlined, with no new E2E test method.
Spotless, test compilation, and the local focused runner's `-DskipTests
verify` passed. I also attempted to rerun `testReadColumn`, but Docker was
unavailable and Docker Desktop startup timed out; that environment limitation
is documented in the PR description.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]