mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Refresh after modifying tmp pillars
This commit is contained in:
parent
95c3aba426
commit
215bf931f2
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@ class x509Test(ModuleCase, SaltReturnAssertsMixin):
|
|||
'*':
|
||||
- signing_policies
|
||||
'''))
|
||||
self.run_function('saltutil.refresh_pillar')
|
||||
cert_path = os.path.join(BASE_FILES, 'x509_test.crt')
|
||||
with salt.utils.files.fopen(cert_path) as fp:
|
||||
cls.x509_cert_text = fp.read()
|
||||
|
@ -58,6 +59,7 @@ class x509Test(ModuleCase, SaltReturnAssertsMixin):
|
|||
def tearDownClass(cls):
|
||||
os.remove(os.path.join(TMP_PILLAR_TREE, 'signing_policies.sls'))
|
||||
os.remove(os.path.join(TMP_PILLAR_TREE, 'top.sls'))
|
||||
self.run_function('saltutil.refresh_pillar')
|
||||
|
||||
def run_function(self, *args, **kwargs):
|
||||
ret = super(x509Test, self).run_function(*args, **kwargs)
|
||||
|
|
Loading…
Add table
Reference in a new issue