Skip to content

fix(connection-model): RFC3896 conn_type warning (#63167)#65294

Merged
vatsrahul1001 merged 1 commit into
v3-2-testfrom
backport-63167
Apr 15, 2026
Merged

fix(connection-model): RFC3896 conn_type warning (#63167)#65294
vatsrahul1001 merged 1 commit into
v3-2-testfrom
backport-63167

Conversation

@vatsrahul1001

Copy link
Copy Markdown
Contributor

Backport of #63167
(cherry picked from commit 06c75db)


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

* fix(connection): check pre-normalized conn_type when warning about presence of underscores in conn_type

* feat(connection): added test_get_uri_conn_type_warning method to TestConnection

* fix(connection): use conn_type attr as default value when checking conn_type for presence of underscores in get_uri

* fix(connection): generalized test cases used by test_get_uri_conn_type_warning test to include connections instantiated using a URI and connections instantiated not using a URI

* fix(connection): coalesce conn_type value to an empty string before checking for presence of underscores in conn_type in get_uri

* refactor(connection): updated assertion messages in test_get_uri_conn_type_warning method

* style(connection): formatting changes according to prek static checks

(cherry picked from commit 06c75db)
@vatsrahul1001 vatsrahul1001 requested review from Lee-W, hussein-awala and potiuk and removed request for XD-DENG and ashb April 15, 2026 09:59
@vatsrahul1001 vatsrahul1001 merged commit e9f2fa5 into v3-2-test Apr 15, 2026
78 checks passed
@vatsrahul1001 vatsrahul1001 deleted the backport-63167 branch April 15, 2026 11:51
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.2.1 milestone Apr 15, 2026
@vatsrahul1001 vatsrahul1001 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Apr 15, 2026
vatsrahul1001 added a commit that referenced this pull request Apr 15, 2026
* fix(connection): check pre-normalized conn_type when warning about presence of underscores in conn_type

* feat(connection): added test_get_uri_conn_type_warning method to TestConnection

* fix(connection): use conn_type attr as default value when checking conn_type for presence of underscores in get_uri

* fix(connection): generalized test cases used by test_get_uri_conn_type_warning test to include connections instantiated using a URI and connections instantiated not using a URI

* fix(connection): coalesce conn_type value to an empty string before checking for presence of underscores in conn_type in get_uri

* refactor(connection): updated assertion messages in test_get_uri_conn_type_warning method

* style(connection): formatting changes according to prek static checks

(cherry picked from commit 06c75db)

Co-authored-by: Michael Trossbach <mptrossbach@gmail.com>
vatsrahul1001 added a commit that referenced this pull request Apr 15, 2026
* fix(connection): check pre-normalized conn_type when warning about presence of underscores in conn_type

* feat(connection): added test_get_uri_conn_type_warning method to TestConnection

* fix(connection): use conn_type attr as default value when checking conn_type for presence of underscores in get_uri

* fix(connection): generalized test cases used by test_get_uri_conn_type_warning test to include connections instantiated using a URI and connections instantiated not using a URI

* fix(connection): coalesce conn_type value to an empty string before checking for presence of underscores in conn_type in get_uri

* refactor(connection): updated assertion messages in test_get_uri_conn_type_warning method

* style(connection): formatting changes according to prek static checks

(cherry picked from commit 06c75db)

Co-authored-by: Michael Trossbach <mptrossbach@gmail.com>
vatsrahul1001 added a commit that referenced this pull request Apr 15, 2026
* fix(connection): check pre-normalized conn_type when warning about presence of underscores in conn_type

* feat(connection): added test_get_uri_conn_type_warning method to TestConnection

* fix(connection): use conn_type attr as default value when checking conn_type for presence of underscores in get_uri

* fix(connection): generalized test cases used by test_get_uri_conn_type_warning test to include connections instantiated using a URI and connections instantiated not using a URI

* fix(connection): coalesce conn_type value to an empty string before checking for presence of underscores in conn_type in get_uri

* refactor(connection): updated assertion messages in test_get_uri_conn_type_warning method

* style(connection): formatting changes according to prek static checks

(cherry picked from commit 06c75db)

Co-authored-by: Michael Trossbach <mptrossbach@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants