4646 ENTERPRISE_MODE_ERROR ,
4747 TEST_DATABASES ,
4848 TEST_DATABASES_W_ENTERPRISE ,
49- IS_KOKORO_TEST ,
5049 FIRESTORE_ENTERPRISE_DB ,
5150)
5251
@@ -67,12 +66,6 @@ def _get_credentials_and_project():
6766
6867@pytest .fixture (scope = "session" )
6968def database (request ):
70- from test__helpers import FIRESTORE_ENTERPRISE_DB
71-
72- # enterprise mode currently does not support RunQuery calls in prod on kokoro test project
73- # TODO: remove skip when kokoro test project supports full enterprise mode
74- if request .param == FIRESTORE_ENTERPRISE_DB and IS_KOKORO_TEST :
75- pytest .skip ("enterprise mode does not support RunQuery on kokoro" )
7669 return request .param
7770
7871
@@ -101,11 +94,6 @@ def verify_pipeline(query):
10194 """
10295 from google .cloud .firestore_v1 .base_aggregation import BaseAggregationQuery
10396
104- # return early on kokoro. Test project doesn't currently support pipelines
105- # TODO: enable pipeline verification when kokoro test project is whitelisted
106- if IS_KOKORO_TEST :
107- pytest .skip ("skipping pipeline verification on kokoro" )
108-
10997 def _clean_results (results ):
11098 if isinstance (results , dict ):
11199 return {k : _clean_results (v ) for k , v in results .items ()}
@@ -1771,22 +1759,6 @@ def test_pipeline_explain_options_using_additional_options(
17711759 assert "Execution:" in text_stats
17721760
17731761
1774- @pytest .mark .skipif (
1775- FIRESTORE_EMULATOR , reason = "Query profile not supported in emulator."
1776- )
1777- @pytest .mark .parametrize ("database" , [FIRESTORE_ENTERPRISE_DB ], indirect = True )
1778- def test_pipeline_index_mode (database , query_docs ):
1779- """test pipeline query with explicit index mode"""
1780-
1781- collection , _ , allowed_vals = query_docs
1782- client = collection ._client
1783- query = collection .where (filter = FieldFilter ("a" , "==" , 1 ))
1784- pipeline = client .pipeline ().create_from (query )
1785- with pytest .raises (InvalidArgument ) as e :
1786- pipeline .execute (index_mode = "fake_index" )
1787- assert "Invalid index_mode: fake_index" in str (e )
1788-
1789-
17901762@pytest .mark .parametrize ("database" , TEST_DATABASES , indirect = True )
17911763def test_query_stream_w_read_time (query_docs , cleanup , database ):
17921764 collection , stored , allowed_vals = query_docs
@@ -1825,7 +1797,6 @@ def test_query_stream_w_read_time(query_docs, cleanup, database):
18251797 assert new_values [new_ref .id ] == new_data
18261798
18271799
1828- @pytest .mark .skipif (IS_KOKORO_TEST , reason = "skipping pipeline verification on kokoro" )
18291800@pytest .mark .parametrize ("database" , [FIRESTORE_ENTERPRISE_DB ], indirect = True )
18301801def test_pipeline_w_read_time (query_docs , cleanup , database ):
18311802 collection , stored , allowed_vals = query_docs
0 commit comments