Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ClassDef bases body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad If NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore SubscriptLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num Assert CompareEq NameLoad BinOpAdd NameLoad Num Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assert CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad decorator_list
N/A N/A sys N/A mock N/A random collections namedtuple datetime datetime mock patch test_helper * azure.servicemanagement.models PersistentVMRole ConfigurationSets ConfigurationSet ConfigurationSetInputEndpoint DataVirtualHardDisks OSVirtualHardDisk azurectl.account.service AzureAccount azurectl.azurectl_exceptions * azurectl.config.parser Config azurectl.instance.endpoint Endpoint N/A azurectl TestEndpoint N/A N/A setup N/A N/A self N/A N/A N/A account N/A AzureAccount N/A Config region_name East US 2 filename ../data/config N/A N/A self service N/A N/A mock Mock N/A N/A account get_management_service N/A N/A mock Mock return_value N/A self service N/A N/A account get_blob_service_host_base N/A N/A mock Mock return_value test.url N/A N/A account storage_key N/A N/A mock Mock N/A N/A self endpoint N/A Endpoint account N/A N/A self my_request N/A N/A mock Mock request_id 42 N/A N/A self cloud_service_name mockcloudservice N/A N/A self instance_name mockcloudserviceinstance1 N/A N/A self endpoint_name HTTPS N/A N/A self port 443 N/A N/A self idle_timeout 10 N/A N/A self protocol tcp N/A N/A self udp_endpoint_name SNMP N/A N/A self udp_port 131 N/A N/A self instance_port 10000 N/A N/A self udp_protocol udp N/A N/A N/A N/A self endpoint set_instance N/A self cloud_service_name N/A self instance_name N/A N/A N/A self service get_role N/A N/A mock Mock return_value N/A N/A self mock_role N/A mock_role N/A N/A self has_endpoint N/A True N/A N/A role N/A PersistentVMRole N/A N/A role role_name N/A self cloud_service_name N/A network_config N/A ConfigurationSet N/A has_endpoint N/A N/A endpoint N/A ConfigurationSetInputEndpoint name N/A self endpoint_name protocol tcp port N/A self port local_port N/A self port idle_timeout_in_minutes N/A self idle_timeout N/A N/A N/A N/A N/A network_config input_endpoints input_endpoints append endpoint N/A N/A N/A N/A N/A role configuration_sets configuration_sets append network_config N/A role N/A create_expected_endpoint_output N/A N/A self N/A N/A N/A N/A idle-timeout instance-port name port protocol N/A %d minutes N/A self idle_timeout N/A self port N/A self endpoint_name N/A self port N/A self protocol N/A test_create N/A N/A self N/A N/A N/A N/A N/A N/A self service update_role return_value N/A self my_request N/A mock_role N/A N/A self mock_role N/A N/A N/A self service get_role N/A N/A mock Mock return_value mock_role N/A endpoint_len N/A len N/A N/A N/A mock_role configuration_sets N/A 0 input_endpoints N/A result N/A N/A N/A self endpoint create N/A self udp_endpoint_name N/A self udp_port N/A self instance_port N/A self udp_protocol N/A self idle_timeout N/A result_endpoint_length N/A len N/A N/A N/A mock_role configuration_sets N/A 0 input_endpoints N/A new_endpoint N/A N/A N/A N/A mock_role configuration_sets N/A 0 input_endpoints N/A -1 N/A N/A result_endpoint_length N/A endpoint_len 1 N/A N/A N/A new_endpoint name N/A self udp_endpoint_name N/A N/A N/A new_endpoint port N/A self udp_port N/A N/A N/A new_endpoint local_port N/A self instance_port N/A N/A N/A new_endpoint protocol N/A self udp_protocol N/A N/A N/A N/A N/A self service update_role assert_called_once_with N/A self cloud_service_name N/A self instance_name N/A self cloud_service_name os_virtual_hard_disk N/A mock_role os_virtual_hard_disk network_config N/A N/A mock_role configuration_sets N/A 0 availability_set_name N/A mock_role availability_set_name data_virtual_hard_disks N/A mock_role data_virtual_hard_disks N/A N/A result N/A N/A self my_request request_id N/A test_create_upstream_exception N/A N/A self N/A N/A N/A N/A N/A N/A self service update_role side_effect Exception N/A result N/A N/A N/A self endpoint create N/A self endpoint_name N/A self port N/A self instance_port N/A self protocol N/A self idle_timeout N/A N/A raises AzureEndpointCreateError test_show N/A N/A self N/A N/A N/A expected N/A N/A self create_expected_endpoint_output N/A result N/A N/A N/A self endpoint show N/A self endpoint_name N/A N/A result expected N/A test_show_upstream_exception N/A N/A self N/A N/A N/A N/A N/A N/A self service get_role side_effect Exception N/A N/A N/A N/A self endpoint show N/A self endpoint_name N/A N/A raises AzureEndpointShowError test_show_not_found N/A N/A self N/A N/A N/A N/A N/A self service get_role N/A N/A mock Mock return_value N/A N/A self mock_role has_endpoint False N/A N/A N/A N/A self endpoint show N/A self endpoint_name N/A N/A raises AzureEndpointShowError test_list N/A N/A self N/A N/A N/A expected N/A N/A N/A self create_expected_endpoint_output N/A result N/A N/A N/A self endpoint list N/A N/A result expected N/A test_list_upstream_exceptions N/A N/A self N/A N/A N/A N/A N/A N/A self service get_role side_effect Exception N/A N/A N/A N/A self endpoint list N/A N/A raises AzureEndpointListError test_delete N/A N/A self N/A N/A N/A mock_role N/A N/A self mock_role N/A N/A N/A self service get_role N/A N/A mock Mock return_value mock_role N/A N/A N/A N/A self service update_role return_value N/A self my_request N/A result N/A N/A N/A self endpoint delete foo N/A N/A result N/A N/A self my_request request_id N/A N/A N/A N/A N/A self service update_role assert_called_once_with N/A self cloud_service_name N/A self instance_name N/A self cloud_service_name os_virtual_hard_disk N/A mock_role os_virtual_hard_disk network_config N/A N/A mock_role configuration_sets N/A 0 availability_set_name N/A mock_role availability_set_name data_virtual_hard_disks N/A mock_role data_virtual_hard_disks N/A test_delete_with_upstream_exception N/A N/A self N/A N/A N/A N/A N/A N/A self service update_role side_effect Exception N/A N/A N/A N/A self endpoint delete N/A self endpoint_name N/A N/A raises AzureEndpointDeleteError N/A