diff --git a/packages/google-cloud-access-approval/tests/system/smoke_test.py b/packages/google-cloud-access-approval/tests/system/smoke_test.py deleted file mode 100644 index 39ed3bb198be..000000000000 --- a/packages/google-cloud-access-approval/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2020 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import accessapproval_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_approval_requests(project_id: str, transport: str): - client = accessapproval_v1.AccessApprovalClient(transport=transport) - - parent = client.common_project_path(project_id) - client.list_approval_requests(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-automl/tests/system/smoke_test.py b/packages/google-cloud-automl/tests/system/smoke_test.py deleted file mode 100644 index c08efdc634cd..000000000000 --- a/packages/google-cloud-automl/tests/system/smoke_test.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import automl_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.skip( - reason="Skipping automl smoke tests due to service deprecation: https://docs.cloud.google.com/vertex-ai/docs/deprecations?e=48754805" -) -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_models(project_id: str, transport: str): - client = automl_v1.AutoMlClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_models(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-bigquery-connection/tests/system/smoke_test.py b/packages/google-cloud-bigquery-connection/tests/system/smoke_test.py deleted file mode 100644 index a0b9cd264d86..000000000000 --- a/packages/google-cloud-bigquery-connection/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import bigquery_connection_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_connections(project_id: str, transport: str): - client = bigquery_connection_v1.ConnectionServiceClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_connections(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-bigquery-datatransfer/tests/system/smoke_test.py b/packages/google-cloud-bigquery-datatransfer/tests/system/smoke_test.py deleted file mode 100644 index 9de8e86f15cc..000000000000 --- a/packages/google-cloud-bigquery-datatransfer/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import bigquery_datatransfer_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_data_sources(project_id: str, transport: str): - client = bigquery_datatransfer_v1.DataTransferServiceClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_data_sources(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-bigquery-reservation/tests/system/smoke_test.py b/packages/google-cloud-bigquery-reservation/tests/system/smoke_test.py deleted file mode 100644 index b655fef5b869..000000000000 --- a/packages/google-cloud-bigquery-reservation/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import bigquery_reservation_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_reservations(project_id: str, transport: str): - client = bigquery_reservation_v1.ReservationServiceClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_reservations(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-container/tests/system/smoke_test.py b/packages/google-cloud-container/tests/system/smoke_test.py deleted file mode 100644 index 9dc5cd54cb60..000000000000 --- a/packages/google-cloud-container/tests/system/smoke_test.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import container_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -# REST transport is not yet supported in the client -@pytest.mark.parametrize("transport", ["grpc"]) -def test_list_clusters(project_id: str, transport: str): - client = container_v1.ClusterManagerClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_clusters(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-dataproc/tests/system/smoke_test.py b/packages/google-cloud-dataproc/tests/system/smoke_test.py deleted file mode 100644 index c388feed0ac1..000000000000 --- a/packages/google-cloud-dataproc/tests/system/smoke_test.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import dataproc_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_clusters(project_id: str, transport: str): - client = dataproc_v1.ClusterControllerClient(transport=transport) - - client.list_clusters(project_id=project_id, region="global") - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-dlp/tests/system/smoke_test.py b/packages/google-cloud-dlp/tests/system/smoke_test.py deleted file mode 100644 index 7c1fe6726a5e..000000000000 --- a/packages/google-cloud-dlp/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import dlp_v2 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_dlp_jobs(project_id: str, transport: str): - client = dlp_v2.DlpServiceClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_dlp_jobs(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-kms/tests/system/smoke_test.py b/packages/google-cloud-kms/tests/system/smoke_test.py deleted file mode 100644 index ff6c89422a8a..000000000000 --- a/packages/google-cloud-kms/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import kms_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_ekm_connections(project_id: str, transport: str): - client = kms_v1.EkmServiceClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-west1") - client.list_ekm_connections(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-monitoring/tests/system/smoke_test.py b/packages/google-cloud-monitoring/tests/system/smoke_test.py deleted file mode 100644 index 7510124bcb4d..000000000000 --- a/packages/google-cloud-monitoring/tests/system/smoke_test.py +++ /dev/null @@ -1,38 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import monitoring_v3 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -def test_list_alert_policies(project_id: str): - client = monitoring_v3.AlertPolicyServiceClient() - - name = client.common_location_path(project_id, location="us-west1") - client.list_alert_policies(name=name) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-os-config/tests/system/smoke_test.py b/packages/google-cloud-os-config/tests/system/smoke_test.py deleted file mode 100644 index e617c84f3f26..000000000000 --- a/packages/google-cloud-os-config/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import osconfig_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_patch_jobs(project_id: str, transport: str): - client = osconfig_v1.OsConfigServiceClient(transport=transport) - - parent = client.common_project_path(project_id) - client.list_patch_jobs(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-scheduler/tests/system/smoke_test.py b/packages/google-cloud-scheduler/tests/system/smoke_test.py deleted file mode 100644 index 73d2e746903b..000000000000 --- a/packages/google-cloud-scheduler/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import scheduler_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_jobs(project_id: str, transport: str): - client = scheduler_v1.CloudSchedulerClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_jobs(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-speech/tests/system/smoke_test.py b/packages/google-cloud-speech/tests/system/smoke_test.py deleted file mode 100644 index 62e7560da265..000000000000 --- a/packages/google-cloud-speech/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import speech_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_phrase_set(project_id: str, transport: str): - client = speech_v1.AdaptationClient(transport=transport) - - parent = client.common_location_path(project_id, location="global") - client.list_phrase_set(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-tasks/tests/system/smoke_test.py b/packages/google-cloud-tasks/tests/system/smoke_test.py deleted file mode 100644 index 1b16dae443b7..000000000000 --- a/packages/google-cloud-tasks/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import tasks_v2 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_queues(project_id: str, transport: str): - client = tasks_v2.CloudTasksClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_queues(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-texttospeech/tests/system/smoke_test.py b/packages/google-cloud-texttospeech/tests/system/smoke_test.py deleted file mode 100644 index ef2b43644159..000000000000 --- a/packages/google-cloud-texttospeech/tests/system/smoke_test.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 google.cloud import texttospeech_v1 - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_voices(transport: str): - client = texttospeech_v1.TextToSpeechClient(transport=transport) - - client.list_voices() - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-translate/tests/system/smoke_test.py b/packages/google-cloud-translate/tests/system/smoke_test.py deleted file mode 100644 index bcfc0019af61..000000000000 --- a/packages/google-cloud-translate/tests/system/smoke_test.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import translate_v3 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_glossaries(project_id: str, transport: str): - client = translate_v3.TranslationServiceClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-central1") - client.list_glossaries(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-videointelligence/tests/system/smoke_test.py b/packages/google-cloud-videointelligence/tests/system/smoke_test.py deleted file mode 100644 index 147b69189734..000000000000 --- a/packages/google-cloud-videointelligence/tests/system/smoke_test.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import videointelligence_v1 - -INPUT_URI = "gs://cloud-samples-data/video/cat.mp4" - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_annotate_video(transport: str): - client = videointelligence_v1.VideoIntelligenceServiceClient(transport=transport) - - features = [videointelligence_v1.Feature.LABEL_DETECTION] - client.annotate_video(features=features, input_uri=INPUT_URI).result() - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True diff --git a/packages/google-cloud-vision/tests/system/smoke_test.py b/packages/google-cloud-vision/tests/system/smoke_test.py deleted file mode 100644 index f1fef455a085..000000000000 --- a/packages/google-cloud-vision/tests/system/smoke_test.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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. -# -*- coding: utf-8 -*- -# -# Copyright 2023 Google LLC -# -# Licensed 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 -# -# https://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 os - -import pytest - -from google.cloud import vision_v1 - - -@pytest.fixture(scope="session") -def project_id(): - return os.environ["PROJECT_ID"] - - -@pytest.mark.parametrize("transport", ["grpc", "rest"]) -def test_list_products(project_id: str, transport: str): - client = vision_v1.ProductSearchClient(transport=transport) - - parent = client.common_location_path(project_id, location="us-west1") - client.list_products(parent=parent) - - # The purpose of this smoke test is to test the communication with the API server, - # rather than API-specific functionality. - # If the smoke test fails, we won't reach this line. - assert True