File tree Expand file tree Collapse file tree 3 files changed +108
-0
lines changed
packages/google-cloud-firestore
tests/system/pipeline_e2e Expand file tree Collapse file tree 3 files changed +108
-0
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,7 @@ def system(session):
399399 session .run (
400400 "py.test" ,
401401 "--quiet" ,
402+ "-s" ,
402403 f"--junitxml=system_{ session .python } _sponge_log.xml" ,
403404 system_test_path ,
404405 * session .posargs ,
@@ -407,6 +408,7 @@ def system(session):
407408 session .run (
408409 "py.test" ,
409410 "--quiet" ,
411+ "-s" ,
410412 f"--junitxml=system_{ session .python } _sponge_log.xml" ,
411413 system_test_folder_path ,
412414 * session .posargs ,
Original file line number Diff line number Diff line change @@ -554,6 +554,78 @@ tests:
554554 - integerValue : ' -1'
555555 name : offset
556556 name : select
557+ - description : testOffset_LiteralArray
558+ pipeline :
559+ - Collection : books
560+ - Limit : 1
561+ - Select :
562+ - AliasedExpression :
563+ - FunctionExpression.offset :
564+ - Array : [10, 20, 30]
565+ - Constant : 1
566+ - " element"
567+ assert_results :
568+ - element : 20
569+ assert_proto :
570+ pipeline :
571+ stages :
572+ - args :
573+ - referenceValue : /books
574+ name : collection
575+ - args :
576+ - integerValue : ' 1'
577+ name : limit
578+ - args :
579+ - mapValue :
580+ fields :
581+ element :
582+ functionValue :
583+ args :
584+ - functionValue :
585+ args :
586+ - integerValue : ' 10'
587+ - integerValue : ' 20'
588+ - integerValue : ' 30'
589+ name : array
590+ - integerValue : ' 1'
591+ name : offset
592+ name : select
593+ - description : testOffset_LiteralArray_Negative
594+ pipeline :
595+ - Collection : books
596+ - Limit : 1
597+ - Select :
598+ - AliasedExpression :
599+ - FunctionExpression.offset :
600+ - Array : [10, 20, 30]
601+ - Constant : -1
602+ - " element"
603+ assert_results :
604+ - element : 30
605+ assert_proto :
606+ pipeline :
607+ stages :
608+ - args :
609+ - referenceValue : /books
610+ name : collection
611+ - args :
612+ - integerValue : ' 1'
613+ name : limit
614+ - args :
615+ - mapValue :
616+ fields :
617+ element :
618+ functionValue :
619+ args :
620+ - functionValue :
621+ args :
622+ - integerValue : ' 10'
623+ - integerValue : ' 20'
624+ - integerValue : ' 30'
625+ name : array
626+ - integerValue : ' -1'
627+ name : offset
628+ name : select
557629 - description : testArrayFirst
558630 pipeline :
559631 - Collection : books
Original file line number Diff line number Diff line change @@ -826,6 +826,40 @@ tests:
826826 - res
827827 assert_results :
828828 - res : " B"
829+ - description : testSwitchOn_Default
830+ pipeline :
831+ - Literals :
832+ - res :
833+ FunctionExpression.switch_on :
834+ - FunctionExpression.equal :
835+ - Constant : 1
836+ - Constant : 2
837+ - Constant : " A"
838+ - FunctionExpression.equal :
839+ - Constant : 1
840+ - Constant : 3
841+ - Constant : " B"
842+ - Constant : " C"
843+ - Select :
844+ - res
845+ assert_results :
846+ - res : " C"
847+ - description : testSwitchOn_Error
848+ pipeline :
849+ - Literals :
850+ - res :
851+ FunctionExpression.switch_on :
852+ - FunctionExpression.equal :
853+ - Constant : 1
854+ - Constant : 2
855+ - Constant : " A"
856+ - FunctionExpression.equal :
857+ - Constant : 1
858+ - Constant : 3
859+ - Constant : " B"
860+ - Select :
861+ - res
862+ assert_error : " .*all switch cases evaluate to false, and no default provided"
829863 - description : testStorageSize
830864 pipeline :
831865 - Collection : books
You can’t perform that action at this time.
0 commit comments