Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
@Slf4j
public class PaimonSinkCDCIT extends AbstractPaimonIT implements TestResource {

/** Config used to verify the schema mismatch error after the target Paimon table exists. */
private static final String ERROR_SCHEMA_CONF =
"/fake_cdc_sink_paimon_case1_with_error_schema.conf";

@BeforeEach
@Override
public void startUp() throws Exception {
Expand Down Expand Up @@ -138,8 +142,7 @@ public void testFakeCDCSinkPaimon(TestContainer container) throws Exception {
public void testSinkWithIncompatibleSchema(TestContainer container) throws Exception {
Container.ExecResult execResult = container.executeJob("/fake_cdc_sink_paimon_case1.conf");
Assertions.assertEquals(0, execResult.getExitCode());
Container.ExecResult errResult =
container.executeJob("/fake_cdc_sink_paimon_case1_with_error_schema.conf");
Container.ExecResult errResult = container.executeJob(ERROR_SCHEMA_CONF);
Assertions.assertEquals(1, errResult.getExitCode());
Assertions.assertTrue(
errResult
Expand Down
Loading