Skip to content

Commit

Permalink
fix gcp connection type
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaneve committed Jun 7, 2023
1 parent d884f58 commit 374f8a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cosmos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Astronomer Cosmos is a library for rendering 3rd party workflows in Airflow.
"""

__version__ = "0.7.0"
__version__ = "0.7.1"
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GoogleCloudServiceAccountFileProfileMapping(BaseProfileMapping):
https://airflow.apache.org/docs/apache-airflow-providers-google/stable/connections/gcp.html
"""

airflow_connection_type: str = "google-cloud-platform"
airflow_connection_type: str = "google_cloud_platform"

required_fields = [
"project",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def mock_bigquery_conn(): # type: ignore
}
conn = Connection(
conn_id="my_bigquery_connection",
conn_type="google-cloud-platform",
conn_type="google_cloud_platform",
extra=json.dumps(extra),
)

Expand Down Expand Up @@ -52,7 +52,7 @@ def test_connection_claiming() -> None:
del values[key]
conn = Connection(
conn_id="my_bigquery_connection",
conn_type="google-cloud-platform",
conn_type="google_cloud_platform",
extra=json.dumps(values),
)

Expand All @@ -64,7 +64,7 @@ def test_connection_claiming() -> None:
# also test when there's no schema
conn = Connection(
conn_id="my_bigquery_connection",
conn_type="google-cloud-platform",
conn_type="google_cloud_platform",
extra=json.dumps(extra),
)
profile_mapping = GoogleCloudServiceAccountFileProfileMapping(conn, {})
Expand All @@ -73,7 +73,7 @@ def test_connection_claiming() -> None:
# if we have them all, it should claim
conn = Connection(
conn_id="my_bigquery_connection",
conn_type="google-cloud-platform",
conn_type="google_cloud_platform",
extra=json.dumps(extra),
)
profile_mapping = GoogleCloudServiceAccountFileProfileMapping(conn, {"dataset": "my_dataset"})
Expand Down

0 comments on commit 374f8a1

Please sign in to comment.