Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit 2834940

Browse files
committed
chore(tests): re-enable pipeline system tests on kokoro
1 parent 9a35dfe commit 2834940

4 files changed

Lines changed: 1 addition & 29 deletions

File tree

tests/system/test__helpers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@
2020
# run all tests against default database, and a named database
2121
TEST_DATABASES = [None, FIRESTORE_OTHER_DB]
2222
TEST_DATABASES_W_ENTERPRISE = TEST_DATABASES + [FIRESTORE_ENTERPRISE_DB]
23-
# TODO remove when kokoro fully supports enterprise mode/pipelines
24-
IS_KOKORO_TEST = os.getenv("KOKORO_JOB_NAME") is not None

tests/system/test_pipeline_acceptance.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,10 @@
3333

3434
from google.cloud.firestore import Client, AsyncClient
3535

36-
from test__helpers import FIRESTORE_ENTERPRISE_DB, IS_KOKORO_TEST
36+
from test__helpers import FIRESTORE_ENTERPRISE_DB
3737

3838
FIRESTORE_PROJECT = os.environ.get("GCLOUD_PROJECT")
3939

40-
# TODO: enable kokoro tests when internal test project is whitelisted
41-
pytestmark = pytest.mark.skipif(
42-
condition=IS_KOKORO_TEST,
43-
reason="Pipeline tests are currently not supported by kokoro",
44-
)
45-
4640
test_dir_name = os.path.dirname(__file__)
4741

4842
id_format = (

tests/system/test_system.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
ENTERPRISE_MODE_ERROR,
4646
TEST_DATABASES,
4747
TEST_DATABASES_W_ENTERPRISE,
48-
IS_KOKORO_TEST,
4948
)
5049

5150

@@ -67,10 +66,6 @@ def _get_credentials_and_project():
6766
def database(request):
6867
from test__helpers import FIRESTORE_ENTERPRISE_DB
6968

70-
# enterprise mode currently does not support RunQuery calls in prod on kokoro test project
71-
# TODO: remove skip when kokoro test project supports full enterprise mode
72-
if request.param == FIRESTORE_ENTERPRISE_DB and IS_KOKORO_TEST:
73-
pytest.skip("enterprise mode does not support RunQuery on kokoro")
7469
return request.param
7570

7671

@@ -99,11 +94,6 @@ def verify_pipeline(query):
9994
"""
10095
from google.cloud.firestore_v1.base_aggregation import BaseAggregationQuery
10196

102-
# return early on kokoro. Test project doesn't currently support pipelines
103-
# TODO: enable pipeline verification when kokoro test project is whitelisted
104-
if IS_KOKORO_TEST:
105-
pytest.skip("skipping pipeline verification on kokoro")
106-
10797
def _clean_results(results):
10898
if isinstance(results, dict):
10999
return {k: _clean_results(v) for k, v in results.items()}

tests/system/test_system_async.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
ENTERPRISE_MODE_ERROR,
5757
TEST_DATABASES,
5858
TEST_DATABASES_W_ENTERPRISE,
59-
IS_KOKORO_TEST,
6059
)
6160

6261
RETRIES = retries.AsyncRetry(
@@ -145,10 +144,6 @@ def _verify_explain_metrics_analyze_false(explain_metrics):
145144
def database(request):
146145
from test__helpers import FIRESTORE_ENTERPRISE_DB
147146

148-
# enterprise mode currently does not support RunQuery calls in prod on kokoro test project
149-
# TODO: remove skip when kokoro test project supports full enterprise mode
150-
if request.param == FIRESTORE_ENTERPRISE_DB and IS_KOKORO_TEST:
151-
pytest.skip("enterprise mode does not support RunQuery on kokoro")
152147
return request.param
153148

154149

@@ -179,11 +174,6 @@ async def verify_pipeline(query):
179174
"""
180175
from google.cloud.firestore_v1.base_aggregation import BaseAggregationQuery
181176

182-
# return early on kokoro. Test project doesn't currently support pipelines
183-
# TODO: enable pipeline verification when kokoro test project is whitelisted
184-
if IS_KOKORO_TEST:
185-
pytest.skip("skipping pipeline verification on kokoro")
186-
187177
def _clean_results(results):
188178
if isinstance(results, dict):
189179
return {k: _clean_results(v) for k, v in results.items()}

0 commit comments

Comments
 (0)