Skip to content

Conversation

@pedroslopez
Copy link
Contributor

@pedroslopez pedroslopez commented Sep 28, 2023

What

In order to safely remove strict encrypt (e.g. source-file-secure), we need a way to test CAT with specific deployment modes.

This adds a new deployment_mode config option in tests that will pass along the deployment mode to the connector.

See usage example in https://github.com/airbytehq/airbyte/pull/30984/files#diff-2edc22a669c20da40e3afc0261807b4cec538388f39f703d1b64fd1478724024R9-R21

close #30627

How

  • Add deployment_mode config option
  • Set appropriate env var on the connector container according to the config
@vercel
Copy link

vercel bot commented Sep 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Oct 2, 2023 6:16pm
Copy link
Contributor Author

pedroslopez commented Sep 28, 2023

@pedroslopez pedroslopez force-pushed the pedro/cat-deployment-mode branch from 6d6de39 to 1450bf3 Compare October 2, 2023 18:15
@pedroslopez pedroslopez changed the title CAT: test with specific deployment_mode CAT: add option to test with specific deployment_mode Oct 2, 2023
@pedroslopez pedroslopez marked this pull request as ready for review October 2, 2023 18:28
@pedroslopez pedroslopez requested review from a team and bnchrch October 2, 2023 18:28
Comment on lines +150 to +151
if self._deployment_mode:
container = container.with_env_variable("DEPLOYMENT_MODE", self._deployment_mode.upper())
Copy link
Contributor

Choose a reason for hiding this comment

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

Meaning that if there is no _deployment_mode, the ENV isn't set 👍

@pedroslopez pedroslopez merged commit bb034bb into master Oct 3, 2023
@pedroslopez pedroslopez deleted the pedro/cat-deployment-mode branch October 3, 2023 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment