Exemplo n.º 1
0
 def __init__(self, *args, **kws):
     TestCase.__init__(self, *args, **kws)
     self.local_opts = {
         'cachedir':
         TEMPLATES_DIR,
         'file_client':
         'local',
         'file_ignore_regex':
         None,
         'file_ignore_glob':
         None,
         'file_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         },
         'pillar_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         },
         'fileserver_backend': ['roots'],
         'hash_type':
         'md5',
         'extension_modules':
         os.path.join(os.path.dirname(os.path.abspath(__file__)),
                      'extmods'),
     }
     self.local_salt = {
         # 'dns.A': dnsutil.A,
         # 'dns.AAAA': dnsutil.AAAA,
         # 'file.exists': filemod.file_exists,
         # 'file.basename': filemod.basename,
         # 'file.dirname': filemod.dirname
     }
Exemplo n.º 2
0
 def __init__(self, *args, **kws):
     TestCase.__init__(self, *args, **kws)
     self.opts = {
         'cachedir': TEMPLATES_DIR,
         'file_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         },
         'pillar_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         }
     }
Exemplo n.º 3
0
 def __init__(self, *args, **kws):
     TestCase.__init__(self, *args, **kws)
     self.opts = {
         'cachedir': TEMPLATES_DIR,
         'file_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         },
         'pillar_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         }
     }
Exemplo n.º 4
0
 def __init__(self, *args, **kws):
     TestCase.__init__(self, *args, **kws)
     self.local_opts = {
         'cachedir': TEMPLATES_DIR,
         'file_client': 'local',
         'file_roots': {
             'other': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         },
         'fileserver_backend': ['roots'],
         'extension_modules': os.path.join(
             os.path.dirname(os.path.abspath(__file__)),
             'extmods'),
     }
Exemplo n.º 5
0
 def __init__(self, *args, **kws):
     TestCase.__init__(self, *args, **kws)
     self.local_opts = {
         'cachedir': TEMPLATES_DIR,
         'file_client': 'local',
         'file_ignore_regex': None,
         'file_ignore_glob': None,
         'file_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         },
         'pillar_roots': {
             'test': [os.path.join(TEMPLATES_DIR, 'files', 'test')]
         },
         'fileserver_backend': ['roots'],
         'hash_type': 'md5',
         'extension_modules': os.path.join(
             os.path.dirname(os.path.abspath(__file__)),
             'extmods'),
     }