Skip to content

Commit 803fc93

Browse files
feat(cli): add source-smoke-test CLI (#996)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 71597ca commit 803fc93

File tree

8 files changed

+890
-5
lines changed

8 files changed

+890
-5
lines changed

airbyte/cli/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
2+
"""CLI modules for PyAirbyte."""
3+
4+
from airbyte.cli.pyab import cli
5+
6+
7+
__all__ = ["cli"]

airbyte/cli.py renamed to airbyte/cli/pyab.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
These are equivalent:
1010
1111
```bash
12-
python -m airbyte.cli --help
1312
pyairbyte --help
1413
pyab --help
1514
```
@@ -170,7 +169,7 @@ def _is_executable_path(connector_str: str) -> bool:
170169

171170
def _get_connector_name(connector: str) -> str:
172171
if _is_docker_image(connector):
173-
return connector.split(":")[0].split("/")[-1]
172+
return connector.split(":", maxsplit=1)[0].rsplit("/", maxsplit=1)[-1]
174173

175174
return connector
176175

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2024 Airbyte, Inc., all rights reserved.
2+
"""Smoke test source for destination regression testing.
3+
4+
This module provides a synthetic data source that generates test data
5+
covering common edge cases that break destinations: type variations,
6+
null handling, naming edge cases, schema variations, and batch sizes.
7+
8+
.. warning::
9+
This module is experimental and subject to change without notice.
10+
The APIs and behavior may be modified or removed in future versions.
11+
"""
12+
13+
from airbyte.cli.smoke_test_source.source import SourceSmokeTest
14+
15+
16+
__all__ = [
17+
"SourceSmokeTest",
18+
]

0 commit comments

Comments
 (0)