Module ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Expr Call NameLoad Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Dict Str ListLoad Dict Str Str Dict Str Str Dict Str ListLoad Dict Str Str Dict Str Str Dict Str Str Assign NameStore Call NameLoad ListLoad TupleLoad Str NameLoad Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Str Str keyword Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad With NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Dict Str ListLoad Dict Str Str Dict Str ListLoad Dict Str Str Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str keyword Str decorator_list Expr Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad ListLoad TupleLoad Str Call NameLoad ListLoad TupleLoad Str ListLoad Dict Str Str TupleLoad Str ListLoad Dict Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad keyword ListLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Str attr ListLoad Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str Dict Str ListLoad Dict Str Str Dict Str Str Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str ListLoad Str TupleLoad Str Call NameLoad ListLoad TupleLoad Str Dict Str ListLoad Dict Str ListLoad Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str Dict Str ListLoad Dict Str ListLoad Str Str decorator_list Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str Str Str Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str Call NameLoad ListLoad TupleLoad Str ListLoad TupleLoad Str Call NameLoad ListLoad TupleLoad Str ListLoad Dict Str ListLoad Dict Str Str Dict Str Str Dict Str ListLoad Dict Str Str decorator_list decorator_list ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str Dict Str Str ListLoad Dict Str ListLoad NameLoad NameLoad ListLoad Dict Str NameLoad Dict Str ListLoad Dict Str Str decorator_list Assign NameStore Call NameLoad Dict Str Str Str Str Expr Call NameLoad NameLoad Str Str Str Assign NameStore Call NameLoad Dict Str Str Str Str Expr Call NameLoad NameLoad Str Str Str Assign NameStore Call NameLoad Dict Str Str Str Str Expr Call NameLoad NameLoad Str Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMult NameLoad Num decorator_list Assign NameStore Dict Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad
N/A __future__ absolute_import N/A os N/A shutil N/A tempfile N/A uuid salttesting TestCase salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../ N/A integration N/A salt.config N/A salt.state N/A salt.utils salt.template compile_template salt.utils.odict OrderedDict salt.utils.pyobjects StateFactory State Registry SaltObject InvalidFunction DuplicateState N/A File N/A StateFactory file N/A Service N/A StateFactory service N/A pydmesg_expected N/A file.managed N/A N/A group root N/A mode 0755 N/A require N/A N/A file /usr/local/bin N/A source salt://debian/files/pydmesg.py N/A user root N/A pydmesg_salt_expected N/A OrderedDict N/A N/A /usr/local/bin/pydmesg pydmesg_expected N/A pydmesg_kwargs N/A dict user root group root mode 0755 source salt://debian/files/pydmesg.py N/A basic_template #!pyobjects
File.directory('/tmp', mode='1777', owner='root', group='root')
 N/A invalid_template #!pyobjects
File.fail('/tmp')
 N/A include_template #!pyobjects
include('http')
 N/A extend_template #!pyobjects
include('http')
Service.running(extend('apache'), watch=[{'file': '/etc/file'}])
 N/A map_template #!pyobjects
class Samba(Map):
    __merge__ = 'samba:lookup'

    class Debian:
        server = 'samba'
        client = 'samba-client'
        service = 'samba'

    class RougeChapeau:
        __match__ = 'RedHat'
        server = 'samba'
        client = 'samba'
        service = 'smb'

    class Ubuntu:
        __grain__ = 'os'
        service = 'smbd'

with Pkg.installed("samba", names=[Samba.server, Samba.client]):
    Service.running("samba", name=Samba.service)
 N/A import_template #!pyobjects
import salt://map.sls

Pkg.removed("samba-imported", names=[map.Samba.server, map.Samba.client])
 N/A recursive_map_template #!pyobjects
from salt://map.sls import Samba

class CustomSamba(Samba):
    pass
 N/A recursive_import_template #!pyobjects
from salt://recursive_map.sls import CustomSamba

Pkg.removed("samba-imported", names=[CustomSamba.server, CustomSamba.client]) N/A scope_test_import_template #!pyobjects
from salt://recursive_map.sls import CustomSamba

# since we import CustomSamba we should shouldn't be able to see Samba
Pkg.removed("samba-imported", names=[Samba.server, Samba.client]) N/A from_import_template #!pyobjects
# this spacing is like this on purpose to ensure it's stripped properly
from   salt://map.sls  import     Samba

Pkg.removed("samba-imported", names=[Samba.server, Samba.client])
 N/A import_as_template #!pyobjects
from salt://map.sls import Samba as Other
Pkg.removed("samba-imported", names=[Other.server, Other.client])
 N/A random_password_template #!pyobjects
import random, string
password = ''.join(random.SystemRandom().choice(
        string.ascii_letters + string.digits) for _ in range(20))
 N/A random_password_import_template #!pyobjecs
from salt://password.sls import password
 N/A requisite_implicit_list_template #!pyobjects
with Pkg.installed("pkg"):
    Service.running("service", watch=File("file"), require=Cmd("cmd"))
 StateTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A Registry empty N/A test_serialization N/A N/A self N/A N/A N/A f N/A State /usr/local/bin/pydmesg file managed require N/A File /usr/local/bin pydmesg_kwargs N/A N/A N/A self assertEqual N/A f pydmesg_expected N/A test_factory_serialization N/A N/A self N/A N/A N/A N/A N/A File managed /usr/local/bin/pydmesg require N/A File /usr/local/bin pydmesg_kwargs N/A N/A N/A self assertEqual N/A N/A Registry states N/A /usr/local/bin/pydmesg pydmesg_expected N/A test_context_manager N/A N/A self N/A N/A N/A N/A File /usr/local/bin N/A N/A pydmesg N/A N/A File managed /usr/local/bin/pydmesg pydmesg_kwargs N/A N/A N/A self assertEqual N/A N/A Registry states N/A /usr/local/bin/pydmesg pydmesg_expected N/A pydmesg N/A N/A N/A N/A File managed /tmp/something owner root N/A N/A N/A self assertEqual N/A N/A Registry states N/A /tmp/something N/A file.managed N/A N/A owner root N/A require N/A N/A file /usr/local/bin N/A file /usr/local/bin/pydmesg N/A test_salt_data N/A N/A self N/A N/A N/A N/A N/A File managed /usr/local/bin/pydmesg require N/A File /usr/local/bin pydmesg_kwargs N/A N/A N/A self assertEqual N/A N/A Registry states N/A /usr/local/bin/pydmesg pydmesg_expected N/A N/A N/A self assertEqual N/A N/A Registry salt_data pydmesg_salt_expected N/A N/A N/A self assertEqual N/A Registry states N/A OrderedDict N/A test_duplicates N/A N/A self N/A N/A add_dup N/A N/A N/A N/A N/A N/A N/A File managed dup name /dup N/A N/A N/A add_dup N/A N/A N/A self assertRaises DuplicateState add_dup N/A N/A N/A Service running dup name dup-service N/A N/A N/A self assertEqual N/A Registry states N/A OrderedDict N/A N/A dup N/A OrderedDict N/A N/A file.managed N/A N/A name /dup N/A service.running N/A N/A name dup-service N/A N/A RendererMixin N/A object N/A N/A 
    This is a mixin that adds a ``.render()`` method to render a template

    It must come BEFORE ``TestCase`` in the declaration of your test case
    class so that our setUp & tearDown get invoked first, and super can
    trigger the methods in the ``TestCase`` class.
     setUp N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super RendererMixin self setUp args kwargs N/A N/A self root_dir N/A N/A tempfile mkdtemp pyobjects_test_root dir N/A integration TMP N/A N/A self state_tree_dir N/A N/A N/A os path join N/A self root_dir state_tree N/A N/A self cache_dir N/A N/A N/A os path join N/A self root_dir cachedir N/A N/A N/A N/A N/A os path isdir N/A self root_dir N/A N/A N/A N/A os makedirs N/A self root_dir N/A N/A N/A N/A N/A os path isdir N/A self state_tree_dir N/A N/A N/A N/A os makedirs N/A self state_tree_dir N/A N/A N/A N/A N/A os path isdir N/A self cache_dir N/A N/A N/A N/A os makedirs N/A self cache_dir N/A N/A self config N/A N/A N/A salt config minion_config None N/A N/A N/A self config N/A root_dir N/A self root_dir N/A N/A N/A self config N/A state_events False N/A N/A N/A self config N/A id match N/A N/A N/A self config N/A file_client local N/A N/A N/A self config N/A file_roots N/A dict base N/A N/A self state_tree_dir N/A N/A N/A self config N/A cachedir N/A self cache_dir N/A N/A N/A self config N/A test False N/A tearDown N/A N/A self N/A args kwargs N/A N/A N/A N/A shutil rmtree N/A self root_dir N/A N/A N/A N/A super RendererMixin self tearDown args kwargs N/A write_template_file N/A N/A self filename content N/A N/A N/A full_path N/A N/A N/A os path join N/A self state_tree_dir filename N/A N/A N/A N/A salt utils fopen full_path w f N/A N/A N/A N/A f write content N/A full_path N/A render N/A N/A self template opts filename N/A None None N/A N/A opts N/A N/A N/A N/A N/A self config update opts N/A N/A filename N/A N/A filename N/A N/A . join N/A N/A str N/A N/A uuid uuid4 sls N/A full_path N/A N/A self write_template_file filename template N/A state N/A N/A N/A salt state State N/A self config N/A N/A compile_template full_path N/A state rend N/A N/A state opts N/A renderer N/A N/A RendererTests N/A RendererMixin StateTests N/A test_basic N/A N/A self N/A N/A N/A ret N/A N/A self render basic_template N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A /tmp N/A file.directory N/A N/A group root N/A mode 1777 N/A owner root N/A N/A N/A self assertEqual N/A Registry states N/A OrderedDict N/A test_invalid_function N/A N/A self N/A N/A _test N/A N/A N/A N/A N/A N/A N/A self render invalid_template N/A N/A N/A N/A self assertRaises InvalidFunction _test N/A test_include N/A N/A self N/A N/A N/A ret N/A N/A self render include_template N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A include N/A http N/A test_extend N/A N/A self N/A N/A N/A ret N/A N/A self render extend_template N/A grains N/A os_family os Debian Debian N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A include N/A http N/A extend N/A OrderedDict N/A N/A apache N/A service.running N/A N/A watch N/A N/A file /etc/file N/A test_sls_imports N/A N/A self N/A N/A render_and_assert N/A N/A template N/A N/A N/A ret N/A N/A self render template N/A grains N/A os_family os Debian Debian N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A samba-imported N/A pkg.removed N/A N/A names N/A samba samba-client N/A N/A N/A N/A self write_template_file map.sls map_template N/A N/A render_and_assert import_template N/A N/A render_and_assert from_import_template N/A N/A render_and_assert import_as_template N/A N/A N/A self write_template_file recursive_map.sls recursive_map_template N/A N/A render_and_assert recursive_import_template N/A test_import_scope N/A N/A self N/A N/A N/A N/A N/A self write_template_file map.sls map_template N/A N/A N/A self write_template_file recursive_map.sls recursive_map_template do_render N/A N/A N/A N/A N/A ret N/A N/A self render scope_test_import_template N/A grains N/A os_family os Debian Debian N/A N/A N/A N/A self assertRaises NameError do_render N/A test_random_password N/A N/A self N/A N/A N/A Test for https://github.com/saltstack/salt/issues/21796 N/A ret N/A N/A self render random_password_template N/A test_import_random_password N/A N/A self N/A N/A N/A Import test for https://github.com/saltstack/salt/issues/21796 N/A N/A N/A self write_template_file password.sls random_password_template N/A ret N/A N/A self render random_password_import_template N/A test_requisite_implicit_list N/A N/A self N/A N/A N/A Ensure that the implicit list characteristic works as expected N/A ret N/A N/A self render requisite_implicit_list_template N/A grains N/A os_family os Debian Debian N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A pkg N/A OrderedDict N/A N/A pkg.installed N/A N/A service N/A OrderedDict N/A N/A service.running N/A N/A require N/A N/A cmd cmd N/A pkg pkg N/A watch N/A N/A file file N/A N/A MapTests N/A RendererMixin TestCase N/A test_map N/A N/A self N/A N/A samba_with_grains N/A N/A grains N/A N/A N/A N/A N/A self render map_template N/A grains grains N/A assert_ret N/A N/A ret server client service N/A N/A N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A samba N/A pkg.installed service.running N/A N/A names N/A server client N/A N/A name service N/A require N/A N/A pkg samba N/A N/A ret N/A samba_with_grains N/A os_family os Debian Debian N/A N/A assert_ret ret samba samba-client samba N/A ret N/A samba_with_grains N/A os_family os Debian Ubuntu N/A N/A assert_ret ret samba samba-client smbd N/A ret N/A samba_with_grains N/A os_family os RedHat CentOS N/A N/A assert_ret ret samba samba smb N/A N/A SaltObjectTests N/A TestCase N/A test_salt_object N/A N/A self N/A N/A attr_fail N/A N/A N/A N/A N/A N/A N/A N/A Salt fail blah N/A times2 N/A N/A x N/A N/A N/A N/A x 2 N/A N/A __salt__ N/A math.times2 times2 N/A Salt N/A SaltObject __salt__ N/A N/A N/A self assertRaises AttributeError attr_fail N/A N/A N/A self assertEqual N/A N/A Salt math times2 times2 N/A N/A N/A self assertEqual N/A N/A N/A Salt math times2 2 4 N/A N/A N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests StateTests RendererTests MapTests SaltObjectTests needs_daemon False