Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve google data pipelines deprecations in tests #40500

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions tests/deprecations_ignore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@
- tests/providers/google/cloud/hooks/vertex_ai/test_custom_job.py::TestCustomJobWithoutDefaultProjectIdHook::test_delete_pipeline_job
- tests/providers/google/cloud/hooks/vertex_ai/test_custom_job.py::TestCustomJobWithoutDefaultProjectIdHook::test_get_pipeline_job
- tests/providers/google/cloud/hooks/vertex_ai/test_custom_job.py::TestCustomJobWithoutDefaultProjectIdHook::test_list_pipeline_jobs
- tests/providers/google/cloud/operators/test_automl.py::TestAutoMLTrainModelOperator::test_execute
- tests/providers/google/cloud/operators/test_datapipeline.py::TestCreateDataPipelineOperator::test_execute
- tests/providers/google/cloud/operators/test_datapipeline.py::TestRunDataPipelineOperator::test_execute
- tests/providers/google/cloud/operators/test_dataproc.py::TestDataProcHadoopOperator::test_execute
- tests/providers/google/cloud/operators/test_dataproc.py::TestDataProcHiveOperator::test_builder
- tests/providers/google/cloud/operators/test_dataproc.py::TestDataProcHiveOperator::test_execute
Expand Down
14 changes: 7 additions & 7 deletions tests/providers/google/cloud/operators/test_datapipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

import pytest

from airflow.providers.google.cloud.operators.datapipeline import (
CreateDataPipelineOperator,
RunDataPipelineOperator,
from airflow.providers.google.cloud.operators.dataflow import (
DataflowCreatePipelineOperator,
DataflowRunPipelineOperator,
)

TASK_ID = "test-datapipeline-operators"
Expand Down Expand Up @@ -58,7 +58,7 @@ def create_operator(self):
"""
Creates a mock create datapipeline operator to be used in testing.
"""
return CreateDataPipelineOperator(
return DataflowCreatePipelineOperator(
task_id="test_create_datapipeline",
body=TEST_BODY,
project_id=TEST_PROJECT_ID,
Expand Down Expand Up @@ -89,11 +89,11 @@ class TestRunDataPipelineOperator:
@pytest.fixture
def run_operator(self):
"""
Create a RunDataPipelineOperator instance with test data
Create a DataflowRunPipelineOperator instance with test data
"""
return RunDataPipelineOperator(
return DataflowRunPipelineOperator(
task_id=TASK_ID,
data_pipeline_name=TEST_DATA_PIPELINE_NAME,
pipeline_name=TEST_DATA_PIPELINE_NAME,
project_id=TEST_PROJECT_ID,
location=TEST_LOCATION,
gcp_conn_id=TEST_GCP_CONN_ID,
Expand Down