Skip to content

Breeze is not picking up the connections defined in environment file #56287

@sc250072

Description

@sc250072

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-tests should 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-config and create environment_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:

Teradata ClearScape Analytics™ Experience

  • Login

Sign in with your new account at:

ClearScape Analytics™ Experience Login

  • Create new Teradata instance

use option Create new environment to 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions