Skip to content
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

connectors-ci: load secrets on unit tests #25557

Merged

Conversation

alafanechere
Copy link
Contributor

What

Relates to #25053

I figured that some connector rely on the existence of secrets configs to run unit tests.
I think it's a bad pattern but I'd like our CI pipeline to adapt to this reality instead of fixing these connectors.
(This connector is source-tiktok-marketing)

How

Download secrets before running unit tests.
Mount the secret directory to the container under test in unit tests.

@@ -11,7 +11,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 4bfac00d-ce15-44ff-95b9-9e3c3e8fbd35
dockerImageTag: 2.0.6
dockerImageTag: 3.0.1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm bumping the version here to trigger the tests on this source and eventually publish on merge.

Copy link
Contributor

@bnchrch bnchrch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a great thing we have to do, but I understand the why.

@alafanechere alafanechere merged commit 46f62f6 into master Apr 27, 2023
@alafanechere alafanechere deleted the augustin/connectors-ci/load-secrets-for-unit-tests branch April 27, 2023 11:13
marcosmarxm pushed a commit to natalia-miinto/airbyte that referenced this pull request Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants