Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr With Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A Test the fileview interface. grr.gui runtests_test grr.gui.api_plugins.client ApiSearchClientsHandler grr.lib access_control grr.lib aff4 grr.lib flags grr.lib flow grr.lib test_lib grr.lib utils grr.lib.flows.general discovery TestNotifications N/A N/A test_lib GRRSeleniumTest N/A N/A Test the fileview interface. GenerateNotifications N/A N/A cls N/A N/A N/A Generates fake notifications of different notification types. N/A token N/A N/A access_control ACLToken username test reason test fixture N/A session_id N/A N/A N/A flow GRRFlow StartFlow client_id aff4:/C.0000000000000001 flow_name N/A N/A discovery Interrogate __name__ token token N/A N/A N/A N/A aff4 FACTORY Open session_id mode rw token token flow_obj N/A N/A N/A N/A flow_obj Notify Discovery aff4:/C.0000000000000001 Fake discovery message N/A N/A N/A flow_obj Notify ViewObject aff4:/C.0000000000000001/fs/os/proc/10/exe File fetch completed N/A N/A N/A flow_obj Notify ViewObject N/A flow_obj urn Fake view flow message N/A N/A N/A N/A N/A flow_obj GetRunner Error Fake flow error N/A file_urn aff4:/tmp/foo/bar N/A N/A N/A N/A aff4 FACTORY Create file_urn AFF4MemoryStream token token fd N/A N/A N/A N/A fd Write hello N/A N/A N/A flow_obj Notify DownloadFile file_urn Fake file download message. N/A session_id N/A classmethod setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestNotifications self setUp N/A N/A N/A self ACLChecksDisabled N/A N/A N/A self session_id N/A N/A self GenerateNotifications N/A N/A N/A self RequestAndGrantClientApproval C.0000000000000001 N/A testNotifications N/A N/A self N/A N/A N/A Test the notifications interface. N/A N/A N/A self Open / N/A N/A N/A self WaitUntil N/A self IsElementPresent client_query N/A N/A N/A self WaitUntilEqual 6 N/A self GetText css=button[id=notification_button] N/A N/A N/A self Click css=button[id=notification_button] N/A N/A N/A self Click css=button:contains('Close') N/A N/A N/A self WaitUntilEqual 0 N/A self GetText css=button[id=notification_button] N/A N/A N/A self Open / N/A N/A N/A self WaitUntil N/A self IsElementPresent client_query N/A N/A N/A self WaitUntilEqual 0 N/A self GetText css=button[id=notification_button] N/A N/A N/A self Click css=button[id=notification_button] N/A N/A N/A self ClickUntil css=td:contains('File fetch completed') N/A self IsElementPresent css=li[id=_fs-os-proc-10] N/A N/A N/A self WaitUntilEqual Browse Virtual Filesystem N/A self GetText css=li[class='active'] N/A N/A N/A self WaitUntil N/A self IsElementPresent css=li[id=_fs-os-proc-10] N/A N/A N/A self WaitUntilContains aff4:/C.0000000000000001/fs/os/proc/10/exe N/A self GetText css=.tab-content h3 N/A N/A N/A self Click css=button[id=notification_button] N/A N/A N/A self WaitUntilContains terminated due to error N/A self GetText css=td:contains('error') N/A N/A N/A self ClickUntil css=td:contains('terminated due to error') N/A self IsTextPresent Flow Information N/A N/A N/A self WaitUntilEqual Manage launched flows N/A self GetText css=li[class='active'] N/A N/A N/A self WaitUntilContains N/A self session_id N/A self GetText css=.tab-content h3 N/A testUserSettings N/A N/A self N/A N/A N/A Tests that user settings UI is working. N/A N/A N/A self Open / N/A N/A N/A self WaitUntil N/A self IsElementPresent client_query N/A mode_selector css=.form-group:has(label:contains('Mode')) select N/A N/A N/A self Click css=grr-user-settings-button N/A N/A N/A self assertEqual ADVANCED N/A N/A N/A N/A self GetSelectedLabel mode_selector strip N/A N/A N/A self Select mode_selector BASIC (default) N/A N/A N/A self Click css=button[name=Proceed] N/A N/A N/A self Click css=grr-user-settings-button N/A N/A N/A self assertEqual BASIC (default) N/A N/A N/A N/A self GetSelectedLabel mode_selector strip N/A testClickOnDownloadFileNotificationLeadsToImmediateFileDownload N/A N/A self N/A N/A N/A file_urn aff4:/tmp/foo/bar N/A N/A N/A self ACLChecksDisabled N/A N/A N/A N/A N/A aff4 FACTORY Create file_urn AFF4MemoryStream token N/A self token fd N/A N/A N/A N/A fd Write hello N/A N/A N/A self _SendNotification notification_type DownloadFile subject file_urn message Here is your file, sir. N/A N/A N/A self Open / N/A N/A N/A self Click css=button[id=notification_button] N/A N/A N/A self Click css=td:contains('Here is your file, sir.') N/A N/A N/A self WaitUntil N/A self FileWasDownloaded N/A testServerErrorShowsErrorButton N/A N/A self N/A N/A grr.gui.plugins.configuration_view ConfigFileTableToolbar MockLayout N/A N/A self request response N/A N/A N/A Fake layout method to force an exception. N/A N/A RuntimeError This is a forced exception N/A N/A N/A N/A self ACLChecksDisabled N/A N/A N/A N/A utils Stubber ConfigFileTableToolbar Layout MockLayout N/A N/A N/A N/A self Open / N/A N/A N/A self Click css=a:contains('Manage Binaries') N/A N/A N/A self Click css=button#show_backtrace N/A N/A N/A self WaitUntilContains This is a forced exception N/A self GetText css=div[name=ServerErrorDialog] N/A N/A N/A self WaitUntilContains Traceback (most recent call last): N/A self GetText css=div[name=ServerErrorDialog] N/A testServerErrorInApiShowsErrorButton N/A N/A self N/A N/A MockRender N/A N/A self args token N/A N/A N/A Fake render method to force an exception. N/A N/A RuntimeError This is a another forced exception N/A N/A N/A N/A utils Stubber ApiSearchClientsHandler Handle MockRender N/A N/A N/A N/A self Open / N/A N/A N/A self Click client_query_submit N/A N/A N/A self Click css=button#show_backtrace N/A N/A N/A self WaitUntilContains This is a another forced exception N/A self GetText css=div[name=ServerErrorDialog] N/A N/A N/A self WaitUntilContains Traceback (most recent call last): N/A self GetText css=div[name=ServerErrorDialog] N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A runtests_test SeleniumTestProgram argv argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags StartMain main