feat: add integration test framework for connector apps (PART-447)#1322
Open
tanishkhot wants to merge 1 commit intomainfrom
Open
feat: add integration test framework for connector apps (PART-447)#1322tanishkhot wants to merge 1 commit intomainfrom
tanishkhot wants to merge 1 commit intomainfrom
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
📜 Docstring Coverage ReportRESULT: PASSED (minimum: 30.0%, actual: 80.0%) Detailed Coverage Report |
Declarative, scenario-based integration test framework that enables connector developers to write end-to-end tests against real data sources with zero boilerplate. Framework modules: - runner.py: BaseIntegrationTest with auto-credential discovery, pytest method generation, workflow polling, and CI summary output - client.py: IntegrationTestClient for AUTH, METADATA, PREFLIGHT, WORKFLOW, and CONFIG API types - assertions.py: 28 assertion functions (equals, contains, any_of, matches, etc.) with custom failure descriptions - models.py: Scenario dataclass with file path validation at definition time, APIType enum, ScenarioResult - comparison.py: Metadata baseline comparison engine with gap reporting (MISSING assets, COUNT_MISMATCH, attribute diffs) - validation.py: Pandera YAML schema validation pipeline ported from e2e framework (check_record_count_ge, get_normalised_dataframe) - lazy.py: Deferred credential/arg evaluation Also includes: - Claude skill (/write-integration-tests) with CI workflow templates, VPN guide, reference PRs, and mandatory merge blocking prompt - Example integration tests and documentation - Integration testing guide Proven on 3 connectors (Postgres, Tableau, ClickHouse), 57 scenarios, including metadata validation and VPN-protected sources via GlobalProtect. Tickets: PART-447, PART-449, PART-450, PART-451, PART-452, PART-453, PART-626, PART-627, PART-628, PART-629
be24859 to
35b0238
Compare
Contributor
📦 Trivy Vulnerability Scan Results
Report SummaryCould not generate summary table (data length mismatch: 9 vs 8). Scan Result Detailsrequirements.txtVulnerabilities
uv.lockVulnerabilities
|
Contributor
📦 Trivy Secret Scan Results
Report SummaryCould not generate summary table (data length mismatch: 9 vs 8). Scan Result Detailsrequirements.txtuv.lock |
4 tasks
Collaborator
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
Contributor
|
🛠 Full Test Coverage Report: https://k.atlan.dev/coverage/application-sdk/pr/1322 |
1 similar comment
Contributor
|
🛠 Full Test Coverage Report: https://k.atlan.dev/coverage/application-sdk/pr/1322 |
Member
|
v3 relevance check: ✅ Still relevant — integration test framework (PART-447). v3 has |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Declarative integration test framework for connector apps — proven on 3 connectors (Postgres, Tableau, ClickHouse), 57 scenarios, including metadata validation and VPN-protected sources.
What's New
runner.pyBaseIntegrationTest— auto-discovers credentials, generates pytest methods, manages workflow pollingclient.pyIntegrationTestClient— unified HTTP client for AUTH, METADATA, PREFLIGHT, WORKFLOW, CONFIGassertions.pymodels.pyScenariodataclass with file path validation at definition timecomparison.pyvalidation.pylazy.pyAlso includes
/write-integration-tests) with CI workflow templates, VPN guide, merge blocking promptDemo PRs (Live on GitHub Actions)
Tickets
PART-447, PART-449, PART-450, PART-451, PART-452, PART-453, PART-626, PART-627, PART-628, PART-629
Test Plan