Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Expr Call NameLoad Str Import alias Import alias ImportFrom alias TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body ImportFrom alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Pass decorator_list Return NameLoad decorator_list ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad Dict Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr BinOpPow Num Num Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad orelse If CompareLt Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad body Return NameLoad orelse Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Call NameLoad ListLoad TupleLoad Str Str TupleLoad Str Num TupleLoad Str Num TupleLoad Str ListLoad Call NameLoad ListLoad TupleLoad Str Str Call NameLoad ListLoad TupleLoad Str Str TupleLoad Str Num TupleLoad Str Num TupleLoad Str ListLoad Call NameLoad ListLoad TupleLoad Str Str Assign NameStore ListLoad Dict Str Str Str Str Num Num Str Str Dict Str Str Str Str Num Num Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad ListLoad TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str Str TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str Dict TupleLoad Str ListLoad Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad TupleLoad Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Pass decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Pass decorator_list Call NameLoad NameLoad Str NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Call NameLoad NameLoad NameLoad Call NameLoad CompareIs NameLoad NameLoad Str Call NameLoad CompareIs NameLoad NameLoad Str Call NameLoad CompareIs Call NameLoad NameLoad Call AttributeLoad Str attr NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A __future__ absolute_import N/A random N/A string copy deepcopy distutils.version LooseVersion salttesting.unit skipIf TestCase salttesting.mock NO_MOCK NO_MOCK_REASON salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ N/A salt.config N/A salt.loader salt.ext.six.moves range N/A N/A N/A boto N/A HAS_BOTO True N/A N/A N/A ImportError N/A N/A HAS_BOTO False N/A N/A moto mock_ec2 N/A HAS_MOTO True N/A N/A N/A ImportError N/A N/A HAS_MOTO False mock_ec2 N/A N/A self N/A N/A N/A 
        if the mock_ec2 function is not available due to import failure
        this replaces the decorated function with stub_function.
        Allows boto_secgroup unit tests to use the @mock_ec2 decorator
        without a "NameError: name 'mock_ec2' is not defined" error.
         stub_function N/A N/A self N/A N/A N/A N/A N/A stub_function N/A salt.utils.odict OrderedDict salt.modules boto_secgroup N/A required_boto_version 2.4.0 N/A vpc_id vpc-mjm05d27 N/A region us-east-1 N/A access_key GKTADJGHEIQSXMKKRBJ08H N/A secret_key askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs N/A conn_parameters N/A region key keyid profile region access_key secret_key N/A N/A boto_conn_parameters N/A aws_access_key_id aws_secret_access_key access_key secret_key N/A opts N/A N/A salt config DEFAULT_MASTER_OPTS N/A utils N/A N/A N/A salt loader utils opts whitelist N/A boto N/A funcs N/A N/A N/A salt loader minion_mods opts utils utils N/A N/A boto_secgroup __salt__ funcs N/A N/A boto_secgroup __utils__ utils N/A N/A N/A boto_secgroup __virtual__ _random_group_id N/A N/A N/A N/A N/A group_id N/A N/A sg-{0:x} format N/A N/A random randrange N/A 2 32 N/A group_id N/A _random_group_name N/A N/A N/A N/A N/A group_name N/A N/A boto_secgroup-{0} format N/A N/A join N/A N/A N/A random choice N/A string ascii_lowercase N/A char N/A range 12 N/A group_name N/A _has_required_boto N/A N/A N/A N/A N/A 
    Returns True/False boolean depending on if Boto is installed and correct
    version.
     N/A N/A HAS_BOTO N/A N/A False N/A N/A N/A N/A LooseVersion N/A boto __version__ N/A LooseVersion required_boto_version N/A N/A False N/A N/A True N/A BotoSecgroupTestCase N/A TestCase N/A N/A 
    TestCase for salt.modules.boto_secgroup module
     test__split_rules N/A N/A self N/A N/A N/A 
        tests the splitting of a list of rules into individual rules
         N/A rules N/A N/A OrderedDict N/A N/A ip_protocol tcp N/A from_port 22 N/A to_port 22 N/A grants N/A N/A OrderedDict N/A N/A cidr_ip 0.0.0.0/0 N/A OrderedDict N/A N/A ip_protocol tcp N/A from_port 80 N/A to_port 80 N/A grants N/A N/A OrderedDict N/A N/A cidr_ip 0.0.0.0/0 N/A split_rules N/A N/A to_port from_port ip_protocol cidr_ip 22 22 tcp 0.0.0.0/0 N/A to_port from_port ip_protocol cidr_ip 80 80 tcp 0.0.0.0/0 N/A N/A N/A self assertEqual N/A N/A boto_secgroup _split_rules rules split_rules N/A test_create_ec2_classic N/A N/A self N/A N/A N/A 
        Test of creation of an EC2-Classic security group. The test ensures
        that a group was created with the desired name and description
         N/A group_name N/A _random_group_name N/A group_description test_create_ec2_classic N/A N/A N/A boto_secgroup create group_name group_description conn_parameters N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group_filter N/A group-name group_name N/A secgroup_created_group N/A N/A conn get_all_security_groups filters group_filter N/A expected_create_result N/A group_name group_description None N/A secgroup_create_result N/A N/A N/A secgroup_created_group N/A 0 name N/A N/A secgroup_created_group N/A 0 description N/A N/A secgroup_created_group N/A 0 vpc_id N/A N/A N/A self assertEqual expected_create_result secgroup_create_result N/A mock_ec2 test_create_ec2_vpc N/A N/A self N/A N/A N/A 
        test of creation of an EC2-VPC security group. The test ensures that a
        group was created in a given vpc with the desired name and description
         N/A group_name N/A _random_group_name N/A group_description test_create_ec2_vpc N/A N/A N/A boto_secgroup create group_name group_description vpc_id vpc_id conn_parameters N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group_filter N/A group-name vpc-id group_name vpc_id N/A secgroup_created_group N/A N/A conn get_all_security_groups filters group_filter N/A expected_create_result N/A group_name group_description vpc_id N/A secgroup_create_result N/A N/A N/A secgroup_created_group N/A 0 name N/A N/A secgroup_created_group N/A 0 description N/A N/A secgroup_created_group N/A 0 vpc_id N/A N/A N/A self assertEqual expected_create_result secgroup_create_result N/A mock_ec2 test_get_group_id_ec2_classic N/A N/A self N/A N/A N/A 
        tests that given a name of a group in EC2-Classic that the correct
        group id will be retrieved
         N/A group_name N/A _random_group_name N/A group_description test_get_group_id_ec2_classic N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group_classic N/A N/A conn create_security_group name group_name description group_description N/A group_vpc N/A N/A conn create_security_group name group_name description group_description vpc_id vpc_id N/A retrieved_group_id N/A N/A boto_secgroup get_group_id group_name conn_parameters N/A N/A N/A self assertEqual N/A group_classic id retrieved_group_id N/A N/A skipIf True test skipped due to error in moto return - fixed in https://github.com/spulec/moto/commit/cc0166964371f7b5247a49d45637a8f936ccbe6f mock_ec2 test_get_group_id_ec2_vpc N/A N/A self N/A N/A N/A 
        tests that given a name of a group in EC2-VPC that the correct
        group id will be retrieved
         N/A group_name N/A _random_group_name N/A group_description test_get_group_id_ec2_vpc N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group_classic N/A N/A conn create_security_group name group_name description group_description N/A group_vpc N/A N/A conn create_security_group name group_name description group_description vpc_id vpc_id N/A retrieved_group_id N/A N/A boto_secgroup get_group_id group_name group_vpc conn_parameters N/A N/A N/A self assertEqual N/A group_vpc id retrieved_group_id N/A N/A skipIf True test skipped because moto does not yet support group filters https://github.com/spulec/moto/issues/154 mock_ec2 test_get_config_single_rule_group_name N/A N/A self N/A N/A N/A 
        tests return of 'config' when given group name. get_config returns an OrderedDict.
         N/A group_name N/A _random_group_name N/A ip_protocol tcp N/A from_port 22 N/A to_port 22 N/A cidr_ip 0.0.0.0/0 N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group N/A N/A conn create_security_group name group_name description group_name N/A N/A N/A group authorize ip_protocol ip_protocol from_port from_port to_port to_port cidr_ip cidr_ip N/A expected_get_config_result N/A OrderedDict N/A N/A name N/A group name N/A group_id N/A group id N/A owner_id 111122223333 N/A description N/A group description N/A tags N/A N/A rules N/A N/A to_port from_port ip_protocol cidr_ip to_port from_port ip_protocol cidr_ip N/A rules_egress N/A N/A secgroup_get_config_result N/A N/A boto_secgroup get_config group_id N/A group id conn_parameters N/A N/A N/A self assertEqual expected_get_config_result secgroup_get_config_result N/A mock_ec2 test_exists_true_name_classic N/A N/A self N/A N/A N/A 
        tests 'true' existence of a group in EC2-Classic when given name
         N/A group_name N/A _random_group_name N/A group_description test_exists_true_ec2_classic N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group_classic N/A N/A conn create_security_group group_name group_description N/A group_vpc N/A N/A conn create_security_group group_name group_description vpc_id vpc_id N/A salt_exists_result N/A N/A boto_secgroup exists name group_name conn_parameters N/A N/A N/A self assertTrue salt_exists_result N/A N/A skipIf True test skipped due to error in moto return - fixed in https://github.com/spulec/moto/commit/cc0166964371f7b5247a49d45637a8f936ccbe6f mock_ec2 test_exists_false_name_classic N/A N/A self N/A N/A N/A N/A N/A skipIf True test skipped because moto does not yet support group filters https://github.com/spulec/moto/issues/154 mock_ec2 test_exists_true_name_vpc N/A N/A self N/A N/A N/A 
        tests 'true' existence of a group in EC2-VPC when given name and vpc_id
         N/A group_name N/A _random_group_name N/A group_description test_exists_true_ec2_vpc N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A N/A N/A conn create_security_group group_name group_description vpc_id vpc_id N/A salt_exists_result N/A N/A boto_secgroup exists name group_name vpc_id vpc_id conn_parameters N/A N/A N/A self assertTrue salt_exists_result N/A mock_ec2 test_exists_false_name_vpc N/A N/A self N/A N/A N/A 
        tests 'false' existence of a group in vpc when given name and vpc_id
         N/A group_name N/A _random_group_name N/A salt_exists_result N/A N/A boto_secgroup exists group_name vpc_id vpc_id conn_parameters N/A N/A N/A self assertFalse salt_exists_result N/A mock_ec2 test_exists_true_group_id N/A N/A self N/A N/A N/A 
        tests 'true' existence of a group when given group_id
         N/A group_name N/A _random_group_name N/A group_description test_exists_true_group_id N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group N/A N/A conn create_security_group group_name group_description N/A salt_exists_result N/A N/A boto_secgroup exists group_id N/A group id conn_parameters N/A N/A N/A self assertTrue salt_exists_result N/A mock_ec2 test_exists_false_group_id N/A N/A self N/A N/A N/A 
        tests 'false' existence of a group when given group_id
         N/A group_id N/A _random_group_id N/A salt_exists_result N/A N/A boto_secgroup exists group_id group_id conn_parameters N/A N/A N/A self assertFalse salt_exists_result N/A mock_ec2 test_delete_group_ec2_classic N/A N/A self N/A N/A N/A 
        test deletion of a group in EC2-Classic. Test does the following:
        1. creates two groups, in EC2-Classic and one in EC2-VPC
        2. saves the group_ids to group_ids_pre_delete
        3. removes the group in EC2-VPC
        4. saves the group ids of groups to group_ids_post_delete
        5. compares the group_ids_pre_delete and group_ids_post_delete lists
           to ensure that the correct group was deleted
         N/A group_name N/A _random_group_name N/A group_description test_delete_group_ec2_classic N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A group_classic N/A N/A conn create_security_group name group_name description group_description N/A group_vpc N/A N/A conn create_security_group name group_name description group_description vpc_id vpc_id N/A all_groups N/A N/A group id N/A group N/A N/A conn get_all_security_groups N/A deleted N/A N/A boto_secgroup delete name group_name conn_parameters N/A expected_groups N/A deepcopy all_groups N/A N/A N/A expected_groups remove N/A group_classic id N/A actual_groups N/A N/A group id N/A group N/A N/A conn get_all_security_groups N/A N/A N/A self assertEqual expected_groups actual_groups N/A N/A skipIf True test skipped due to error in moto return - fixed in https://github.com/spulec/moto/commit/cc0166964371f7b5247a49d45637a8f936ccbe6f mock_ec2 test_delete_group_name_ec2_vpc N/A N/A self N/A N/A N/A N/A N/A skipIf True test skipped because moto does not yet support group filters https://github.com/spulec/moto/issues/154 mock_ec2 test__get_conn_true N/A N/A self N/A N/A N/A 
        tests ensures that _get_conn returns an boto.ec2.connection.EC2Connection object.
         N/A conn N/A N/A N/A boto ec2 connect_to_region region boto_conn_parameters N/A salt_conn N/A N/A boto_secgroup _get_conn conn_parameters N/A N/A N/A self assertEqual N/A conn __class__ N/A salt_conn __class__ N/A mock_ec2 N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A skipIf N/A HAS_BOTO False The boto module must be installed. N/A skipIf N/A HAS_MOTO False The moto module must be installed. N/A skipIf N/A N/A _has_required_boto False N/A N/A The boto module must be greater than or equal to version {0} format required_boto_version N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests BotoSecgroupTestCase needs_daemon False