File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -925,35 +925,6 @@ def parse_spec_options(opts):
925925 if "maxCommitTimeMS" in opts :
926926 opts ["max_commit_time_ms" ] = opts .pop ("maxCommitTimeMS" )
927927
928- if "hint" in opts :
929- hint = opts .pop ("hint" )
930- if not isinstance (hint , str ):
931- hint = list (hint .items ())
932- opts ["hint" ] = hint
933-
934- # Properly format 'hint' arguments for the Bulk API tests.
935- if "requests" in opts :
936- reqs = opts .pop ("requests" )
937- for req in reqs :
938- if "name" in req :
939- # CRUD v2 format
940- args = req .pop ("arguments" , {})
941- if "hint" in args :
942- hint = args .pop ("hint" )
943- if not isinstance (hint , str ):
944- hint = list (hint .items ())
945- args ["hint" ] = hint
946- req ["arguments" ] = args
947- else :
948- # Unified test format
949- bulk_model , spec = next (iter (req .items ()))
950- if "hint" in spec :
951- hint = spec .pop ("hint" )
952- if not isinstance (hint , str ):
953- hint = list (hint .items ())
954- spec ["hint" ] = hint
955- opts ["requests" ] = reqs
956-
957928 return dict (opts )
958929
959930
You can’t perform that action at this time.
0 commit comments