Skip to content

Commit bee6089

Browse files
chore: skip kms tests until b/470276398 (#1690)
chore: skip kms tests until b/470276398 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent f7095fa commit bee6089

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

samples/snippets/snippets_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import tempfile
1919
import time
2020
import uuid
21+
import sys
2122

2223
from google.cloud import storage
2324
import google.cloud.exceptions
@@ -99,8 +100,10 @@
99100
import storage_upload_with_kms_key
100101

101102
KMS_KEY = os.environ.get("CLOUD_KMS_KEY")
103+
IS_PYTHON_3_14 = sys.version_info[:2] == (3, 14)
102104

103105

106+
@pytest.mark.skipif(IS_PYTHON_3_14, reason="b/470276398")
104107
def test_enable_default_kms_key(test_bucket):
105108
storage_set_bucket_default_kms_key.enable_default_kms_key(
106109
bucket_name=test_bucket.name, kms_key_name=KMS_KEY
@@ -305,6 +308,7 @@ def test_upload_blob_from_stream(test_bucket, capsys):
305308
assert "Stream data uploaded to test_upload_blob" in out
306309

307310

311+
@pytest.mark.skipif(IS_PYTHON_3_14, reason="b/470276398")
308312
def test_upload_blob_with_kms(test_bucket):
309313
blob_name = f"test_upload_with_kms_{uuid.uuid4().hex}"
310314
with tempfile.NamedTemporaryFile() as source_file:
@@ -598,6 +602,7 @@ def test_create_bucket_dual_region(test_bucket_create, capsys):
598602
assert "dual-region" in out
599603

600604

605+
@pytest.mark.skipif(IS_PYTHON_3_14, reason="b/470276398")
601606
def test_bucket_delete_default_kms_key(test_bucket, capsys):
602607
test_bucket.default_kms_key_name = KMS_KEY
603608
test_bucket.patch()
@@ -646,6 +651,7 @@ def test_define_bucket_website_configuration(test_bucket):
646651
assert bucket._properties["website"] == website_val
647652

648653

654+
@pytest.mark.skipif(IS_PYTHON_3_14, reason="b/470276398")
649655
def test_object_get_kms_key(test_bucket):
650656
with tempfile.NamedTemporaryFile() as source_file:
651657
storage_upload_with_kms_key.upload_blob_with_kms(

0 commit comments

Comments
 (0)