Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Num If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Str Str Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Print Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Dict Str Str Str Str decorator_list
N/A N/A End to end tests for lib.flows.general.administrative. N/A os N/A logging grr.endtoend_tests base grr.lib aff4 grr.lib config_lib grr.lib maintenance_utils TestGetClientStats N/A N/A base AutomatedTest N/A N/A GetClientStats test. N/A platforms N/A Linux Windows Darwin N/A test_output_path stats N/A flow GetClientStats CheckFlow N/A N/A self N/A N/A N/A N/A N/A N/A aff4 FACTORY Flush N/A client_stats N/A N/A N/A aff4 FACTORY Open N/A N/A N/A self client_id Add N/A self test_output_path token N/A self token N/A N/A N/A self assertIsInstance client_stats N/A aff4 ClientStats N/A stats N/A list N/A N/A client_stats Get N/A N/A client_stats Schema STATS N/A N/A N/A self assertGreater N/A len stats 0 N/A entry N/A stats N/A 0 N/A N/A N/A self assertGreater N/A entry RSS_size 0 N/A N/A N/A self assertGreater N/A entry VMS_size 0 N/A N/A N/A self assertGreater N/A entry boot_time 0 N/A N/A N/A self assertGreater N/A entry bytes_received 0 N/A N/A N/A self assertGreater N/A entry bytes_sent 0 N/A N/A N/A self assertGreater N/A entry memory_percent 0 N/A N/A N/A self assertGreater N/A len N/A list N/A entry cpu_samples 0 N/A N/A N/A list N/A entry io_samples N/A N/A N/A N/A logging warning No IO samples received. This is ok if the tested client is a mac. N/A N/A TestLaunchBinaries N/A N/A base ClientTestBase N/A N/A Test that we can launch a binary.

  The following program is used and will be signed and uploaded before
  executing the test if it hasn't been uploaded already.

  #include <stdio.h>
  int main(int argc, char** argv) {
    printf("Hello world!!!");
    return 0;
  };

  This class deliberately doesn't inherit from base.AutomatedTest because the
  code signing requires a password.
   N/A platforms N/A Windows Linux N/A flow LaunchBinary N/A filenames N/A Windows Linux hello.exe hello N/A ds_names N/A Windows Linux hello.exe hello N/A limit None __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TestLaunchBinaries self __init__ kwargs N/A N/A self context N/A N/A Platform:%s N/A N/A N/A self platform title N/A N/A self binary N/A N/A N/A N/A N/A config_lib CONFIG Get Executables.aff4_path context N/A self context Add N/A test/%s N/A N/A self ds_names N/A N/A self platform N/A N/A self args N/A dict binary N/A self binary N/A N/A N/A N/A N/A N/A aff4 FACTORY Open N/A self binary aff4_type GRRSignedBlob token N/A self token N/A N/A N/A IOError N/A N/A Uploading the test binary to the Executables area. N/A source N/A N/A N/A os path join N/A N/A config_lib CONFIG N/A Test.data_dir N/A N/A self filenames N/A N/A self platform N/A N/A N/A N/A N/A os path exists source N/A N/A N/A N/A self fail N/A Path %s should exist. source N/A N/A N/A maintenance_utils UploadSignedConfigBlob N/A N/A N/A open source rb read aff4_path N/A self binary client_context N/A self context token N/A self token limit N/A self limit N/A CheckFlow N/A N/A self N/A N/A N/A fd N/A N/A N/A aff4 FACTORY Open N/A self session_id age N/A aff4 ALL_TIMES token N/A self token N/A logs N/A N/A join N/A N/A x log_message N/A x N/A N/A fd GetLog N/A N/A N/A self assertTrue N/A Hello world logs N/A N/A TestLaunchChunkedBinaries N/A TestLaunchBinaries N/A N/A limit 5000 N/A ds_names N/A Windows Linux hello_chunked.exe hello_chunked N/A