-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk Load CDK: Add integration test using in-memory mock destination #45634
base: edgao/spec_test
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@Requires(env = ["test"]) | ||
//@Factory | ||
//@Replaces(factory = DestinationCatalogFactory::class) | ||
//@Requires(env = ["test"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnny-schmidt I did this yesterday as a quick hack just to get the test to run (otherwise micronaut threw a duplicate bean error). I think the easiest solution is to add another env to the Requires clause? @Requires(env=["test", "mock_catalog_factory"])
and then add that new env to all the tests that rely on this bean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could also add some Requires thing to the MockDestinationWrite, but then I'd need to plumb it down to the CliRunner
(... I could also move this stuff to testIntegration
and wire up a proper integration test task 🤷 no strong opinion. But I do think it would be nice for the MockCatalogFactory to be an explicit opt-in)
@@ -0,0 +1,4 @@ | |||
--- | |||
data: | |||
dockerRepository: "airbyte/fake-source" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update this file, it's needed to make something in the connector runner happy
66dc128
to
9708552
Compare
2e326f0
to
f377e2a
Compare
9708552
to
23585e5
Compare
f377e2a
to
5fd6001
Compare
23585e5
to
ea8314f
Compare
5fd6001
to
371f6c7
Compare
ea8314f
to
7c7d04d
Compare
371f6c7
to
f576bce
Compare
Add "integration tests" for the CDK, which test full syncs/etc. against an in-memory destination.