mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix slow test skipifs
This commit is contained in:
parent
1ed375b58a
commit
426ee2c342
2 changed files with 19 additions and 12 deletions
|
@ -14,11 +14,12 @@ from tests.support.unit import skipIf
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@skipIf(True, "SLOWTEST skip")
|
||||
class CacheTest(ShellCase):
|
||||
'''
|
||||
"""
|
||||
Test the cache runner
|
||||
'''
|
||||
"""
|
||||
|
||||
@skipIf(True, "SLOWTEST skip")
|
||||
def test_cache(self):
|
||||
"""
|
||||
Store, list, fetch, then flush data
|
||||
|
|
|
@ -5,6 +5,7 @@ Tests for the salt-run command
|
|||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
# pylint: disable=3rd-party-module-not-gated
|
||||
from salt.ext import six
|
||||
|
||||
|
@ -14,26 +15,31 @@ from tests.support.unit import skipIf
|
|||
|
||||
|
||||
@pytest.mark.windows_whitelisted
|
||||
@skipIf(True, "SLOWTEST skip")
|
||||
class JobsTest(ShellCase):
|
||||
'''
|
||||
"""
|
||||
Test the jobs runner
|
||||
'''
|
||||
"""
|
||||
|
||||
@skipIf(True, "SLOWTEST skip")
|
||||
def test_master(self):
|
||||
'''
|
||||
"""
|
||||
jobs.master
|
||||
'''
|
||||
ret = self.run_run_plus('jobs.master')
|
||||
res = any(ele for ele in ret['return'] if ele['fun'] == 'runner.jobs.master')
|
||||
"""
|
||||
ret = self.run_run_plus("jobs.master")
|
||||
res = any(ele for ele in ret["return"] if ele["fun"] == "runner.jobs.master")
|
||||
self.assertTrue(res)
|
||||
|
||||
@skipIf(True, "SLOWTEST skip")
|
||||
def test_active(self):
|
||||
"""
|
||||
jobs.active
|
||||
"""
|
||||
ret = self.run_run_plus('jobs.active')
|
||||
res = any(ele for ele, val in six.iteritems(ret['return']) if val['Function'] == 'runner.jobs.active')
|
||||
ret = self.run_run_plus("jobs.active")
|
||||
res = any(
|
||||
ele
|
||||
for ele, val in six.iteritems(ret["return"])
|
||||
if val["Function"] == "runner.jobs.active"
|
||||
)
|
||||
self.assertTrue(res)
|
||||
|
||||
@skipIf(True, "SLOWTEST skip")
|
||||
|
|
Loading…
Add table
Reference in a new issue