-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Description
Apache Airflow version
main (development)
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I have configured AIRFLOW_CONN_TERADATA_DEFAULT='teradata://login:password@host/schema' in files/airflow-breeze-config/environment_variables.env but when running system test using breeze testing system-tests providers/teradata/tests/system/teradata/example_teradata.py, breeze considering default connection values (defined as localhost as host in source code) and not considering connection details defined in environment file. But when I start airflow using breeze start-airflow, example_teradata.py dag is working successfully.
I tried to export AIRFLOW_CONN_TERADATA_DEFAULT='teradata://login:password@host/schema' at bash level and also tried at bash shell but both are not working.
I also tried to change connection name from teradata_default to teradata_normal at teradata/tests/system/teradata/example_teradata.py and defined AIRFLOW_CONN_TERADATA_NORMAL='teradata://login:password@host/schema' in files/airflow-breeze-config/environment_variables.env and breeze testing system-tests failing with teradata_normal connection is not defined.
What you think should happen instead?
breeze testing system-testsshould consider connections defined in environment variables and system tests should get success with provided connection details.
How to reproduce
git clone https://github.com/apache/airflow.git- cd airflow
uv tool install -e ./dev/breeze- create directory under
files/airflow-breeze-configand createenvironment_variables.env - Define connection to Teradata database as
AIRFLOW_CONN_TERADATA_DEFAULT='teradata://login:password@host/schema' - Run
./scripts/ci/testing/run_system_tests.sh providers/teradata/tests/system/teradata/example_teradata.py
New Teradata database instance can be set using following steps.
- Create a new ClearScape Analytics™ Experience account.
If you don't already have one, sign up at:
- Login
Sign in with your new account at:
- Create new Teradata instance
use option
Create new environmentto create new Teradata instance
login: demo_user
schema: demo_user
Operating System
Ubuntu 22.04.5 LTS
Versions of Apache Airflow Providers
apache-airflow-providers-teradata - 3.2.1
Deployment
Docker-Compose
Deployment details
docker Version 27.5.1
Docker Compose version v2.32.4
Python 3.10.12
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct