Skip to content

Commit

Permalink
add testing
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylJonny committed Jan 24, 2025
1 parent 128939e commit 8cab3d4
Show file tree
Hide file tree
Showing 19 changed files with 3,848 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@
MySQLProcedureContainer,
MySQLStoredProcedure,
)
from datahub.ingestion.source.sql.mysql.source import MySQLConnectionConfig

logger: logging.Logger = logging.getLogger(__name__)


class MariaDBConnectionConfig(MySQLConnectionConfig):
class MariaDBConfig(MySQLConfig):
host_port: str = Field(default="localhost:3306", description="MariaDB host URL.")


@platform_name("MariaDB")
@config_class(MariaDBConnectionConfig)
@config_class(MariaDBConfig)
@support_status(SupportStatus.CERTIFIED)
@capability(SourceCapability.PLATFORM_INSTANCE, "Enabled by default")
@capability(SourceCapability.DOMAINS, "Supported via the `domain` config field")
Expand Down
12 changes: 12 additions & 0 deletions metadata-ingestion/tests/integration/mariadb/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3"
services:
testmariadb:
image: mariadb:10.6
container_name: testmariadb
environment:
MARIADB_ROOT_PASSWORD: password
MARIADB_DATABASE: test_db
ports:
- "53300:3306"
volumes:
- ./setup:/docker-entrypoint-initdb.d
Loading

0 comments on commit 8cab3d4

Please sign in to comment.