Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str keyword AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str keyword AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str keyword AttributeLoad NameLoad attr NameStore body With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Dict Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Str keyword NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr keyword Str keyword Num With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr keyword Str decorator_list Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr keyword Str keyword Num With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body For NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Num body For NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num Return Dict Call AttributeLoad NameLoad attr Str decorator_list With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Dict Str Str Str AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str NameLoad Dict Str Str Str ListLoad Str NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Dict Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num Return Dict Call AttributeLoad NameLoad attr Str decorator_list With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str keyword NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Str Str For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad Str NameStore body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Break Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A This module contains tests for flows-related API handlers. N/A os N/A StringIO N/A tarfile N/A zipfile N/A yaml grr.gui api_test_lib grr.gui.api_plugins flow flow_plugin grr.lib action_mocks grr.lib aff4 grr.lib flags grr.lib flow grr.lib flow_runner grr.lib output_plugin grr.lib rdfvalue grr.lib test_lib grr.lib throttle grr.lib type_info grr.lib utils grr.lib.aff4_objects collects aff4_collections grr.lib.flows.general administrative grr.lib.flows.general discovery grr.lib.flows.general file_finder grr.lib.flows.general processes grr.lib.flows.general transfer grr.lib.hunts standard_test grr.lib.output_plugins email_plugin grr.lib.rdfvalues client rdf_client grr.lib.rdfvalues paths rdf_paths ApiGetFlowStatusHandlerTest N/A N/A test_lib GRRBaseTest N/A N/A Test for ApiGetFlowStatusHandler. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiGetFlowStatusHandlerTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A N/A self handler N/A N/A flow_plugin ApiGetFlowStatusHandler N/A testIsDisabledByDefault N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A N/A self handler enabled_by_default N/A testParameterValidation N/A N/A self N/A N/A N/A Check bad parameters are rejected.

    Make sure our input is validated because this API doesn't require
    authorization.
     N/A bad_flowid N/A N/A flow_plugin ApiGetFlowStatusArgs client_id N/A N/A N/A self client_id Basename flow_id X:<script> N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A N/A self handler Render bad_flowid token N/A self token N/A N/A N/A self assertRaises N/A type_info TypeValueError N/A N/A N/A N/A flow_plugin ApiGetFlowStatusArgs client_id C.123456<script> flow_id X:1245678 N/A N/A ApiGetFlowStatusHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Test flow status handler.

  This handler is disabled by default in the ACLs so we need to do some
  patching to get the proper output and not just "access denied".
   N/A handler ApiGetFlowStatusHandler Run N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A client_urn N/A N/A N/A self SetupClients 1 N/A 0 N/A N/A N/A N/A aff4 FACTORY Open client_urn mode rw token N/A self token client_obj N/A N/A N/A N/A client_obj DeleteAttribute N/A N/A client_obj Schema CERT N/A flow_id N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A discovery Interrogate __name__ client_id client_urn token N/A self token N/A flow_obj N/A N/A N/A aff4 FACTORY Open flow_id aff4_type N/A N/A flow GRRFlow __name__ token N/A self token N/A flow_state N/A N/A flow_obj Get N/A N/A flow_obj Schema FLOW_STATE N/A N/A N/A N/A aff4 FACTORY Create N/A N/A flow_state context output_urn aff4_type N/A N/A aff4_collections RDFValueCollection __name__ token N/A self token collection N/A N/A N/A N/A collection Add N/A N/A rdf_client ClientSummary N/A N/A N/A self Check GET N/A /api/flows/%s/%s/status N/A N/A N/A client_urn Basename N/A N/A flow_id Basename replace N/A N/A N/A flow_id Basename F:ABCDEF12 N/A N/A ApiGetFlowHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiGetFlowHandler. N/A handler ApiGetFlowHandler Run N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A client_urn N/A N/A N/A self SetupClients 1 N/A 0 N/A N/A N/A N/A aff4 FACTORY Open client_urn mode rw token N/A self token client_obj N/A N/A N/A N/A client_obj DeleteAttribute N/A N/A client_obj Schema CERT N/A flow_id N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A discovery Interrogate __name__ client_id client_urn token N/A self token N/A N/A N/A self Check GET N/A /api/clients/%s/flows/%s N/A N/A N/A client_urn Basename N/A N/A flow_id Basename replace N/A N/A N/A flow_id Basename F:ABCDEF12 N/A N/A ApiListClientFlowsHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Test client flows list handler. N/A handler ApiListClientFlowsHandler Run N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A client_urn N/A N/A N/A self SetupClients 1 N/A 0 N/A N/A N/A test_lib FakeTime 43 N/A N/A flow_id_1 N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A discovery Interrogate __name__ client_id client_urn output token N/A self token N/A N/A N/A test_lib FakeTime 44 N/A N/A flow_id_2 N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A processes ListProcesses __name__ client_id client_urn output token N/A self token N/A N/A N/A self Check GET N/A /api/clients/%s/flows N/A N/A client_urn Basename replace N/A N/A N/A flow_id_1 Basename N/A N/A flow_id_2 Basename F:ABCDEF10 F:ABCDEF11 N/A N/A ApiListFlowResultsHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiListFlowResultsHandler. N/A handler ApiListFlowResultsHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiListFlowResultsHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A N/A runner_args N/A N/A flow_runner FlowRunnerArgs flow_name N/A N/A transfer GetFile __name__ N/A flow_args N/A N/A transfer GetFileArgs pathspec N/A N/A rdf_paths PathSpec path /tmp/evil.txt pathtype N/A N/A N/A rdf_paths PathSpec PathType OS N/A client_mock N/A N/A test_lib SampleHuntMock N/A N/A N/A test_lib FakeTime 42 N/A N/A flow_urn N/A N/A N/A flow GRRFlow StartFlow client_id N/A self client_id args flow_args runner_args runner_args token N/A self token N/A _ N/A N/A test_lib TestFlowHelper flow_urn client_mock client_mock client_id N/A self client_id token N/A self token N/A N/A N/A N/A N/A self Check GET N/A /api/clients/%s/flows/%s/results N/A N/A N/A N/A self client_id Basename N/A N/A flow_urn Basename replace N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A ApiListFlowLogsHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiListFlowResultsHandler. N/A handler ApiListHuntLogsHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiListFlowLogsHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A N/A flow_urn N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A processes ListProcesses __name__ client_id N/A self client_id token N/A self token N/A N/A N/A N/A aff4 FACTORY Open flow_urn mode rw token N/A self token flow_obj N/A N/A N/A N/A test_lib FakeTime 52 N/A N/A N/A N/A flow_obj Log Sample message: foo. N/A N/A N/A test_lib FakeTime 55 N/A N/A N/A N/A flow_obj Log Sample message: bar. N/A base_url N/A /api/clients/%s/flows/%s/log N/A N/A N/A N/A self client_id Basename N/A N/A flow_urn Basename N/A replace N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A N/A self Check GET base_url replace replace N/A N/A N/A self Check GET N/A base_url ?count=1 replace replace N/A N/A N/A self Check GET N/A base_url ?count=1&offset=1 replace replace N/A N/A ApiGetFlowResultsExportCommandHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiGetFlowResultsExportCommandHandler. N/A handler ApiGetFlowResultsExportCommandHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiGetFlowResultsExportCommandHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A flow_urn N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A processes ListProcesses __name__ client_id N/A self client_id token N/A self token N/A N/A N/A self Check GET N/A /api/clients/%s/flows/%s/results/export-command N/A N/A N/A N/A self client_id Basename N/A N/A flow_urn Basename replace N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A ApiListFlowOutputPluginsHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiListFlowOutputPluginsHandler. N/A handler ApiListFlowOutputPluginsHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiListFlowOutputPluginsHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A N/A email_descriptor N/A N/A output_plugin OutputPluginDescriptor plugin_name N/A N/A email_plugin EmailOutputPlugin __name__ plugin_args N/A N/A email_plugin EmailOutputPluginArgs email_address test@localhost emails_limit 42 N/A N/A N/A test_lib FakeTime 42 N/A N/A flow_urn N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A processes ListProcesses __name__ client_id N/A self client_id output_plugins N/A email_descriptor token N/A self token N/A N/A N/A self Check GET N/A /api/clients/%s/flows/%s/output-plugins N/A N/A N/A N/A self client_id Basename N/A N/A flow_urn Basename replace N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A DummyFlowWithSingleReply N/A N/A flow GRRFlow N/A N/A Just emits 1 reply. Start N/A N/A self unused_response N/A None N/A N/A N/A N/A self CallState next_state SendSomething N/A N/A N/A flow StateHandler SendSomething N/A N/A self unused_response N/A None N/A N/A N/A N/A self SendReply N/A N/A rdfvalue RDFString oh N/A N/A N/A flow StateHandler N/A ApiListFlowOutputPluginLogsHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiListFlowOutputPluginLogsHandler. N/A handler ApiListFlowOutputPluginLogsHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiListFlowOutputPluginLogsHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A N/A email_descriptor N/A N/A output_plugin OutputPluginDescriptor plugin_name N/A N/A email_plugin EmailOutputPlugin __name__ plugin_args N/A N/A email_plugin EmailOutputPluginArgs email_address test@localhost emails_limit 42 N/A N/A N/A test_lib FakeTime 42 N/A N/A flow_urn N/A N/A N/A flow GRRFlow StartFlow flow_name N/A DummyFlowWithSingleReply __name__ client_id N/A self client_id output_plugins N/A email_descriptor token N/A self token N/A N/A N/A test_lib FakeTime 43 N/A N/A _ N/A N/A test_lib TestFlowHelper flow_urn token N/A self token N/A N/A N/A N/A N/A self Check GET N/A /api/clients/%s/flows/%s/output-plugins/EmailOutputPlugin_0/logs N/A N/A N/A N/A self client_id Basename N/A N/A flow_urn Basename replace N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A ApiListFlowOutputPluginErrorsHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiListFlowOutputPluginErrorsHandler. N/A handler ApiListFlowOutputPluginErrorsHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiListFlowOutputPluginErrorsHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A N/A failing_descriptor N/A N/A output_plugin OutputPluginDescriptor plugin_name N/A N/A standard_test FailingDummyHuntOutputPlugin __name__ N/A N/A N/A test_lib FakeTime 42 N/A N/A flow_urn N/A N/A N/A flow GRRFlow StartFlow flow_name N/A DummyFlowWithSingleReply __name__ client_id N/A self client_id output_plugins N/A failing_descriptor token N/A self token N/A N/A N/A test_lib FakeTime 43 N/A N/A _ N/A N/A test_lib TestFlowHelper flow_urn token N/A self token N/A N/A N/A N/A N/A self Check GET N/A /api/clients/%s/flows/%s/output-plugins/FailingDummyHuntOutputPlugin_0/errors N/A N/A N/A N/A self client_id Basename N/A N/A flow_urn Basename replace N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A ApiCreateFlowHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiCreateFlowHandler. N/A handler ApiCreateFlowHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiCreateFlowHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A ReplaceFlowId N/A N/A N/A N/A N/A flows_dir_fd N/A N/A N/A aff4 FACTORY Open N/A N/A N/A self client_id Add flows token N/A self token N/A flow_urn N/A N/A list N/A N/A flows_dir_fd ListChildren N/A 0 N/A N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A N/A N/A self Check POST N/A /api/clients/%s/flows N/A N/A N/A self client_id Basename N/A flow N/A name args runner_args N/A N/A processes ListProcesses __name__ N/A filename_regex fetch_binaries . True N/A output_plugins priority notify_to_user N/A HIGH_PRIORITY False replace ReplaceFlowId N/A N/A ApiCancelFlowHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiCancelFlowHandler. N/A handler ApiCancelFlowHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiCancelFlowHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A flow_urn N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A processes ListProcesses __name__ client_id N/A self client_id token N/A self token N/A N/A N/A self Check POST N/A /api/clients/%s/flows/%s/actions/cancel N/A N/A N/A N/A self client_id Basename N/A N/A flow_urn Basename replace N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A ApiListFlowDescriptorsHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A Regression test for ApiListFlowDescriptorsHandler. N/A handler ApiListFlowDescriptorsHandler Run N/A N/A self N/A N/A N/A N/A N/A utils Stubber N/A flow GRRFlow classes N/A ListProcesses FileFinder RunReport N/A processes ListProcesses N/A file_finder FileFinder N/A administrative RunReport N/A N/A N/A N/A self CreateAdminUser test N/A N/A N/A self Check GET /api/flows/descriptors N/A N/A N/A self Check GET /api/flows/descriptors?flow_type=client N/A N/A N/A self Check GET /api/flows/descriptors?flow_type=global N/A N/A ApiStartGetFileOperationHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A handler ApiStartGetFileOperationHandler setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiStartGetFileOperationHandlerRegressionTest self setUp N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A Run N/A N/A self N/A N/A ReplaceFlowId N/A N/A N/A N/A N/A flows_dir_fd N/A N/A N/A aff4 FACTORY Open N/A N/A N/A self client_id Add flows token N/A self token N/A flow_urn N/A N/A list N/A N/A flows_dir_fd ListChildren N/A 0 N/A N/A N/A N/A flow_urn Basename W:ABCDEF N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A N/A N/A self Check POST N/A /api/clients/%s/flows/remotegetfile N/A N/A N/A self client_id Basename N/A hostname paths N/A N/A N/A self client_id Basename N/A /tmp/test replace ReplaceFlowId N/A N/A ApiStartGetFileOperationHandlerTest N/A N/A test_lib GRRBaseTest N/A N/A Test for ApiStartGetFileOperationHandler. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiStartGetFileOperationHandlerTest self setUp N/A N/A self client_ids N/A N/A self SetupClients 4 N/A N/A self handler N/A N/A flow_plugin ApiStartGetFileOperationHandler N/A testClientLookup N/A N/A self N/A N/A N/A When multiple clients match, check we run on the latest one. N/A args N/A N/A flow_plugin ApiStartGetFileOperationArgs hostname Host paths N/A /test N/A result N/A N/A N/A self handler Render args token N/A self token N/A N/A N/A self assertIn C.1000000000000003 N/A result N/A status_url N/A testThrottle N/A N/A self N/A N/A N/A Calling the same flow should raise. N/A args N/A N/A flow_plugin ApiStartGetFileOperationArgs hostname Host paths N/A /test N/A result N/A N/A N/A self handler Render args token N/A self token N/A N/A N/A self assertIn C.1000000000000003 N/A result N/A status_url N/A N/A N/A self assertRaises N/A throttle ErrorFlowDuplicate N/A N/A N/A N/A N/A self handler Render args token N/A self token N/A N/A ApiGetFlowFilesArchiveHandlerTest N/A N/A test_lib GRRBaseTest N/A N/A Tests for ApiGetFlowFilesArchiveHandler. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiGetFlowFilesArchiveHandlerTest self setUp N/A N/A self handler N/A N/A flow_plugin ApiGetFlowFilesArchiveHandler N/A N/A self client_id N/A N/A N/A self SetupClients 1 N/A 0 N/A N/A self flow_urn N/A N/A N/A flow GRRFlow StartFlow flow_name N/A N/A file_finder FileFinder __name__ client_id N/A self client_id paths N/A N/A N/A N/A os path join N/A self base_path test.plist action N/A N/A file_finder FileFinderAction action_type DOWNLOAD token N/A self token N/A action_mock N/A N/A action_mocks ActionMock TransferBuffer StatFile HashFile HashBuffer N/A _ N/A N/A test_lib TestFlowHelper N/A self flow_urn action_mock client_id N/A self client_id token N/A self token N/A N/A N/A testGeneratesZipArchive N/A N/A self N/A N/A N/A result N/A N/A N/A self handler Handle N/A N/A flow_plugin ApiGetFlowFilesArchiveArgs client_id N/A self client_id flow_id N/A N/A N/A self flow_urn Basename archive_format ZIP token N/A self token N/A out_fd N/A N/A StringIO StringIO N/A chunk N/A N/A result GenerateContent N/A N/A N/A N/A out_fd write chunk N/A zip_fd N/A N/A zipfile ZipFile out_fd r N/A manifest None N/A name N/A N/A zip_fd namelist N/A N/A N/A N/A name endswith MANIFEST N/A N/A manifest N/A N/A yaml safe_load N/A N/A zip_fd read name N/A N/A N/A self assertEqual N/A manifest N/A archived_files 1 N/A N/A N/A self assertEqual N/A manifest N/A failed_files 0 N/A N/A N/A self assertEqual N/A manifest N/A processed_files 1 N/A N/A N/A self assertEqual N/A manifest N/A skipped_files 0 N/A testGeneratesTarGzArchive N/A N/A self N/A N/A N/A result N/A N/A N/A self handler Handle N/A N/A flow_plugin ApiGetFlowFilesArchiveArgs client_id N/A self client_id flow_id N/A N/A N/A self flow_urn Basename archive_format TAR_GZ token N/A self token N/A N/A N/A utils TempDirectory temp_dir N/A N/A tar_path N/A N/A N/A os path join temp_dir archive.tar.gz N/A N/A open tar_path w fd N/A N/A chunk N/A N/A result GenerateContent N/A N/A N/A N/A fd write chunk N/A N/A N/A tarfile open tar_path tar_fd N/A N/A N/A N/A tar_fd extractall path temp_dir N/A manifest_file_path None N/A N/A parent _ files N/A N/A os walk temp_dir N/A N/A N/A MANIFEST files N/A N/A manifest_file_path N/A N/A N/A os path join parent MANIFEST N/A N/A N/A N/A self assertTrue manifest_file_path N/A N/A open manifest_file_path fd N/A N/A manifest N/A N/A yaml safe_load N/A N/A fd read N/A N/A N/A self assertEqual N/A manifest N/A archived_files 1 N/A N/A N/A self assertEqual N/A manifest N/A failed_files 0 N/A N/A N/A self assertEqual N/A manifest N/A processed_files 1 N/A N/A N/A self assertEqual N/A manifest N/A skipped_files 0 N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A test_lib main argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags StartMain main