apache / apache/pulsar-connectors

[improve][test] Add integration tests for the Canal source connector

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26
Forks
25
Avg merge
17h 7m
Merged PRs (30d)
1

Description

## Current state

`canal` has **zero tests**.

## Proposal

Add a Testcontainers-based integration test: MySQL container (binlog enabled, as in `DebeziumMysqlSourceTest`) + a `canal/canal-server` container pointed at it, then assert the source emits change events for seeded rows.

_Part of an integration-test coverage sweep of all connector modules._

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading DebeziumMysqlSourceTest and the Canal source connector module's existing test conventions. Set up the MySQL and canal/canal-server containers, seed rows, and verify that the source emits change events for them; the integration test should run reliably as part of the connector test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java, mysql
Domain
backend, databases, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.