Skip to content

Airbyte API 0.52.0 breaks provider tests #42154

Description

@jscheffl

Apache Airflow Provider(s)

airbyte

Versions of Apache Airflow Providers

main

Apache Airflow version

main

Operating System

Linux

Deployment

Virtualenv installation

Deployment details

Breeze tests

What happened

Tests on main as well as PRs re-testing airbyte provider fail in pytests with:

(...)
airflow/providers/airbyte/hooks/airbyte.py:56: in __init__
    self.airbyte_api = self.create_api_session()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <airflow.providers.airbyte.hooks.airbyte.AirbyteHook object at 0x7f1847b62060>

    def create_api_session(self) -> AirbyteAPI:
        """Create Airbyte API session."""
>       credentials = SchemeClientCredentials(
            client_id=self.conn["client_id"],
            client_secret=self.conn["client_secret"],
            TOKEN_URL=self.conn["token_url"],
        )
E       TypeError: SchemeClientCredentials.__init__() got an unexpected keyword argument 'TOKEN_URL'

airflow/providers/airbyte/hooks/airbyte.py:71: TypeError

...if provider yaml in airflow/providers/airbyte/provider.yaml since airbyte-api 0.52.0 was released.

What you think should happen instead

No response

How to reproduce

run breeze testing tests --test-type '[Providers[airbyte]'

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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