Refresh after modifying tmp pillars

This commit is contained in:
Daniel A. Wozniak 2019-04-02 21:08:00 +00:00
parent 95c3aba426
commit 215bf931f2
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -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)