feat: Add bearer token authentication support #866
8 fail, 17 skipped, 391 pass in 23m 16s
Annotations
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_get_workspace (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: get_workspace() missing 1 required keyword-only argument: 'bearer_token'
workspace_id = '19d7a891-8e0e-40ac-8a8c-5faf8d11e47c'
airbyte_cloud_api_root = 'https://api.airbyte.com/v1'
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
def test_get_workspace(
workspace_id: str,
airbyte_cloud_api_root: str,
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
) -> None:
> workspace = api_util.get_workspace(
workspace_id=workspace_id,
api_root=airbyte_cloud_api_root,
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: get_workspace() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:36: TypeError
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_list_workspaces (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: list_workspaces() missing 1 required keyword-only argument: 'bearer_token'
workspace_id = '19d7a891-8e0e-40ac-8a8c-5faf8d11e47c'
airbyte_cloud_api_root = 'https://api.airbyte.com/v1'
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
def test_list_workspaces(
workspace_id: str,
airbyte_cloud_api_root: str,
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
) -> None:
> result: list[WorkspaceResponse] = api_util.list_workspaces(
workspace_id=workspace_id,
api_root=airbyte_cloud_api_root,
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: list_workspaces() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:51: TypeError
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_list_sources (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: list_sources() missing 1 required keyword-only argument: 'bearer_token'
workspace_id = '19d7a891-8e0e-40ac-8a8c-5faf8d11e47c'
airbyte_cloud_api_root = 'https://api.airbyte.com/v1'
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
def test_list_sources(
workspace_id: str,
airbyte_cloud_api_root: str,
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
) -> None:
> result: list[SourceResponse] = api_util.list_sources(
workspace_id=workspace_id,
api_root=airbyte_cloud_api_root,
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: list_sources() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:68: TypeError
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_list_destinations (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: list_destinations() missing 1 required keyword-only argument: 'bearer_token'
workspace_id = '19d7a891-8e0e-40ac-8a8c-5faf8d11e47c'
airbyte_cloud_api_root = 'https://api.airbyte.com/v1'
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
def test_list_destinations(
workspace_id: str,
airbyte_cloud_api_root: str,
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
) -> None:
> result: list[DestinationResponse] = api_util.list_destinations(
workspace_id=workspace_id,
api_root=airbyte_cloud_api_root,
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: list_destinations() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:87: TypeError
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_create_and_delete_source (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: create_source() missing 1 required keyword-only argument: 'bearer_token'
workspace_id = '19d7a891-8e0e-40ac-8a8c-5faf8d11e47c'
airbyte_cloud_api_root = 'https://api.airbyte.com/v1'
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
def test_create_and_delete_source(
workspace_id: str,
airbyte_cloud_api_root: str,
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
) -> None:
new_resource_name = "deleteme-source-faker" + text_util.generate_random_suffix()
source_config = SourceFaker()
> source = api_util.create_source(
name=new_resource_name,
workspace_id=workspace_id,
config=source_config,
api_root=airbyte_cloud_api_root,
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: create_source() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:108: TypeError
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_create_and_delete_destination (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: create_destination() missing 1 required keyword-only argument: 'bearer_token'
workspace_id = '19d7a891-8e0e-40ac-8a8c-5faf8d11e47c'
airbyte_cloud_api_root = 'https://api.airbyte.com/v1'
motherduck_api_key = <SecretString: ****>
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
def test_create_and_delete_destination(
workspace_id: str,
airbyte_cloud_api_root: str,
motherduck_api_key: str,
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
) -> None:
new_resource_name = (
"deleteme-destination-faker" + text_util.generate_random_suffix()
)
destination_config = DestinationDuckdb(
destination_path="temp_db",
motherduck_api_key=motherduck_api_key,
)
> destination = api_util.create_destination(
name=new_resource_name,
api_root=airbyte_cloud_api_root,
workspace_id=workspace_id,
config=destination_config,
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: create_destination() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:144: TypeError
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_create_and_delete_connection (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: create_source() missing 1 required keyword-only argument: 'bearer_token'
workspace_id = '19d7a891-8e0e-40ac-8a8c-5faf8d11e47c'
airbyte_cloud_api_root = 'https://api.airbyte.com/v1'
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
motherduck_api_key = <SecretString: ****>
def test_create_and_delete_connection(
workspace_id: str,
airbyte_cloud_api_root: str,
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
motherduck_api_key: str,
) -> None:
new_source_name = "deleteme-source-faker" + text_util.generate_random_suffix()
new_destination_name = (
"deleteme-destination-dummy" + text_util.generate_random_suffix()
)
new_connection_name = (
"deleteme-connection-dummy" + text_util.generate_random_suffix()
)
> source = api_util.create_source(
name=new_source_name,
api_root=airbyte_cloud_api_root,
workspace_id=workspace_id,
config=SourceFaker(),
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: create_source() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:179: TypeError
Check warning on line 0 in tests.integration_tests.cloud.test_cloud_api_util
github-actions / PyTest Results (Full)
test_check_connector[f45dd701-d1f0-4e8e-97c4-2b89c40ac928-source-True] (tests.integration_tests.cloud.test_cloud_api_util) failed
build/test-results/test-results.xml [took 0s]
Raw output
TypeError: check_connector() missing 1 required keyword-only argument: 'bearer_token'
airbyte_cloud_client_id = <SecretString: ****>
airbyte_cloud_client_secret = <SecretString: ****>
connector_id = 'f45dd701-d1f0-4e8e-97c4-2b89c40ac928', connector_type = 'source'
expect_success = True
@pytest.mark.parametrize(
"connector_id, connector_type, expect_success",
[
("f45dd701-d1f0-4e8e-97c4-2b89c40ac928", "source", True),
# ("......-....-....-............", "destination", True),
],
)
def test_check_connector(
airbyte_cloud_client_id: SecretString,
airbyte_cloud_client_secret: SecretString,
connector_id: str,
connector_type: Literal["source", "destination"],
expect_success: bool,
) -> None:
try:
> result, error_message = check_connector(
actor_id=connector_id,
connector_type=connector_type,
client_id=airbyte_cloud_client_id,
client_secret=airbyte_cloud_client_secret,
)
E TypeError: check_connector() missing 1 required keyword-only argument: 'bearer_token'
tests/integration_tests/cloud/test_cloud_api_util.py:281: TypeError