Module Expr Str ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias 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 decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword AttributeLoad NameLoad attr NameStore body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Str Str Str Num Str Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Str keyword AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str 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 decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword AttributeLoad NameLoad attr NameStore body Pass With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword AttributeLoad NameLoad attr NameStore body Pass Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad ListLoad Str Num ListLoad Str Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword AttributeLoad NameLoad attr body Pass With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword AttributeLoad NameLoad attr body Pass With Call AttributeLoad NameLoad attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword AttributeLoad NameLoad attr body Pass Expr Call AttributeLoad NameLoad attr Str Str 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 modules contains tests for AFF4 API handlers. grr.gui api_test_lib grr.gui.api_plugins aff4 aff4_plugin grr.lib aff4 grr.lib flags grr.lib test_lib ApiGetAff4ObjectHandlerTest N/A N/A test_lib GRRBaseTest N/A N/A Test for ApiGetAff4ObjectHandler. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiGetAff4ObjectHandlerTest self setUp N/A N/A self handler N/A N/A aff4_plugin ApiGetAff4ObjectHandler N/A testRendersAff4ObjectWithGivenPath N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A N/A N/A N/A aff4 FACTORY Create aff4:/tmp/foo/bar AFF4Volume token N/A self token _ N/A N/A N/A result N/A N/A N/A self handler Render N/A N/A aff4_plugin ApiGetAff4ObjectArgs aff4_path tmp/foo/bar token N/A self token N/A N/A N/A self assertEqual N/A result N/A urn aff4:/tmp/foo/bar N/A N/A N/A self assertEqual N/A result N/A aff4_class AFF4Volume N/A N/A N/A self assertEqual N/A result N/A age_policy NEWEST_TIME N/A N/A N/A self assertEqual N/A N/A result N/A attributes N/A metadata:last N/A value type age 42000000 RDFDatetime 42000000 N/A N/A ApiGetAff4ObjectHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A handler ApiGetAff4ObjectHandler Run N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A N/A N/A N/A aff4 FACTORY Create aff4:/foo/bar AFF4Object mode rw token N/A self token sample_object N/A N/A N/A N/A sample_object AddLabels label1 label2 N/A N/A N/A self Check GET /api/aff4/foo/bar N/A N/A ApiGetAff4IndexHandlerTest N/A N/A test_lib GRRBaseTest N/A N/A Test for ApiGetAff4IndexHandlerTest. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApiGetAff4IndexHandlerTest self setUp N/A N/A self handler N/A N/A aff4_plugin ApiGetAff4IndexHandler N/A testReturnsChildrenListWithTimestamps N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A N/A N/A N/A aff4 FACTORY Create aff4:/tmp/foo/bar1 AFF4Volume token N/A self token _ N/A N/A N/A N/A N/A test_lib FakeTime 43 N/A N/A N/A N/A N/A aff4 FACTORY Create aff4:/tmp/foo/bar2 AFF4Volume token N/A self token _ N/A N/A N/A result N/A N/A N/A self handler Render N/A N/A aff4_plugin ApiGetAff4IndexArgs aff4_path tmp/foo token N/A self token N/A result N/A sorted result key N/A N/A N/A x N/A N/A x N/A 0 N/A N/A N/A self assertEqual result N/A N/A aff4:/tmp/foo/bar1 42000000 N/A aff4:/tmp/foo/bar2 43000000 N/A N/A ApiGetAff4IndexHandlerRegressionTest N/A N/A api_test_lib ApiCallHandlerRegressionTest N/A N/A handler ApiGetAff4IndexHandler Run N/A N/A self N/A N/A N/A N/A N/A test_lib FakeTime 42 N/A N/A N/A N/A N/A aff4 FACTORY Create some/path AFF4Volume token N/A self token N/A N/A N/A N/A N/A test_lib FakeTime 43 N/A N/A N/A N/A N/A aff4 FACTORY Create some/path/foo AFF4Volume token N/A self token N/A N/A N/A N/A N/A test_lib FakeTime 44 N/A N/A N/A N/A N/A aff4 FACTORY Create some/path/bar AFF4Volume token N/A self token N/A N/A N/A N/A N/A self Check GET /api/aff4-index/some/path 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