This repository was archived by the owner on Mar 2, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020# run all tests against default database, and a named database
2121TEST_DATABASES = [None , FIRESTORE_OTHER_DB ]
2222TEST_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
Original file line number Diff line number Diff line change 3333
3434from 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
3838FIRESTORE_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-
4640test_dir_name = os .path .dirname (__file__ )
4741
4842id_format = (
Original file line number Diff line number Diff line change 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():
6766def 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 ()}
Original file line number Diff line number Diff line change 5656 ENTERPRISE_MODE_ERROR ,
5757 TEST_DATABASES ,
5858 TEST_DATABASES_W_ENTERPRISE ,
59- IS_KOKORO_TEST ,
6059)
6160
6261RETRIES = retries .AsyncRetry (
@@ -145,10 +144,6 @@ def _verify_explain_metrics_analyze_false(explain_metrics):
145144def 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 ()}
You can’t perform that action at this time.
0 commit comments