Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args defaults body Return BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Num Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword Dict Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword Dict Str Str Str Call NameLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Dict Str Str Call NameLoad Call NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str Call NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str Call NameLoad Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str NameLoad NameLoad If Call NameLoad Call AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str Str Assign NameStore NameLoad If BoolOpOr NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str Str NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str Str NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str NameLoad NameLoad If Call NameLoad Call AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str Str Assign NameStore NameLoad If BoolOpOr NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str Str NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Dict Str Str Dict Str Str Str Dict Str Str Str NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad Assign NameStore Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad TryFinally body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad finalbody Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A os N/A os.path N/A random N/A shutil N/A sys N/A unittest stat ST_MODE N/A N/A N/A N/A sys path append test/client client_test_lib Bootstrap ActionFailureTest client_test_lib file_log get_action random_string client_test_lib startup_config_action remove_file client_test_lib raise_exception random_permissions N/A N/A N/A N/A N/A N/A 7%s%s N/A N/A N/A random choice N/A 1 2 3 4 5 6 7 N/A N/A random choice N/A 1 2 3 4 5 6 7 N/A FailureTest N/A ActionFailureTest N/A test_missing_src_url N/A N/A self N/A N/A N/A N/A N/A self basic_test copy_file Missing attribute('src_url') N/A test_missing_dst_url N/A N/A self N/A N/A N/A N/A N/A self basic_test copy_file Missing attribute('dst_url') attributes N/A src_url N/A random_string N/A test_wrong_overwrite_value N/A N/A self N/A N/A N/A N/A N/A self basic_test copy_file Erroneous 'overwrite' value attributes N/A src_url dst_url overwrite N/A random_string N/A random_string bogus N/A test_url_failure N/A N/A self N/A N/A N/A action N/A get_action copy_file N/A action N/A N/A action replace /mnt/flash/.ztp-files /tmp N/A N/A N/A self basic_test copy_file Unable to retrieve file from URL attributes N/A src_url dst_url N/A random_string N/A random_string action_value action N/A N/A SuccessSrcUrlReplacementTests N/A N/A unittest TestCase N/A test_success N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A /tmp/%s N/A random_string N/A ztps_server N/A http://%s N/A bootstrap server N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url ztps_server url destination ztps_server N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A action N/A get_action copy_file N/A action N/A N/A action replace PERSISTENT_STORAGE = [ N/A PERSISTENT_STORAGE = ['%s',  destination N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A N/A N/A bootstrap start_test N/A destination_path N/A %s/%s N/A destination source N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failIf N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A shutil rmtree destination N/A N/A N/A bootstrap end_test N/A test_append_server N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A /tmp/%s N/A random_string N/A ztps_server N/A http://%s N/A bootstrap server N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url ztps_server source destination ztps_server N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A action N/A get_action copy_file N/A action N/A N/A action replace PERSISTENT_STORAGE = [ N/A PERSISTENT_STORAGE = ['%s',  destination N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A N/A N/A bootstrap start_test N/A destination_path N/A %s/%s N/A destination source N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failIf N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A shutil rmtree destination N/A N/A N/A bootstrap end_test N/A N/A SuccessPersistentTest N/A N/A unittest TestCase N/A test_success N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A /tmp/%s N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url url destination N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A action N/A get_action copy_file N/A action N/A N/A action replace PERSISTENT_STORAGE = [ N/A PERSISTENT_STORAGE = ['%s',  destination N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A N/A N/A bootstrap start_test N/A destination_path N/A %s/%s N/A destination source N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failIf N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A shutil rmtree destination N/A N/A N/A bootstrap end_test N/A test_replace N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A /tmp/%s N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A attributes N/A src_url dst_url url destination N/A N/A bool N/A N/A random getrandbits 1 N/A N/A N/A attributes N/A overwrite replace N/A mode None N/A N/A True N/A bool N/A N/A random getrandbits 1 N/A N/A mode N/A random_permissions N/A N/A attributes N/A mode mode N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action attributes N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A action N/A get_action copy_file N/A action N/A N/A action replace PERSISTENT_STORAGE = [ N/A PERSISTENT_STORAGE = ['%s',  destination N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A destination_path N/A %s/%s N/A destination source N/A N/A N/A bootstrap start_test N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failIf N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A mode N/A N/A N/A N/A self failUnless N/A mode N/A N/A oct N/A N/A N/A os stat destination_path N/A ST_MODE N/A -3 N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A shutil rmtree destination N/A N/A N/A bootstrap end_test N/A test_keep_original N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A /tmp/%s N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url overwrite url destination if-missing N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A action N/A get_action copy_file N/A action N/A N/A action replace PERSISTENT_STORAGE = [ N/A PERSISTENT_STORAGE = ['%s',  destination N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A destination_path N/A %s/%s N/A destination source N/A existing_contents N/A random_string N/A N/A N/A os makedirs destination N/A file_descriptor N/A open destination_path w N/A N/A N/A file_descriptor write existing_contents N/A N/A N/A file_descriptor close N/A N/A N/A bootstrap start_test N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A existing_contents N/A file_log destination_path N/A N/A N/A self failIf N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A shutil rmtree destination N/A N/A N/A bootstrap end_test N/A test_keep_backup N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A /tmp/%s N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url overwrite url destination backup N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A action N/A get_action copy_file N/A action N/A N/A action replace PERSISTENT_STORAGE = [ N/A PERSISTENT_STORAGE = ['%s',  destination N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A destination_path N/A %s/%s N/A destination source N/A backup_contents N/A random_string N/A N/A N/A os makedirs destination N/A file_descriptor N/A open destination_path w N/A N/A N/A file_descriptor write backup_contents N/A N/A N/A file_descriptor close N/A N/A N/A bootstrap start_test N/A backup_path N/A %s.backup destination_path N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failUnless N/A N/A N/A os path isfile backup_path N/A N/A N/A self failUnless N/A N/A backup_contents N/A file_log backup_path N/A N/A N/A self failIf N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A remove_file backup_path N/A N/A N/A shutil rmtree destination N/A N/A N/A bootstrap end_test N/A N/A SuccessNonPersistentTest N/A N/A unittest TestCase N/A test_success N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url url destination N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A persistent_dir /tmp N/A action N/A get_action copy_file N/A action N/A N/A action replace /mnt/flash/.ztp-files persistent_dir N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A N/A N/A bootstrap start_test N/A destination_path N/A %s/%s N/A persistent_dir source N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failUnless N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A log N/A file_log N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A #!/bin/bash log N/A N/A N/A self failUnless N/A N/A sudo cp %s %s N/A destination_path destination log N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A bootstrap end_test N/A test_replace N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A attributes N/A src_url dst_url url destination N/A N/A bool N/A N/A random getrandbits 1 N/A N/A N/A attributes N/A overwrite replace N/A mode None N/A N/A True N/A bool N/A N/A random getrandbits 1 N/A N/A mode N/A random_permissions N/A N/A attributes N/A mode mode N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action attributes N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A persistent_dir /tmp N/A action N/A get_action copy_file N/A action N/A N/A action replace /mnt/flash/.ztp-files persistent_dir N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A destination_path N/A %s/%s N/A persistent_dir source N/A N/A N/A bootstrap start_test N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failUnless N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A log N/A file_log N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A #!/bin/bash log N/A N/A N/A self failUnless N/A N/A sudo cp %s %s N/A destination_path destination log N/A mode N/A N/A N/A N/A self failUnless N/A N/A sudo chmod %s %s N/A mode destination log N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A bootstrap end_test N/A test_keep_original N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url overwrite url destination if-missing N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A persistent_dir /tmp N/A action N/A get_action copy_file N/A action N/A N/A action replace /mnt/flash/.ztp-files persistent_dir N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A N/A N/A bootstrap start_test N/A destination_path N/A %s/%s N/A persistent_dir source N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failUnless N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A log N/A file_log N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A #!/bin/bash log N/A N/A N/A self failUnless N/A N/A [ ! -f %s ] && sudo cp %s %s N/A destination destination_path destination log N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A bootstrap end_test N/A test_keep_backup N/A N/A self N/A N/A N/A bootstrap N/A Bootstrap ztps_default_config True N/A source N/A random_string N/A destination N/A random_string N/A url N/A http://%s/%s N/A N/A bootstrap server source N/A N/A N/A N/A bootstrap ztps set_definition_response actions N/A N/A action startup_config_action N/A action attributes test_action N/A src_url dst_url overwrite url destination backup N/A N/A N/A N/A bootstrap ztps set_action_response startup_config_action N/A startup_config_action N/A persistent_dir /tmp N/A action N/A get_action copy_file N/A action N/A N/A action replace /mnt/flash/.ztp-files persistent_dir N/A N/A N/A N/A bootstrap ztps set_action_response test_action action N/A contents N/A random_string N/A N/A N/A N/A bootstrap ztps set_file_response source contents N/A N/A N/A bootstrap start_test N/A destination_path N/A %s/%s N/A persistent_dir source N/A N/A N/A N/A N/A N/A N/A self failUnless N/A N/A N/A os path isfile destination_path N/A N/A N/A self failUnless N/A N/A contents N/A file_log destination_path N/A N/A N/A self failUnless N/A N/A N/A os path isfile N/A bootstrap rc_eos N/A log N/A file_log N/A bootstrap rc_eos N/A N/A N/A self failUnless N/A #!/bin/bash log N/A N/A N/A self failUnless N/A N/A sudo cp %s %s N/A destination_path destination log N/A N/A N/A self failUnless N/A N/A [ -f %s ] && sudo mv %s %s.backup N/A destination destination destination log N/A N/A N/A self failUnless N/A N/A bootstrap success N/A N/A N/A AssertionError N/A assertion N/A N/A N/A Output: %s N/A bootstrap output N/A N/A Error: %s N/A bootstrap error N/A N/A raise_exception assertion N/A N/A N/A remove_file destination_path N/A N/A N/A bootstrap end_test N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main