Skip to content

Commit

Permalink
Migrate Bigtable operators system tests according to AIP-47 (#26911)
Browse files Browse the repository at this point in the history
Change-Id: Id9069e5e6453ae4c520dfc485c64c8b944dc9279

Co-authored-by: Bartlomiej Hirsz <[email protected]>
  • Loading branch information
bhirsz and Bartlomiej Hirsz committed Oct 27, 2022
1 parent 58d6182 commit 04f674c
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 159 deletions.
Expand Up @@ -42,7 +42,7 @@ Using the operator
You can create the operator with or without project id. If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:

.. exampleinclude:: /../../airflow/providers/google/cloud/example_dags/example_bigtable.py
.. exampleinclude:: /../../tests/system/providers/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_instance_create]
Expand All @@ -65,7 +65,7 @@ Using the operator
You can create the operator with or without project id. If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:

.. exampleinclude:: /../../airflow/providers/google/cloud/example_dags/example_bigtable.py
.. exampleinclude:: /../../tests/system/providers/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_instance_update]
Expand All @@ -85,7 +85,7 @@ Using the operator
You can create the operator with or without project id. If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:

.. exampleinclude:: /../../airflow/providers/google/cloud/example_dags/example_bigtable.py
.. exampleinclude:: /../../tests/system/providers/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_instance_delete]
Expand All @@ -105,7 +105,7 @@ Using the operator
You can create the operator with or without project id. If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:

.. exampleinclude:: /../../airflow/providers/google/cloud/example_dags/example_bigtable.py
.. exampleinclude:: /../../tests/system/providers/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_cluster_update]
Expand All @@ -129,7 +129,7 @@ Using the operator
You can create the operator with or without project id. If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:

.. exampleinclude:: /../../airflow/providers/google/cloud/example_dags/example_bigtable.py
.. exampleinclude:: /../../tests/system/providers/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_table_create]
Expand Down Expand Up @@ -157,7 +157,7 @@ Using the operator
You can create the operator with or without project id. If project id is missing
it will be retrieved from the Google Cloud connection used. Both variants are shown:

.. exampleinclude:: /../../airflow/providers/google/cloud/example_dags/example_bigtable.py
.. exampleinclude:: /../../tests/system/providers/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_table_delete]
Expand All @@ -182,7 +182,7 @@ timeout hits and does not raise any exception.
Using the operator
""""""""""""""""""

.. exampleinclude:: /../../airflow/providers/google/cloud/example_dags/example_bigtable.py
.. exampleinclude:: /../../tests/system/providers/google/cloud/bigtable/example_bigtable.py
:language: python
:dedent: 4
:start-after: [START howto_operator_gcp_bigtable_table_wait_for_replication]
Expand Down
53 changes: 0 additions & 53 deletions tests/providers/google/cloud/operators/test_bigtable_system.py

This file was deleted.

16 changes: 16 additions & 0 deletions tests/system/providers/google/cloud/bigtable/__init__.py
@@ -0,0 +1,16 @@
# 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.

0 comments on commit 04f674c

Please sign in to comment.