Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

Its not a great idea to use actual os.environ for integration tests as it could seep into the system and affect something adversely. Replacing the usage with conf_vars instead (should be ok as its for the test duration)

Reference: #51930 (comment)


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@amoghrajesh amoghrajesh changed the title Replace usage of os.environ with conf_vars in kafka IT Replace usage of os.environ with conf_vars in kafka integration tests Jun 22, 2025
Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@jason810496 jason810496 merged commit 64a03f6 into apache:main Jun 22, 2025
69 checks passed
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

nice

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.

4 participants