From 45286f4cc8616de48caf36c7d413dae135d0e971 Mon Sep 17 00:00:00 2001 From: Chenglong Yan Date: Wed, 8 Jun 2022 00:32:03 +0800 Subject: [PATCH] Migrate Google search ads system test to new design AIP-47 related: #22430 --- .../operators/test_search_ads_system.py | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 tests/providers/google/marketing_platform/operators/test_search_ads_system.py diff --git a/tests/providers/google/marketing_platform/operators/test_search_ads_system.py b/tests/providers/google/marketing_platform/operators/test_search_ads_system.py deleted file mode 100644 index 9c6dfe99b134..000000000000 --- a/tests/providers/google/marketing_platform/operators/test_search_ads_system.py +++ /dev/null @@ -1,44 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -import pytest - -from airflow.providers.google.marketing_platform.example_dags.example_search_ads import GCS_BUCKET -from tests.providers.google.cloud.utils.gcp_authenticator import GMP_KEY -from tests.test_utils.gcp_system_helpers import MARKETING_DAG_FOLDER, GoogleSystemTest, provide_gcp_context - -# Requires the following scope: -SCOPES = [ - "https://www.googleapis.com/auth/doubleclicksearch", - "https://www.googleapis.com/auth/cloud-platform", -] - - -@pytest.mark.system("google.marketing_platform") -@pytest.mark.credential_file(GMP_KEY) -class SearchAdsSystemTest(GoogleSystemTest): - def setUp(self): - super().setUp() - self.create_gcs_bucket(GCS_BUCKET) - - def tearDown(self): - self.delete_gcs_bucket(GCS_BUCKET) - super().tearDown() - - @provide_gcp_context(GMP_KEY, scopes=SCOPES) - def test_run_example_dag(self): - self.run_dag("example_search_ads", MARKETING_DAG_FOLDER)